English repeated text detection method, system, terminal and storage medium

Using autoencoders to perform feature representation and dimensionality reduction on English texts, combined with the Jaccard similarity coefficient, solves the problem of insufficient detection accuracy of duplicate English texts in the existing technology, achieving higher detection accuracy and effective prevention of plagiarism.

CN111859901BInactive Publication Date: 2024-10-11DALIAN UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010681512.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-15
Publication Date
2024-10-11
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing English duplicate text detection technology has low detection accuracy when dealing with subtle differences in text data, and it cannot fully consider part-of-speech and position information based solely on word frequency statistics, resulting in insufficiently comprehensive detection results.

Method used

An autoencoder is used to convert the English text into ASCII code values ​​in character order, and the ASCII code values ​​of the surrounding characters are used to represent character features. After dimensionality reduction through the autoencoder, the Jaccard similarity coefficient is used to calculate the similarity between the two pieces of text to determine repeat.

Benefits of technology

It improves the accuracy of English duplicate text detection and can more effectively identify text duplication, which is of great significance in preventing unethical behavior such as plagiarism.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111859901B_ABST
    Figure CN111859901B_ABST
Patent Text Reader

Abstract

The invention discloses an English repeated text detection method, system, terminal and storage medium based on an autoencoder, wherein the method comprises the following steps: S1: selecting two English texts to be compared, and converting the texts into two groups of ASCII code values ​​in character order; S2: using the ASCII code values ​​of surrounding characters to represent the features of each character; S3: using the autoencoder to reduce the dimension of the features of each character point; S4: using the Jaccard similarity coefficient to calculate the similarity between the two texts after the dimension reduction, and judging whether the texts are repeated according to the similarity; wherein the method is used to detect whether the two texts are repeated, and the similarity comparison is performed in units of characters, thereby improving the detection accuracy, and deduplication processing is performed on the texts at the same time, which is of great significance to related work such as preventing plagiarism.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of text similarity, and in particular to an English repeated text detection method, system, terminal and storage medium based on an autoencoder. Background Art

[0002] With the rapid development of network technology, information sharing is constantly upgrading. On the one hand, it provides convenience for people to obtain information, but on the other hand, it also provides opportunities for unethical behaviors such as plagiarism, theft, and illegal dissemination. Text duplication detection technology has gradually become an important research topic in the field of natural language processing. It is of great significance to curb plagiarism and protect digital products. The existing English duplicate text detection technology is mainly divided into the following two types: 1. The string matching method is used to detect duplication. The string is mainly extracted from the document and used as the basic unit of document detection. Then the extracted string is mapped into a hash table. Each string corresponds to a number. Finally, the ratio of the same string in the two documents to the text chapter is counted. The similarity between the two documents is calculated by the similarity calculation formula, and then the text duplication phenomenon is judged. This type of algorithm does not solve the influence of subtle differences in text data well, which has a great impact on the accuracy of the search. 2. If the method based on word frequency statistics is used to detect duplication, the dot product method, cosine method, etc. are used to calculate the similarity between the two document vectors according to the number of times each word appears in the document, so as to judge whether there is a copy phenomenon between the two documents. The advantages are that it is simple and fast, and the results are more in line with the actual situation. The disadvantages are that it only uses "word frequency" as a measurement standard, which is not comprehensive enough, and factors such as part of speech and word position are not taken into account. In addition, sometimes important words may not appear many times, and the word position information cannot be reflected. Summary of the invention

[0003] In view of the problems existing in the prior art, the present invention discloses an English repeated text detection method based on an autoencoder, which specifically comprises the following steps:

[0004] S1: Select two English texts to be compared, and convert the texts into two sets of ASCII code values ​​in character order;

[0005] S2: For each character, the ASCII code value of the surrounding characters is used to represent its characteristics;

[0006] S3: Use the autoencoder to reduce the dimension of each character point feature;

[0007] S4: Use the Jaccard similarity coefficient to calculate the similarity between the two texts based on the features after dimensionality reduction, and determine whether the texts are repeated based on the similarity.

[0008] Furthermore, the method of selecting two sections of English text to be compared and converting the text into two sets of ASCII code values ​​in character order is specifically adopted as follows: the two sections of English text to be compared are converted into their corresponding ASCII code values ​​one by one in order, including letters, punctuation marks, and spaces, and stored in two vectors respectively.

[0009] Furthermore, the method of using the ASCII code values ​​of the surrounding characters to represent the characteristics of each character is specifically as follows: each character is regarded as a feature point in the order of input, and the characteristics of each point are stored in a (N×2-1)×N matrix. From the first row to the last row of the matrix, N-1, N-2, ..., 1 are used as radii, and the ASCII code values ​​of letters within the radius range are selected, and stored from the Nth column of the matrix to the first column and the last column in the order of position, and the remaining positions are filled with 0, where N is the local feature control parameter of the current character.

[0010] Furthermore, the method of using the autoencoder to reduce the dimension of each character point is as follows: using the autoencoder to reduce the dimension of each feature point with a size of (N×2-1)×N, and obtaining Characteristics of size; wherein N and K represent positive integers greater than 1, and N is greater than K.

[0011] Furthermore, the Jaccard similarity coefficient is used to calculate the similarity between two texts based on the features after dimensionality reduction, and the following method is used to determine whether the texts are repeated based on the similarity: the set of all feature points in each text is used as the feature of the text, and the similarity is calculated according to the Jaccard similarity coefficient formula, which is as follows:

[0012]

[0013] Among them, A and B represent the feature sets of two texts respectively.

[0014] Then, a reasonable similarity threshold is set, and the calculated similarity is compared with the similarity threshold. Texts with a value greater than the set threshold are judged as duplicates, and texts with a value less than the set threshold are judged as non-duplicates.

[0015] An English repeated text detection system, comprising:

[0016] The acquisition unit is used to obtain at least two sections of English text information to be compared, and convert the text into two groups of ASCII code values ​​in character order;

[0017] An extraction unit, used for representing the characteristics of each character using the ASCII code values ​​of surrounding characters;

[0018] The encoding unit is used to perform dimensionality reduction processing on the features of each character point;

[0019] The analysis unit is used to calculate the similarity between two texts using the Jaccard similarity coefficient for the features after dimensionality reduction, and to determine whether the texts are repeated based on the similarity.

[0020] A terminal comprises a memory and a processor;

[0021] The memory is used to store computer programs;

[0022] The processor is used to execute the computer program stored in the memory;

[0023] The computer program is used by a processor to execute the English repeated text detection method as described above.

[0024] A computer-readable storage medium stores a computer program; the computer program is used to execute the English repeated text detection method as described above.

[0025] Due to the adoption of the above technical scheme, the present invention provides an English repeated text detection method, system, terminal and storage medium based on an autoencoder, wherein the method is used to detect whether two paragraphs of text are repeated, and the similarity is compared in units of characters, thereby improving the detection accuracy and deduplicating the text at the same time, which is of great significance for related work such as preventing plagiarism. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0027] Figure 1 is a flow chart of the method of the present invention;

[0028] Figure 2 This is a schematic diagram of Chinese text conversion and ASCII code conversion in the present invention;

[0029] Figure 3 It is a schematic diagram of character feature representation in the present invention;

[0030] Figure 4 It is a schematic diagram of feature dimensionality reduction in the present invention;

[0031] Figure 5 It is a schematic diagram of similarity calculation in the present invention;

[0032] Figure 6 It is a schematic diagram of the structure of the system of the present invention. DETAILED DESCRIPTION

[0033] In order to make the technical solutions and advantages of the present invention more clear, the technical solutions in the embodiments of the present invention are clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention:

[0034] like Figure 1 The method for detecting repeated English text based on an autoencoder shown in FIG. 1 specifically comprises the following steps:

[0035] S1: Select two English texts to be compared, and convert the texts into two sets of ASCII code values ​​in character order, such as Figure 2 As shown, two sections of English text to be compared are converted into their corresponding ASCII code values ​​one by one in order, including letters, punctuation marks, and spaces, and stored in two vectors respectively.

[0036] S2: For each character, use the ASCII code value of the surrounding characters to represent its characteristics, such as Figure 3 As shown (N is 14 for example), each character is regarded as a feature point according to the input order, and the feature of each point is stored in a (N×2-1)×N matrix. From the first row to the last row of the matrix, N-1, N-2, ..., 1 are used as radii, and the ASCII code values ​​of the letters within the radius range are selected, and stored from the Nth column of the matrix to the first and last columns in order of position, and the remaining positions are filled with 0, where N is the local feature control parameter of the current character.

[0037] S3: Use the autoencoder to reduce the dimension of each character point, such as Figure 4 As shown, the autoencoder is used to reduce the dimension of each feature point with a size of (N×2-1)×N, and the A characteristic of size, wherein N and K represent positive integers greater than 1, and N is greater than K.

[0038] S4: Use the Jaccard similarity coefficient to calculate the similarity between two texts after dimension reduction, and determine whether the text is repeated based on the similarity. Figure 5 As shown in the figure, the set of all feature points in each text is taken as the feature of the text, and the similarity is calculated according to the Jaccard similarity coefficient formula. The formula is as follows:

[0039]

[0040] Among them, A and B represent the feature sets of two texts respectively.

[0041] Then a reasonable threshold is set and the calculated similarity is compared with it. Texts with a value greater than the set threshold are judged as duplicates, and texts with a value less than the set threshold are judged as non-duplicates.

[0042] For the English repeated text detection method based on the autoencoder provided by the present invention, the present invention also provides an English repeated text detection system, such as Figure 6 As shown, the system includes a collection unit, an extraction unit, an encoding unit and an analysis unit, wherein:

[0043] The acquisition unit, as the input end of the system, is used to obtain at least two sections of English text information to be compared, and convert the text into two groups of ASCII code values ​​in character order;

[0044] An extraction unit, used for representing the characteristics of each character using the ASCII code values ​​of surrounding characters;

[0045] The encoding unit is used to perform dimensionality reduction processing on the features of each character point;

[0046] The analysis unit is used to calculate the similarity between two texts using the Jaccard similarity coefficient for the features after dimensionality reduction, and to determine whether the texts are repeated based on the similarity.

[0047] Furthermore, the extraction unit uses the ASCII code values ​​of the surrounding characters to represent the features of each character in the following specific manner: in order of input, each character is regarded as a feature point, and the features of each point are stored in an (N×2-1)×N matrix, from the first row to the last row of the matrix, with N-1, N-2, ..., 1 as the radius, and the ASCII code values ​​of the letters within the radius range before and after are selected, and stored in order from the Nth column of the matrix to the first column and the last column, and the remaining positions are filled with 0.

[0048] An embodiment of the present invention further discloses a terminal, comprising a memory and a processor;

[0049] The memory is used to store computer programs;

[0050] The processor is used to execute the computer program stored in the memory;

[0051] The computer program is used by a processor to execute the English repeated text detection method as described above.

[0052] An embodiment of the present invention further discloses a computer storage medium, wherein the computer-readable storage medium stores a computer program; the computer program is used to execute the English repeated text detection method as described above.

[0053] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0054] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0055] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0056] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0057] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0058] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0059] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A method for detecting repeated English text based on an autoencoder, characterized in that The following steps are involved: Select at least two English texts to be compared, and convert the texts into two groups of ASCII code values ​​in character order; The ASCII code value of the surrounding characters is used to represent the characteristics of each character. The specific method is as follows: According to the input order, each character is regarded as a feature point, and the features of each point are stored in a (N×2-1)×N matrix. From the first row to the last row of the matrix, N-1, N-2, ..., 1 are used as the radius, and the ASCII code values ​​of the letters within the radius range are selected. They are stored from the Nth column of the matrix to the first column and the last column in order of position, and the remaining positions are filled with 0, where N is the local feature control parameter of the current character; Use the autoencoder to reduce the dimension of each character point; The Jaccard similarity coefficient is used to calculate the similarity between two texts based on the features after dimensionality reduction, and whether the texts are repeated is determined based on the similarity.

2. The method for detecting repeated English text based on an autoencoder according to claim 1, further comprising: The text is converted into two sets of ASCII code values ​​in character order using the following method: For each piece of English text, all characters, including letters, punctuation marks, and spaces, are converted into their corresponding ASCII code values ​​one by one and stored in two vectors respectively.

3. The method for detecting repeated English text based on an autoencoder according to claim 1, further comprising: The autoencoder is used to reduce the dimension of each feature point with a size of (N×2-1)×N to obtain A characteristic of size, wherein N and K are positive integers greater than 1, and N is greater than K.

4. The method for detecting repeated English text based on an autoencoder according to claim 1, further comprising: When determining whether text is repeated based on similarity: take the set of all feature points in each text as the feature of the text, and calculate the similarity between the two texts according to the Jaccard similarity coefficient formula. The formula is as follows: Among them, A and B represent the feature sets of two texts respectively; A similarity threshold is set, and the calculated similarity is compared with the similarity threshold. Texts with a value greater than the set threshold are determined to be repeated, and texts with a value less than the set threshold are determined to be non-repeated.

5. An English repeated text detection system, characterized in that include: The acquisition unit is used to obtain at least two sections of English text information to be compared, and convert the text into two groups of ASCII code values ​​in character order; The extraction unit is used to represent the characteristics of each character using the ASCII code values ​​of the surrounding characters. The specific method is as follows: According to the input order, each character is regarded as a feature point, and the features of each point are stored in a (N×2-1)×N matrix. From the first row to the last row of the matrix, N-1, N-2, ..., 1 are used as the radius, and the ASCII code values ​​of the letters within the radius range are selected. They are stored from the Nth column of the matrix to the first column and the last column in order of position, and the remaining positions are filled with 0, where N is the local feature control parameter of the current character; The encoding unit is used to perform dimensionality reduction processing on the features of each character point; The analysis unit is used to calculate the similarity between two texts using the Jaccard similarity coefficient for the features after dimensionality reduction, and to determine whether the texts are repeated based on the similarity.

6. A terminal, characterized in that: including memory and processor; The memory is used to store computer programs; The processor is used to execute the computer program stored in the memory; The computer program is executed by a processor to implement the English repeated text detection method based on an autoencoder as described in any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program; the computer program is used to execute the English repeated text detection method based on the autoencoder as described in any one of claims 1-4.