Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Text comparison method and device, storage medium and electronic equipment

A text comparison and text technology, applied in the direction of electrical digital data processing, special data processing applications, instruments, etc., can solve the problems of inconsistent text quantity, difficult comparison method, and inability to obtain accurate results, etc., to achieve high efficiency and accuracy high effect

Active Publication Date: 2019-05-28
NEUSOFT CORP
View PDF6 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In related technologies, comparisons are usually made in line units. However, when the font size, font, and typesetting of two documents are inconsistent, the number of characters displayed on the same line is inconsistent, and accurate results cannot be obtained by comparing in line units.
If the comparison is performed in units of words (a Chinese character is a word in Chinese), since some texts cannot find out the relative order of each word according to reading habits, this comparison method is difficult to achieve

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Text comparison method and device, storage medium and electronic equipment
  • Text comparison method and device, storage medium and electronic equipment
  • Text comparison method and device, storage medium and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0063] Specific embodiments of the present disclosure will be described in detail below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described here are only used to illustrate and explain the present disclosure, and are not used to limit the present disclosure.

[0064] It is worth noting that the terms "first" and "second" in the embodiments of the present disclosure are used to distinguish similar objects, and do not have to be understood as a specific sequence or sequence.

[0065] The embodiment of the present disclosure provides a text comparison method, such as figure 1 As shown, the method includes:

[0066] In step S11, block the first text and the second text.

[0067] For example, every N (N is an integer greater than or equal to 1) rows / columns of text can be divided into a text block, or a natural segment of the text can be divided into a text block, or a page of text can be divided into A text block, which...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a text comparison method and device, a storage medium and electronic equipment. The method comprises the steps that a first text and a second text are partitioned; for a character block pair composed of the character block in the first text and the character block in the second text, the longest common sub-sequence pair of the character block pair is obtained; and according to the character information between two adjacent longest common subsequence pairs, difference description information is generated, and the difference description information is used for displayingthe character difference of the character block pair. According to the technical scheme, text comparison is carried out on the basis of the text block pairs composed of the text blocks, and the efficiency is higher than the efficiency and accuracy of text comparison with lines or words as the minimum unit.

Description

technical field [0001] The present disclosure relates to the field of text comparison, in particular, to a text comparison method, device, storage medium and electronic equipment. Background technique [0002] In the field of word processing, the text comparison function is often used, for example, to compare the differences between two documents. [0003] In related technologies, comparisons are usually made in line units. However, when the font size, font, and typesetting of two documents are inconsistent, the number of characters displayed in the same line is inconsistent, and accurate results cannot be obtained by comparing in line units. If the comparison is carried out in units of words (a Chinese character is a word in Chinese), since some texts cannot find out the relative order of each word according to reading habits, it is difficult to realize this comparison method. Contents of the invention [0004] In order to overcome the problems in related technologies, t...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F17/22
Inventor 韩志刚
Owner NEUSOFT CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products