Text duplicate checking method and device, electronic equipment and computer program product

By obtaining the initial vocabulary and its vocabulary number and spatial distribution data in the text sample data, clustering processing and adjustment are performed, which solves the problem of selecting cluster centers without considering the vocabulary distribution and improves the accuracy of text duplication checking.

CN118798155APending Publication Date: 2024-10-18CHINA MOBILE GROUP DESIGN INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410522464.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-28
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

In existing text duplication checking methods, the selection of cluster centers does not consider the distribution of words, resulting in inaccurate clustering results and affecting the results of text duplication checking.

Method used

By obtaining the initial vocabulary and its vocabulary number and spatial distribution data in the text sample data, clustering processing is performed, and the vocabulary clustering is adjusted to obtain the target vocabulary, thereby improving the accuracy of text duplication checking.

Benefits of technology

By adjusting word clustering, the meaning of the initial words can be more accurately represented, the accuracy of text duplication checking results can be improved, and the interference of irrelevant words on text information can be reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118798155A_ABST
    Figure CN118798155A_ABST
Patent Text Reader

Abstract

The invention relates to a text duplicate checking method and device, electronic equipment and a computer program product. The text duplicate checking method comprises the steps of obtaining text sample data, extracting multiple initial vocabularies from the text sample data, and obtaining vocabulary numbers and spatial distribution data corresponding to the multiple initial vocabularies; clustering the plurality of initial words to obtain a plurality of initial word aggregation clusters; based on the vocabulary number and the spatial distribution data corresponding to each type of initial vocabulary in each initial word aggregation cluster, adjusting the plurality of initial word aggregation clusters to obtain a plurality of target word aggregation clusters; and performing duplicate checking on the to-be-tested text by utilizing a plurality of target vocabularies determined on the basis of the plurality of target word gathering clusters. According to the method, when the multiple initial vocabularies are clustered, the vocabulary number and the spatial distribution data corresponding to the multiple initial vocabularies are considered, the accuracy of a clustering result is improved, and then the accuracy of a text duplicate checking result is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a text duplication checking method, device, electronic device and computer program product. Background Art

[0002] The text duplication check operation refers to performing a similarity analysis on the text to be tested to determine whether there are a large number of similar or completely duplicate existing texts in the text to be tested.

[0003] In the related art, when clustering algorithms are used to cluster similar text blocks, the selection of cluster centers is generally specified by multiple conventional shortest distance positions. This method of selecting cluster centers does not take into account the distribution of vocabulary in the text to be tested, resulting in inaccurate clustering results, which in turn affects the results of text duplication checking. Summary of the invention

[0004] In view of this, exemplary embodiments of the present disclosure provide a text duplication checking method, device, electronic device and computer program product to solve the problems existing in the related art.

[0005] According to a first aspect of the exemplary embodiments of the present disclosure, a method for checking for duplicate text is provided, comprising:

[0006] Acquire text sample data, extract a plurality of initial words from the text sample data, and obtain word quantity and spatial distribution data corresponding to the plurality of initial words;

[0007] Clustering is performed on a plurality of initial vocabulary words to obtain a plurality of initial vocabulary clusters;

[0008] Based on the vocabulary quantity and spatial distribution data corresponding to each initial vocabulary in each initial vocabulary cluster, multiple initial vocabulary clusters are adjusted to obtain multiple target vocabulary clusters;

[0009] Based on the clustering of multiple target words, multiple target words are determined, and the multiple target words are used to check the duplicates of the text to be tested.

[0010] According to a second aspect of the exemplary embodiments of the present disclosure, there is provided a text duplication checking device, comprising:

[0011] A processing module, used to obtain text sample data, extract a plurality of initial words from the text sample data, and obtain the word quantity and spatial distribution data corresponding to the plurality of initial words;

[0012] A clustering module, used for clustering a plurality of initial vocabulary words to obtain a plurality of initial vocabulary clusters;

[0013] An adjustment module, configured to adjust the multiple initial vocabulary clusters based on the vocabulary quantity and spatial distribution data corresponding to each initial vocabulary in each initial vocabulary cluster, to obtain multiple target vocabulary clusters;

[0014] The processing module is also used to determine multiple target words based on multiple target word clusters, and use the multiple target words to check the duplicate content of the text to be tested.

[0015] According to a third aspect of the exemplary embodiments of the present disclosure, there is provided an electronic device, including:

[0016] at least one processor;

[0017] a memory for storing at least one processor executable instruction;

[0018] Wherein, at least one processor is used to execute instructions to implement the steps of the above method.

[0019] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the steps of the above method.

[0020] According to a fifth aspect of the exemplary embodiments of the present disclosure, a computer program product is provided, including a computer program, wherein the steps of the above method are implemented when the computer program is executed by a processor.

[0021] At least one of the above-mentioned technical solutions adopted in the exemplary embodiments of the present disclosure can achieve the following beneficial effects: by acquiring text sample data, extracting a plurality of initial vocabularies from the text sample data, and acquiring the vocabulary quantity and spatial distribution data corresponding to the plurality of initial vocabularies respectively; clustering the plurality of initial vocabularies to obtain a plurality of initial vocabularies clusters; adjusting the plurality of initial vocabularies clusters based on the vocabulary quantity and spatial distribution data corresponding to each initial vocabularies in each initial vocabularies cluster to obtain a plurality of target vocabularies clusters; determining a plurality of target vocabularies based on the plurality of target vocabularies clusters, and using the plurality of target vocabularies to check for duplicates in the test text, and after obtaining the plurality of initial vocabularies clusters, adjusting the plurality of initial vocabularies clusters using the vocabulary quantity and spatial distribution data corresponding to the plurality of initial vocabularies clusters to obtain a plurality of target vocabularies clusters, so that the plurality of target vocabularies determined based on the plurality of target vocabularies clusters can more accurately represent the meaning of the initial vocabularies included in the corresponding target vocabularies clusters, and thus when using the plurality of target vocabularies to check for duplicates in the test text, the accuracy of the text duplicate checking result can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions in the exemplary embodiments of the present disclosure, 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 of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0023] Figure 1 A schematic diagram of a flow chart of a text duplication checking method provided by an exemplary embodiment of the present disclosure is shown;

[0024] Figure 2 A schematic diagram of the structure of a text duplication checking device provided by an exemplary embodiment of the present disclosure is shown;

[0025] Figure 3 A schematic diagram of the structure of an electronic device provided by an exemplary embodiment of the present disclosure is shown;

[0026] Figure 4 A schematic diagram of the structure of a computer system provided by an exemplary embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0027] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0028] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0029] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the description below. It should be noted that the concepts of "first", "second", etc. mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0030] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0031] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0032] For large-scale text collections, text duplication checking can generally be used to perform similarity analysis on the text to be tested. By detecting and comparing similar text blocks, tasks such as document clustering, text classification, and information extraction can be performed to help understand and process large amounts of text data. The value of large-scale text is often reflected in the innovation and uniqueness of the content. If there are a large number of similar or completely duplicate existing texts in the text to be tested, it may involve plagiarism and infringement issues. In practical applications, through duplication checking operations, these problems can be discovered and handled in a timely manner to protect the rights and interests of original content.

[0033] In the related art, a large-scale text collection is usually divided into different clusters through the K-means clustering algorithm, and similar text blocks are judged and analyzed based on the text information represented by the clusters, and texts with high similarity are screened to protect the digital copyright of the text. When the K-means clustering algorithm performs clustering judgments on similar text blocks, the selection of cluster centers is often specified by conventional multiple shortest distance positions. However, the distribution of vocabulary in actual texts may be different, and short-term high-frequency words that appear in some text paragraphs are likely to cause local minimum areas where words are locally clustered in the sample space after word segmentation, resulting in misjudgment of the cluster center at the starting time, and ultimately making the similar text data represented by the clusters of the clustering results inaccurate, mixed with too much other data, and then making the similarity calculated between clusters have abnormal differences, resulting in inaccurate text duplication detection results.

[0034] Therefore, in order to solve the above problems, an exemplary embodiment of the present disclosure provides a text duplication checking method, which collects large-scale text and performs word segmentation, and obtains the initial vocabulary space of the large-scale text through vocabulary cleaning; wherein the initial vocabulary space may include multiple initial vocabulary, and obtains the vocabulary quantity and spatial distribution data corresponding to the multiple initial vocabulary respectively; clustering the multiple initial vocabulary to obtain multiple initial vocabulary clusters; based on the vocabulary quantity and spatial distribution data corresponding to each initial vocabulary in each initial vocabulary cluster, adjusting the multiple initial vocabulary clusters to obtain multiple target vocabulary clusters; determining multiple target vocabulary based on the multiple target vocabulary clusters, and using the multiple target vocabulary to check the duplicate text of the test, after obtaining the multiple initial vocabulary clusters, adjusting the multiple initial vocabulary clusters using the vocabulary quantity and spatial distribution data corresponding to the multiple initial vocabulary respectively, to obtain multiple target vocabulary clusters, so that the multiple target vocabulary determined based on the multiple target vocabulary clusters can more accurately represent the meaning of the initial vocabulary included in the corresponding target vocabulary clusters, and thus when using the multiple target vocabulary to check the duplicate text of the test, the accuracy of the text duplication checking result can be improved.

[0035] The text duplication checking method provided by the exemplary embodiments of the present disclosure may be executed by a terminal or by a chip applied to the terminal.

[0036] Exemplarily, the above-mentioned terminal may include one or more of a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), and a wearable device based on augmented reality (AR) and / or virtual reality (VR) technology, etc., and the exemplary embodiments of the present disclosure do not impose specific limitations on this.

[0037] Step 1: collect large-scale texts, and extract multiple initial words from the large-scale texts as the initial vocabulary space, and the number of each initial word is one or more.

[0038] The purpose of the exemplary embodiment of the present disclosure is to cluster the various initial words included in the large-scale text, find key words through the clustering results, characterize synonyms through the key words and perform text duplication check. Therefore, it is necessary to first obtain various initial words from the large-scale text.

[0039] Exemplarily, a large-scale text may be collected as text sample data, and a word segmentation process may be performed on the large-scale text to obtain a word segmentation result; wherein the word segmentation result may include a variety of original words, and the various original words may include single-word words and multi-word words. Here, a single-word word is a word consisting of only one word. The exemplary embodiment of the present disclosure may use the Jieba word segmentation algorithm to perform word segmentation on the large-scale text. The Jieba word segmentation algorithm is a well-known technology, and the exemplary embodiment of the present disclosure will not be repeated.

[0040] Considering that in the text clustering analysis process, each initial word is used as a feature dimension, too many feature dimensions will cause the connection between features to become sparse. Single-word words have poor representation ability for key words, and a large number of single-word words will weaken the representation ability of feature dimensions, affect the determination of cluster centers, and further affect the results of text duplication detection.

[0041] For example, the exemplary embodiments of the present disclosure can clean the word segmentation results by vocabulary cleaning, remove single-word words, and use the remaining multi-word words to form an initial vocabulary space; wherein the initial vocabulary space includes multiple initial words. In this case, the multiple initial words are all multi-word words.

[0042] Step 2: According to the distribution of each initial vocabulary in the initial vocabulary space, obtain the global important factors of various initial vocabulary.

[0043] In the method of the exemplary embodiment of the present disclosure, the same initial vocabulary is analyzed as the same type of initial vocabulary as a whole, and the distribution of various initial vocabulary in the initial vocabulary space characterizes its local distribution state or global distribution state. Based on this, the exemplary embodiment of the present disclosure can obtain a global importance factor by quantifying the vocabulary quantity and spatial distribution data of each initial vocabulary. The larger the global importance factor, the more evenly the initial vocabulary is distributed in the initial vocabulary space, indicating that the initial vocabulary does not locally emphasize specific content in a large-scale text, but rather receives balanced attention in a large-scale text, which has a greater reference significance for subsequent vocabulary clustering.

[0044] Exemplarily, statistics are collected on various initial vocabularies included in the initial vocabularies space to obtain vocabulary quantities and spatial distribution data of various initial vocabularies; based on the vocabulary quantities and spatial distribution data of various initial vocabularies, global importance factors of various initial vocabularies are calculated.

[0045] First, the exemplary embodiment of the present disclosure can calculate the vocabulary share of each initial vocabulary by the ratio of the vocabulary number of each initial vocabulary to the total number of multiple initial vocabulary in the initial vocabulary space; perform linear normalization on the vocabulary share of this initial vocabulary to obtain the vocabulary content factor of this initial vocabulary.

[0046] The spatial distribution data may include a spatial distribution distance, which may be used to characterize the spatial distribution of two adjacent identical initial words in the text sample data. The spatial distribution distance may be the spatial distribution distance between two adjacent identical initial words in the initial words, and the spatial distribution distance may be represented by the number of interval words. Here, the number of interval words may be defined as the number of other types of initial words that are spaced between two adjacent identical initial words.

[0047] At this time, for each initial vocabulary, after the spatial distribution distance between each adjacent two identical initial vocabulary, the spatial distribution distance mean of the initial vocabulary can be calculated based on the spatial distribution distance between each adjacent two identical initial vocabulary. The spatial distribution distance mean can be the average value of the spatial distribution distance between each adjacent two identical initial vocabulary in the initial vocabulary.

[0048] Then, the spatial distribution distance means of various initial words are used to calculate the average of the spatial distribution distance means of the various initial words and the standard deviation of the spatial distribution distance means of the various initial words.

[0049] Based on this, the global importance factor of this type of initial vocabulary can be calculated based on the number of words of this type of initial vocabulary, the spatial distribution distance of this type of initial vocabulary, the vocabulary content factor of this type of initial vocabulary, the average of the spatial distribution distance means of the initial vocabulary, and the standard deviation of the spatial distribution distance means of multiple initial vocabulary.

[0050] The calculation formula of the global importance factor of the initial vocabulary can be:

[0051]

[0052] Among them, A k represents the global importance factor of the k-th initial vocabulary; ρ k represents the vocabulary content factor of the kth initial vocabulary; represents the average value of the distance between two adjacent k-th initial words, that is, the mean value of the spatial distribution distance of the k-th initial words; n k represents the number of words in the kth initial vocabulary; d k (c i , c i+1 ) represents the distance between the i-th k-th initial vocabulary and the i+1-th k-th initial vocabulary, that is, the distance between two adjacent k-th initial vocabulary; represents the average value obtained by calculating the average value of the distances between two adjacent initial words of the same type in a variety of initial words, that is, the average value of the spatial distribution distances of a variety of initial words; σ dIt represents the standard deviation of the distance between two adjacent initial words of the same type among multiple initial words, that is, the standard deviation of the mean of the spatial distribution distance of multiple initial words.

[0053] Based on this, it can be concluded that the larger the number of words of a certain initial vocabulary, the larger the vocabulary content factor, and the larger the mean of the spatial distribution distance, the larger the global importance factor of the initial vocabulary, and the greater the probability that the initial vocabulary is evenly distributed in a large-scale text. At the same time, by calculating the kurtosis of the distance between two adjacent initial words of the same type, the average of the spatial distribution distance means of multiple initial words, and the standard deviation of the spatial distribution distance means of multiple initial words, the larger the fourth power sum in formula (1), the greater the probability that the initial vocabulary is evenly distributed and the larger the global importance factor.

[0054] Step 3: Obtain word vectors of multiple initial vocabulary words, perform clustering processing on the word vectors of the multiple initial vocabulary words, and obtain multiple initial vocabulary clusters; wherein each initial vocabulary cluster has a corresponding initial cluster center.

[0055] In the method of the exemplary embodiment of the present disclosure, since each initial vocabulary is the same initial vocabulary, each initial vocabulary can be input into the word vector generation model to obtain the word vector of each initial vocabulary. Here, the word vector generation model can be a Word2Vec model, and the exemplary embodiment of the present disclosure can set the number of dimensions of the word vector of the initial vocabulary output by the Word2Vec model to 10. Using the Word2Vec model to output the word vector of the initial vocabulary is a well-known technology, and the exemplary embodiment of the present disclosure will not be repeated.

[0056] When clustering the word vectors of multiple initial vocabulary words to obtain multiple initial vocabulary clusters, the clustering process can use the Iterative Selforganizing Data Analysis (ISODATA) algorithm, and the distance measurement can use the dynamic time warping (DTW) distance between each initial vocabulary to obtain multiple initial vocabulary clusters, each of which includes at least one initial vocabulary. When there are multiple types of initial vocabulary included in each initial vocabulary cluster, the multiple initial vocabulary words have similar meanings and may be synonyms. Here, the ISODATA algorithm is a well-known technology and the exemplary embodiments of the present disclosure will not be repeated.

[0057] Step 4: Obtain adjustment necessity parameters for each initial vocabulary cluster based on the types of initial vocabulary included in each initial vocabulary cluster and the global importance factors of each initial vocabulary cluster; adjust each initial vocabulary cluster based on the adjustment necessity parameters for each initial vocabulary cluster and the global importance factors of the initial vocabulary included in each initial vocabulary cluster to obtain multiple local vocabulary clusters; wherein each local vocabulary cluster has a corresponding local cluster center.

[0058] It should be noted that after obtaining multiple initial vocabulary clusters, it is necessary to quantify the adjustment necessity parameters of each initial vocabulary cluster, and determine whether the initial vocabulary cluster needs to be split and adjusted by adjusting the necessity parameters, so as to avoid the loss of text information when extracting key words using the initial cluster center point of the initial vocabulary cluster due to the large differences in the expression meanings of the various initial words included in the initial vocabulary cluster.

[0059] Furthermore, when quantifying the adjustment necessity parameter of each initial vocabulary cluster, it is necessary to consider the number of types of initial vocabulary included in the initial vocabulary cluster and the global importance factors of various initial vocabulary.

[0060] Specifically, for any initial vocabulary cluster, the number of types of initial vocabulary included in the initial vocabulary cluster is obtained, which is recorded as the vocabulary class number of the initial vocabulary cluster. According to the above method, the vocabulary class number of each initial vocabulary cluster is obtained, and the calculation formula for the adjustment necessity parameter of the i-th initial vocabulary cluster can be:

[0061]

[0062] Among them, B i represents the adjustment necessity parameter of the i-th initial vocabulary cluster, m max The maximum number of vocabulary classes among the vocabulary classes of multiple initial vocabulary clusters, m i represents the number of vocabulary classes of the i-th initial vocabulary cluster, A i,j represents the global importance factor of the jth initial vocabulary included in the i-th initial vocabulary cluster, represents the mean of the global important factors of the initial vocabulary included in the ith initial vocabulary cluster, || represents the absolute value, λ represents a hyperparameter to prevent the output value of the exponential function from being too small, λ=0.01, exp() is an exponential function with a natural constant as the base, and the exp(-x) model is used to present the inverse proportional relationship and normalization processing, x is the input of the model. In practical applications, the inverse proportional function and normalization function can be set according to the actual situation.

[0063] It can be seen from formula (2) that the larger the number of vocabulary classes of a certain initial vocabulary cluster, the smaller the ratio of the maximum number of vocabulary classes among the vocabulary class numbers of multiple initial vocabulary clusters to the number of vocabulary classes of the initial vocabulary cluster, and the more the adjustment necessity parameter of the initial vocabulary cluster is affected by the global important factors of the initial vocabulary included in the initial vocabulary cluster. At the same time, the smaller the difference in the global important factors of the initial vocabulary included in the initial vocabulary cluster, the closer the meanings of the initial vocabulary included in the initial vocabulary cluster are. Therefore, the accuracy of selecting key vocabulary using the initial cluster center point of the initial vocabulary cluster is higher, and the smaller the adjustment necessity parameter of the initial vocabulary cluster is; on the contrary, the larger the adjustment necessity parameter of the initial vocabulary cluster, the greater the difference in the meanings of the initial vocabulary included in the initial vocabulary cluster, and the more it is necessary to re-cluster the initial vocabulary included in the initial vocabulary cluster so that the meanings of the initial vocabulary included in the re-clustered vocabulary cluster are similar.

[0064] Exemplarily, after calculating the adjustment necessity parameter of the initial vocabulary cluster, first sort the multiple initial words included in the initial vocabulary cluster in descending order according to the number of words of each initial vocabulary to obtain an initial vocabulary sequence; then, obtain the maximum value of the global importance factor of the initial vocabulary in the initial vocabulary sequence, and divide the initial vocabulary sequence into multiple sub-lexical sequences according to the maximum value of the global importance factor of the initial vocabulary, respectively determine the vocabulary clusters corresponding to the sub-lexical sequences as local vocabulary clusters, and calculate the adjustment necessity parameter of each local vocabulary cluster. Finally, compare the adjustment necessity parameter of each local vocabulary cluster with the adjustment necessity parameter of the initial vocabulary cluster to determine whether to split the initial vocabulary cluster, and then obtain a number of target vocabulary clusters.

[0065] Here, if the maximum value of the global importance factor of the initial vocabulary in the initial vocabulary sequence is zero, the initial vocabulary cluster corresponding to the initial vocabulary sequence is determined as the target vocabulary cluster; if the maximum value of the global importance factor of the initial vocabulary in the initial vocabulary sequence is one, the initial vocabulary sequence is divided into two sub-vocabulary sequences, and the vocabulary cluster corresponding to each sub-vocabulary sequence is determined as a local vocabulary cluster. At this time, the initial vocabulary cluster can be split into two local vocabulary clusters; if the maximum value of the global importance factor of the initial vocabulary in the initial vocabulary sequence is multiple, the initial vocabulary sequence is divided into multiple sub-vocabulary sequences, and the vocabulary cluster corresponding to each sub-vocabulary sequence is determined as a local vocabulary cluster. At this time, the initial vocabulary cluster can be split into multiple local vocabulary clusters, and the number of local vocabulary clusters is one more than the number of maximum values ​​of the global importance factor of the initial vocabulary in the initial vocabulary sequence.

[0066] For example, the maximum value of the global importance factor of the initial vocabulary in the initial vocabulary sequence can be obtained through the Automatic Multiscale-based Peak Detection (AMPD) algorithm. The AMPD algorithm is a well-known technology and will not be described in detail in the exemplary embodiments of the present disclosure. The initial vocabulary sequence can be divided into multiple sub-lexicon sequences through the maximum value of the global importance factor of the initial vocabulary, and the initial vocabulary corresponding to the global importance factor included in each sub-lexicon sequence is respectively formed into a local vocabulary cluster. The purpose of this step is to divide the initial vocabulary with similar number of vocabulary in the same initial vocabulary cluster into smaller local vocabulary clusters.

[0067] When calculating the adjustment necessity parameters of each local vocabulary cluster, m in formula (2) max and λ are unchanged.

[0068] If the adjustment necessity parameter of the local vocabulary cluster is less than the adjustment necessity parameter of the corresponding initial vocabulary cluster, the local vocabulary cluster is determined as the target vocabulary cluster, indicating that the local vocabulary cluster obtained by splitting has achieved the purpose of reducing the adjustment necessity parameter of the vocabulary cluster. When the local vocabulary cluster is determined as the target vocabulary cluster, the target cluster center of the target vocabulary cluster can more accurately indicate the initial vocabulary with similar meaning, reducing the interference of irrelevant initial vocabulary on the ability to replace and represent text information.

[0069] If the adjustment necessity parameter of the local vocabulary cluster is greater than or equal to the adjustment necessity parameter of the corresponding initial vocabulary cluster, it is necessary to continue splitting. At this time, the sub-lexicon sequence corresponding to the local vocabulary cluster is again subjected to the AMPD algorithm to calculate the maximum value of the global importance factor of the initial vocabulary in the sub-lexicon sequence, and the sub-lexicon sequence is again divided into multiple secondary sequences according to the maximum value of the global importance factor of the initial vocabulary in the sub-lexicon sequence, and the secondary local vocabulary cluster corresponding to each secondary sequence is obtained; the adjustment necessity parameter of each secondary local vocabulary cluster is calculated and compared with the local vocabulary cluster. If the adjustment necessity parameter of the secondary local vocabulary cluster is less than the adjustment necessity parameter of the local vocabulary cluster, the secondary local vocabulary cluster is determined as the target vocabulary cluster class; if the adjustment necessity parameter of the secondary local vocabulary cluster is greater than or equal to the adjustment necessity parameter of the local vocabulary cluster, the splitting and calculation according to the above method are continued until a certain level of local vocabulary cluster contains only one vocabulary cluster class, the splitting of the certain level of local vocabulary cluster is stopped, and the certain level of local vocabulary cluster is determined as the target vocabulary cluster.

[0070] That is to say, if the adjustment necessity parameter of the local vocabulary cluster is greater than or equal to the adjustment necessity parameter of the corresponding initial vocabulary cluster, the local vocabulary cluster is updated to the initial vocabulary cluster, and the initial vocabulary cluster is further split until the adjustment necessity parameter of the local vocabulary cluster is less than the adjustment necessity parameter of the corresponding initial vocabulary cluster.

[0071] So far, the exemplary embodiment of the present disclosure splits the initial vocabulary clusters by adjusting the necessity parameters to obtain multiple target vocabulary clusters, and the target vocabulary clusters include initial vocabulary with similar numbers and similar meanings. At this time, the target cluster center of the target vocabulary cluster can be obtained, and the initial vocabulary corresponding to the target cluster center can be determined as a key vocabulary, so that the key vocabulary can be accurately used for synonym replacement during text duplication checking.

[0072] Step 5: Determine the initial vocabulary corresponding to the target cluster center of each target vocabulary cluster as the key vocabulary, and obtain the vocabulary vector of each key vocabulary; use the vocabulary vector of each key vocabulary to check the duplicate of the text to be tested.

[0073] It should be noted that the initial words included in each target vocabulary cluster have similar meanings, that is, the initial words included in each target vocabulary cluster are all synonyms. When checking for duplicate words in large-scale texts, word replacement is usually adopted to avoid repeated word comparison. At this time, synonym replacement is required to reduce the types of initial words. Therefore, the exemplary embodiment of the present disclosure can determine the initial words corresponding to the target cluster center of each target vocabulary cluster as key words, and use key words to represent the synonyms of all initial words included in the target vocabulary cluster; at the same time, using key words for checking for duplicate words can improve the effect of text duplication analysis and avoid affecting the duplication checking effect due to increasing the types of words due to synonyms.

[0074] Here, for any target vocabulary cluster, the initial vocabulary corresponding to the target cluster center of the target vocabulary cluster is obtained as the key vocabulary of the target vocabulary cluster. The initial vocabulary corresponding to the target cluster center is the initial vocabulary with the greatest similarity among other initial vocabulary included in the target vocabulary cluster. The similarity is quantified with the greatest similarity based on the word vector. The calculation method is a well-known technology and will not be repeated in the exemplary embodiments of the present disclosure.

[0075] Exemplarily, the word vector of each key word can be retrieved through the Word2Vec model, and the dimension of the word vector of each key word can be set to the number of types of initial words included in the corresponding target vocabulary cluster; the word vectors of multiple key words are input into the existing text similarity algorithm, and the text to be tested is checked for duplicates through the text similarity algorithm, and multiple comparison texts that are repeated with the text to be tested, as well as the degree of repetition between the text to be tested and each comparison text are output; the comparison texts and the degree of repetition between the text to be tested and each comparison text are output to the visual interface of the user corresponding to the text to be tested, so that the user can realize intelligent duplicate checking for large-scale texts to be tested.

[0076] Here, the text similarity algorithm may be a SimHash algorithm, which is an existing text duplication checking algorithm and will not be described in detail in the exemplary embodiments of the present disclosure.

[0077] Based on this, the exemplary embodiment of the present disclosure provides a text duplication checking method, which can be executed by a terminal or by a chip applied to the terminal. The terminal can be referred to above and will not be described in detail here.

[0078] Figure 1 FIG. 2 shows a flow chart of a text duplication checking method provided by an exemplary embodiment of the present disclosure. Figure 1 As shown, the text duplication checking method includes:

[0079] S101, obtaining text sample data, extracting a plurality of initial words from the text sample data, and obtaining the word quantity and spatial distribution data corresponding to the plurality of initial words respectively;

[0080] S102, performing clustering processing on the multiple initial vocabulary to obtain multiple initial vocabulary clusters;

[0081] S103, adjusting the multiple initial vocabulary clusters based on the vocabulary quantity and spatial distribution data corresponding to each initial vocabulary in each initial vocabulary cluster to obtain multiple target vocabulary clusters;

[0082] S104, determining a plurality of target words based on the plurality of target word clusters, and using the plurality of target words to check for duplicates in the text to be tested.

[0083] Specifically, the above-mentioned text sample data can be the large-scale text mentioned above. The specific steps of extracting multiple initial words from the text sample data can be referred to above and will not be repeated here. After extracting multiple initial words from the text sample data, the vocabulary quantity and spatial distribution data corresponding to the multiple initial words can be obtained.

[0084] Then, a clustering process is performed on the multiple initial words to obtain multiple initial word clusters. The specific content of the clustering process can be found in the previous text and will not be repeated here.

[0085] When the meanings of the initial words included in the initial vocabulary clusters are quite different, the initial cluster centers of these initial vocabulary clusters may not accurately represent the meanings of all the initial words included in the initial vocabulary clusters. Therefore, the exemplary embodiment of the present disclosure needs to adjust the multiple initial vocabulary clusters to obtain multiple target vocabulary clusters to improve the accuracy of the clustering results. For example, the exemplary embodiment of the present disclosure can adjust the multiple initial vocabulary clusters based on the vocabulary quantity and spatial distribution data corresponding to each initial vocabulary in each initial vocabulary cluster to obtain multiple target vocabulary clusters.

[0086] After obtaining multiple target vocabulary clusters, multiple target words can be determined based on the multiple target vocabulary clusters, and then the multiple target words can be used to check the duplicate text of the test text, which can improve the accuracy of the text duplicate checking result.

[0087] According to the technical solution of the exemplary embodiment of the present disclosure, by acquiring text sample data, a plurality of initial vocabularies are extracted from the text sample data, and the vocabulary quantity and spatial distribution data corresponding to the plurality of initial vocabularies are acquired; the plurality of initial vocabularies are clustered to obtain a plurality of initial vocabularies clusters; based on the vocabulary quantity and spatial distribution data corresponding to each initial vocabularies in each initial vocabularies cluster, the plurality of initial vocabularies clusters are adjusted to obtain a plurality of target vocabularies clusters; based on the plurality of target vocabularies clusters, a plurality of target vocabularies are determined, and the plurality of target vocabularies are used to check for duplicates in the text to be tested; after obtaining the plurality of initial vocabularies clusters, the plurality of initial vocabularies clusters are adjusted to obtain the plurality of target vocabularies clusters using the vocabulary quantity and spatial distribution data corresponding to the plurality of initial vocabularies, so that the plurality of target vocabularies determined based on the plurality of target vocabularies clusters can more accurately represent the meanings of the initial vocabularies included in the corresponding target vocabularies clusters, and thus when the plurality of target vocabularies are used to check for duplicates in the text to be tested, the accuracy of the text duplication checking result can be improved.

[0088] In some embodiments, based on the vocabulary quantity and spatial distribution data corresponding to each initial vocabulary in each initial vocabulary cluster, multiple initial vocabulary clusters are adjusted to obtain multiple target vocabulary clusters, which may include:

[0089] For any initial vocabulary cluster, based on the vocabulary quantity and spatial distribution data corresponding to each initial vocabulary in the initial vocabulary cluster, calculate the adjustment necessity parameter of the initial vocabulary cluster;

[0090] Divide the initial vocabulary cluster to obtain multiple local vocabulary clusters;

[0091] Based on the vocabulary quantity and spatial distribution data corresponding to each initial vocabulary in each local vocabulary cluster, respectively calculate the adjustment necessity parameters of each local vocabulary cluster;

[0092] Based on the adjustment necessity parameter of the initial vocabulary cluster and the adjustment necessity parameters of each local vocabulary cluster, the initial vocabulary cluster is adjusted to obtain a plurality of target vocabulary clusters.

[0093] Specifically, the exemplary embodiments of the present disclosure may adjust each initial vocabulary cluster separately, and determine one or more target vocabulary clusters from an initial vocabulary cluster.

[0094] First, for each initial vocabulary cluster, the adjustment necessity parameter of the initial vocabulary cluster can be calculated based on the vocabulary quantity and spatial distribution data corresponding to each initial vocabulary in the initial vocabulary cluster. Here, the calculation formula of the adjustment necessity parameter of the initial vocabulary cluster can refer to the formula (2) in the previous text, which will not be repeated here.

[0095] Then, the initial vocabulary clusters are divided to obtain multiple local vocabulary clusters; and based on the vocabulary quantity and spatial distribution data corresponding to each initial vocabulary in each local vocabulary cluster, the adjustment necessity parameters of each local vocabulary cluster are calculated respectively. Here, the adjustment necessity parameters of the local vocabulary clusters can be calculated by the formula (2) mentioned above.

[0096] At this time, an adjustment strategy for the initial vocabulary cluster can be determined based on the adjustment necessity parameters of the initial vocabulary cluster and the adjustment necessity parameters of each local vocabulary cluster, and the initial vocabulary cluster can be adjusted using the adjustment strategy to obtain a target vocabulary cluster corresponding to the initial vocabulary cluster.

[0097] It should be noted that after the initial vocabulary clusters are adjusted, the number of target vocabulary clusters corresponding to each initial vocabulary cluster may be one or more, which is not specifically limited here.

[0098] Based on this, the exemplary embodiment of the present disclosure divides the initial vocabulary clusters to obtain multiple local vocabulary clusters; and respectively calculates the adjustment necessity parameters of the initial vocabulary clusters and the adjustment necessity parameters of each local vocabulary cluster, and adjusts the initial vocabulary clusters based on the adjustment necessity parameters of the initial vocabulary clusters and the adjustment necessity parameters of each local vocabulary cluster to obtain multiple target vocabulary clusters, and can adjust each initial vocabulary cluster separately to obtain multiple target vocabulary clusters with more accurate clustering results.

[0099] In some embodiments, the spatial distribution data may include a spatial distribution distance, which may be used to characterize the spatial distribution of two adjacent identical initial words in the text sample data; based on the number of words and the spatial distribution data corresponding to each initial word in the initial vocabulary cluster, the adjustment necessity parameter of the initial vocabulary cluster is calculated, including:

[0100] Obtaining the total number of the multiple initial words, and calculating the vocabulary proportion of each initial word in the initial vocabulary cluster based on the vocabulary number corresponding to each initial word in the initial vocabulary cluster and the total number of the multiple initial words;

[0101] Based on the vocabulary numbers and spatial distribution distances corresponding to the various initial vocabulary words, as well as the vocabulary proportion and spatial distribution distance of each initial vocabulary word in the initial vocabulary cluster, the global content factor of each initial vocabulary word in the initial vocabulary cluster is calculated;

[0102] The number of types of initial vocabulary in the initial vocabulary cluster is obtained, and based on the number of types of initial vocabulary in the initial vocabulary cluster and the global content factor, an adjustment necessity parameter of the initial vocabulary cluster is calculated.

[0103] Specifically, the spatial distribution data may include a spatial distribution distance, which may be used to characterize the spatial distribution of two adjacent identical initial words in the text sample data. The relevant contents of the spatial distribution distance may be found in the previous text and will not be described in detail here.

[0104] When calculating the adjustment necessity parameter of the initial vocabulary cluster, the total number of multiple initial vocabulary can be obtained first, and based on the number of vocabulary corresponding to each initial vocabulary in the initial vocabulary cluster and the total number of multiple initial vocabulary, the vocabulary proportion of each initial vocabulary in the initial vocabulary cluster is calculated. Then, the vocabulary proportion of each initial vocabulary in the initial vocabulary cluster is linearly normalized to obtain the vocabulary content factor of each initial vocabulary in the initial vocabulary cluster.

[0105] Next, the global content factor of each initial vocabulary in the initial vocabulary cluster can be calculated based on the vocabulary quantity and spatial distribution distance corresponding to the multiple initial vocabulary, and the vocabulary content factor and spatial distribution distance of each initial vocabulary in the initial vocabulary cluster. Here, the global content factor of each initial vocabulary in the initial vocabulary cluster can be calculated by the formula (1) in the previous text.

[0106] Then, the number of types of initial vocabulary in the initial vocabulary cluster is obtained, and the number of types of initial vocabulary in the initial vocabulary cluster and the global content factor are substituted into the above formula (2) to calculate the adjustment necessity parameter of the initial vocabulary cluster.

[0107] Based on this, when adjusting multiple initial vocabulary clusters, the example embodiments of the present disclosure use adjustment necessity parameters for the initial vocabulary clusters that take into account both the number of types of each initial vocabulary in the initial vocabulary clusters and the global content factor, that is, the spatial distribution information of each initial vocabulary in the initial vocabulary clusters, which can make the clustering results of the multiple target vocabulary clusters obtained after adjustment more accurate, thereby improving the accuracy of the text duplication checking results.

[0108] In some embodiments, there may be multiple types of initial vocabulary in the initial vocabulary clusters, and the initial vocabulary clusters may be divided to obtain multiple local vocabulary clusters, which may include:

[0109] Sorting the multiple initial words included in the initial word cluster in descending order according to the number of words to obtain an initial word sequence;

[0110] The maximum value of the global importance factor of the initial vocabulary sequence is obtained, and the initial vocabulary sequence is divided using the maximum value of the global importance factor to obtain multiple sub-lexicon sequences, and the multiple sub-lexicon sequences are used to generate multiple local vocabulary clusters accordingly.

[0111] Specifically, since the vocabulary quantities and global importance factors corresponding to the various initial vocabularies included in the initial vocabulary clusters may be different, when the initial vocabulary clusters are divided, the vocabulary quantities and global importance factors corresponding to the various initial vocabularies included in the initial vocabulary clusters may be considered simultaneously.

[0112] In the method of the exemplary embodiment of the present disclosure, the multiple initial words included in the initial word cluster can be sorted in descending order according to the number of words to obtain an initial word sequence; then, the maximum value of the global importance factor of the initial word sequence is obtained. The maximum value of the global importance factor of the initial word sequence can be obtained by a peak automatic monitoring algorithm. The peak automatic monitoring algorithm is a well-known technology and will not be described in detail in the exemplary embodiment of the present disclosure.

[0113] If the number of maximum values ​​of the global importance factor of the initial vocabulary sequence is zero, the initial vocabulary cluster is determined as the target vocabulary cluster.

[0114] If the number of maximum values ​​of the global importance factor of the initial vocabulary sequence is one or more, the initial vocabulary sequence is divided by the maximum value of the global importance factor to obtain multiple sub-lexicon sequences, and the multiple sub-lexicon sequences are used to generate multiple local vocabulary clusters. For example, when the number of maximum values ​​of the global importance factor of the initial vocabulary sequence is one, the initial vocabulary sequence is divided by the maximum value of the global importance factor of the initial vocabulary sequence to obtain two sub-lexicon sequences, and the two sub-lexicon sequences are used to generate two local vocabulary clusters; for another example, when the number of maximum values ​​of the global importance factor of the initial vocabulary sequence is multiple, the initial vocabulary sequence is divided by the maximum value of the global importance factor of the initial vocabulary sequence to obtain multiple sub-lexicon sequences, and the multiple sub-lexicon sequences are used to generate multiple local vocabulary clusters.

[0115] That is, if the number of maximum values ​​of the global importance factor of the initial vocabulary sequence is one or more, the number of sub-lexicon sequences and local vocabulary clusters is one more than the number of maximum values ​​of the global importance factor of the initial vocabulary in the initial vocabulary sequence.

[0116] Based on this, the exemplary embodiments of the present disclosure may divide the initial vocabulary with similar vocabulary numbers and similar global importance factors in the initial vocabulary clusters into smaller local vocabulary clusters, so as to make the clustering results of the local vocabulary clusters more accurate.

[0117] In some embodiments, adjusting the initial vocabulary cluster based on the adjustment necessity parameter of the initial vocabulary cluster and the adjustment necessity parameters of each local vocabulary cluster to obtain multiple target vocabulary clusters may include:

[0118] If the adjustment necessity parameter of the local vocabulary cluster is less than the adjustment necessity parameter of the initial vocabulary cluster, the local vocabulary cluster is determined as the target vocabulary cluster;

[0119] If the adjustment necessity parameter of the local vocabulary cluster is greater than or equal to the adjustment necessity parameter of the initial vocabulary cluster, the local vocabulary cluster is updated to the initial vocabulary cluster.

[0120] Specifically, if the adjustment necessity parameter of the local vocabulary cluster is less than the adjustment necessity parameter of the initial vocabulary cluster, the local vocabulary cluster is determined as the target vocabulary cluster; if the adjustment necessity parameter of the local vocabulary cluster is greater than or equal to the adjustment necessity parameter of the initial vocabulary cluster, the local vocabulary cluster is updated to the initial vocabulary cluster, and the initial vocabulary cluster is divided to obtain multiple local vocabulary clusters. The specific splitting process can be found in the previous text and will not be repeated here.

[0121] It can be seen that the exemplary embodiments of the present disclosure can utilize the adjustment necessity parameters of vocabulary clusters to continuously split the initial vocabulary clusters, and achieve the purpose of continuously reducing the adjustment necessity parameters of vocabulary clusters during the splitting process, and finally obtain multiple target vocabulary clusters with lower adjustment necessity parameters, so that the clustering results of the target vocabulary clusters can more accurately indicate the initial vocabulary with similar meanings, and reduce the interference of irrelevant initial vocabulary on the ability to replace and represent text information.

[0122] In some embodiments, determining a plurality of target words based on a plurality of target word clusters may include:

[0123] Obtain the target cluster centers corresponding to each target vocabulary cluster;

[0124] The target cluster centers corresponding to each target vocabulary cluster are respectively determined to determine a plurality of target vocabulary.

[0125] Specifically, the determination of the target cluster centers corresponding to each target vocabulary cluster can be referred to in the previous text, which will not be repeated here.

[0126] The target cluster center can be the initial vocabulary with the greatest similarity to other initial vocabulary included in the corresponding target vocabulary cluster among the multiple initial vocabulary included in the corresponding target vocabulary cluster. The initial vocabulary corresponding to the target cluster center is determined as the target vocabulary. The target vocabulary here can be the key vocabulary in the above text, and the specific related content can also be found in the above text, which will not be repeated here.

[0127] Based on this, the exemplary embodiments of the present disclosure can determine the initial vocabulary corresponding to the target cluster center of any target vocabulary cluster as the target vocabulary, and use the target vocabulary as the clustering result of the target vocabulary cluster, which can improve the representation ability of the target vocabulary cluster.

[0128] In some embodiments, using multiple target words to check for duplicate content in the text to be tested may include:

[0129] Obtain target vocabulary vectors corresponding to the plurality of target vocabulary respectively; wherein the dimension of the target vocabulary vector is the same as the number of types of initial vocabulary in the corresponding target vocabulary cluster;

[0130] The text to be tested is obtained, and the target word vectors corresponding to multiple target words are used to check the text for plagiarism.

[0131] Specifically, the Word2Vec model can be used to obtain target vocabulary vectors corresponding to multiple target words. When obtaining the target vocabulary vectors corresponding to multiple target words, the dimension of the target vocabulary vector is set to be the same as the number of types of initial words in the corresponding target vocabulary cluster to ensure the accuracy of text duplication checking using the target vocabulary vector.

[0132] After obtaining the target word vectors corresponding to the multiple target words, the text to be tested can be obtained, and the target word vectors corresponding to the multiple target words can be used to check the duplicate text of the text to be tested by using the text similarity algorithm. For specific related content, please refer to the previous article, which will not be repeated here.

[0133] Based on this, the exemplary embodiments of the present disclosure can use the clustering results of multiple target vocabulary clusters to check for duplicate texts while taking into account the spatial distribution of vocabulary, thereby improving the accuracy of the text duplicate checking results.

[0134] At least one of the above-mentioned technical solutions adopted in the exemplary embodiments of the present disclosure can achieve the following beneficial effects: by acquiring text sample data, extracting a plurality of initial vocabularies from the text sample data, and acquiring the vocabulary quantity and spatial distribution data corresponding to the plurality of initial vocabularies respectively; clustering the plurality of initial vocabularies to obtain a plurality of initial vocabularies clusters; adjusting the plurality of initial vocabularies clusters based on the vocabulary quantity and spatial distribution data corresponding to each initial vocabularies in each initial vocabularies cluster to obtain a plurality of target vocabularies clusters; determining a plurality of target vocabularies based on the plurality of target vocabularies clusters, and using the plurality of target vocabularies to check for duplicates in the test text, and after obtaining the plurality of initial vocabularies clusters, adjusting the plurality of initial vocabularies clusters using the vocabulary quantity and spatial distribution data corresponding to the plurality of initial vocabularies clusters to obtain a plurality of target vocabularies clusters, so that the plurality of target vocabularies determined based on the plurality of target vocabularies clusters can more accurately represent the meaning of the initial vocabularies included in the corresponding target vocabularies clusters, and thus when using the plurality of target vocabularies to check for duplicates in the test text, the accuracy of the text duplicate checking result can be improved.

[0135] The above mainly introduces the solutions provided by the exemplary embodiments of the present disclosure. It is understandable that in order to implement the above functions, the electronic device includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present disclosure.

[0136] The exemplary embodiments of the present disclosure can divide the functional units of the electronic device according to the above method examples. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the exemplary embodiments of the present disclosure is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0137] In the case of dividing each functional module according to each function, an exemplary embodiment of the present disclosure provides a text duplication checking device, which may be an electronic device or a chip applied to an electronic device. Figure 2 FIG. 2 shows a schematic diagram of the structure of a text duplication checking device provided by an exemplary embodiment of the present disclosure. Figure 2 As shown, the device 200 includes:

[0138] The processing module 201 is used to obtain text sample data, extract multiple initial words from the text sample data, and obtain the vocabulary quantity and spatial distribution data corresponding to the multiple initial words respectively;

[0139] A clustering module 202 is used to perform clustering processing on a plurality of initial vocabulary words to obtain a plurality of initial vocabulary clusters;

[0140] An adjustment module 203 is used to adjust the multiple initial vocabulary clusters based on the vocabulary quantity and spatial distribution data corresponding to each initial vocabulary in each initial vocabulary cluster to obtain multiple target vocabulary clusters;

[0141] The processing module 201 is further configured to determine a plurality of target words based on the plurality of target word clusters, and use the plurality of target words to check for duplicates in the text to be tested.

[0142] In some embodiments, for any initial vocabulary cluster, the processing module 201 is further used to calculate the adjustment necessity parameter of the initial vocabulary cluster based on the vocabulary quantity and spatial distribution data corresponding to each initial vocabulary in the initial vocabulary cluster; divide the initial vocabulary cluster to obtain multiple local vocabulary clusters; and calculate the adjustment necessity parameter of each local vocabulary cluster based on the vocabulary quantity and spatial distribution data corresponding to each initial vocabulary in each local vocabulary cluster;

[0143] The adjustment module 203 is further configured to adjust the initial vocabulary clustering based on the adjustment necessity parameter of the initial vocabulary clustering and the adjustment necessity parameters of each local vocabulary clustering to obtain a plurality of target vocabulary clusterings.

[0144] In some embodiments, the spatial distribution data includes a spatial distribution distance, and the spatial distribution distance is used to characterize the spatial distribution of two adjacent identical initial words in the text sample data;

[0145] The processing module 201 is also used to obtain the total number of multiple initial vocabularies, and calculate the vocabulary proportion of each initial vocabulary in the initial vocabulary cluster based on the vocabulary number corresponding to each initial vocabulary in the initial vocabulary cluster and the total number of multiple initial vocabularies; calculate the global content factor of each initial vocabulary in the initial vocabulary cluster based on the vocabulary number and spatial distribution distance corresponding to the multiple initial vocabularies, and the vocabulary proportion and spatial distribution distance of each initial vocabulary in the initial vocabulary cluster; obtain the number of types of initial vocabulary in the initial vocabulary cluster, and calculate the adjustment necessity parameter of the initial vocabulary cluster based on the number of types of initial vocabulary in the initial vocabulary cluster and the global content factor.

[0146] In some embodiments, the types of initial vocabulary in the initial vocabulary cluster are multiple;

[0147] The processing module 201 is also used to sort the multiple initial words included in the initial vocabulary cluster in descending order according to the number of words to obtain an initial vocabulary sequence; obtain the maximum value of the global importance factor of the initial vocabulary sequence, and use the maximum value of the global importance factor to divide the initial vocabulary sequence to obtain multiple sub-lexical sequences, and the multiple sub-lexical sequences are used to generate multiple local vocabulary clusters accordingly.

[0148] In some embodiments, the adjustment module 203 is further configured to determine the local vocabulary cluster as the target vocabulary cluster if the adjustment necessity parameter of the local vocabulary cluster is less than the adjustment necessity parameter of the initial vocabulary cluster; and to update the local vocabulary cluster to the initial vocabulary cluster if the adjustment necessity parameter of the local vocabulary cluster is greater than or equal to the adjustment necessity parameter of the initial vocabulary cluster.

[0149] In some embodiments, the processing module 201 is further used to obtain the target cluster centers corresponding to each target vocabulary cluster; and determine multiple target vocabulary by using the target cluster centers corresponding to each target vocabulary cluster.

[0150] In some embodiments, the processing module 201 is also used to obtain target vocabulary vectors corresponding to multiple target words; wherein the dimension of the target vocabulary vector is the same as the number of types of initial vocabulary in the corresponding target vocabulary cluster; obtain the text to be tested, and use the target vocabulary vectors corresponding to the multiple target words to check for plagiarism in the text to be tested.

[0151] The exemplary embodiments of the present disclosure also provide an electronic device, comprising: at least one processor; a memory for storing at least one processor-executable instruction; wherein the at least one processor is used to execute the instruction to implement the steps of the above method disclosed in the exemplary embodiments of the present disclosure.

[0152] Figure 3 FIG. 1 shows a schematic diagram of the structure of an electronic device provided by an exemplary embodiment of the present disclosure. Figure 3 As shown, the electronic device 300 includes at least one processor 301 and a memory 302 coupled to the processor 301 . The processor 301 can execute corresponding steps in the above method disclosed in the exemplary embodiment of the present disclosure.

[0153] The processor 301 may also be referred to as a central processing unit (CPU), which may be an integrated circuit chip having signal processing capabilities. Each step in the method disclosed in the exemplary embodiment of the present disclosure may be completed by an integrated logic circuit of hardware in the processor 301 or by instructions in the form of software. The processor 301 may be a general-purpose processor, a digital signal processor (DSP), an ASIC, a field-programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in conjunction with the exemplary embodiment of the present disclosure may be directly embodied as being executed by a hardware decoding processor, or may be executed by a combination of hardware and software modules in a decoding processor. The software module may be located in a memory 302, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, or other mature storage media in the art. The processor 301 reads the information in the memory 302 and completes the steps of the method in conjunction with its hardware.

[0154] In addition, when various operations / processes according to the present disclosure are implemented by software and / or firmware, they can be transmitted from a storage medium or a network to a computer system having a dedicated hardware structure, for example, Figure 4 The computer system 400 shown is installed with the programs constituting the software. When the various programs are installed, the computer system can perform various functions, including the functions described above. Figure 4 A schematic diagram of the structure of a computer system provided by an exemplary embodiment of the present disclosure is shown.

[0155] Computer system 400 is intended to represent various forms of digital electronic computer equipment, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0156] like Figure 4As shown, the computer system 400 includes a computing unit 401, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 402 or a computer program loaded from a storage unit 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the computer system 400 can also be stored. The computing unit 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.

[0157] A plurality of components in the computer system 400 are connected to the I / O interface 405, including: an input unit 406, an output unit 407, a storage unit 408, and a communication unit 409. The input unit 406 may be any type of device capable of inputting information to the computer system 400, and the input unit 406 may receive input digital or character information, and generate key signal inputs related to user settings and / or function control of the electronic device. The output unit 407 may be any type of device capable of presenting information, and may include, but is not limited to, a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 408 may include, but is not limited to, a disk, an optical disk. The communication unit 409 allows the computer system 400 to exchange information / data with other devices over a network such as the Internet, and may include, but is not limited to, a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, for example, a Bluetooth™ device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.

[0158] The computing unit 401 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 401 performs the various methods and processes described above. For example, in some embodiments, the above methods disclosed in the exemplary embodiments of the present disclosure may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on an electronic device via ROM 402 and / or communication unit 409. In some embodiments, the computing unit 401 may be configured to perform the above methods disclosed in the exemplary embodiments of the present disclosure by any other appropriate means (e.g., by means of firmware).

[0159] The exemplary embodiments of the present disclosure also provide a computer-readable storage medium, wherein when instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the above method disclosed in the exemplary embodiments of the present disclosure.

[0160] The computer-readable storage medium in the exemplary embodiment of the present disclosure may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. The above-mentioned computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the above. More specifically, the above-mentioned computer-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0161] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0162] The exemplary embodiments of the present disclosure further provide a computer program product, including a computer program, wherein when the computer program is executed by a processor, the above method disclosed in the exemplary embodiments of the present disclosure is implemented.

[0163] In embodiments of the present disclosure, computer program codes for performing the operations of the present disclosure may be written in one or more programming languages ​​or combinations thereof, including but not limited to object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer.

[0164] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0165] The modules, components or units involved in the exemplary embodiments described in the present disclosure may be implemented by software or hardware, wherein the names of the modules, components or units do not, in some cases, limit the modules, components or units themselves.

[0166] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0167] The above descriptions are only some embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, a technical solution formed by replacing the above features with the technical features with similar functions disclosed in the present disclosure (but not limited to).

[0168] Although some specific embodiments of the present disclosure have been described in detail by way of example, it should be understood by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present disclosure. It should be understood by those skilled in the art that the above embodiments may be modified without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.

Claims

1. A text duplication checking method, characterized in that: include: Acquire text sample data, extract a plurality of initial words from the text sample data, and acquire word quantity and spatial distribution data corresponding to the plurality of initial words respectively; Performing clustering processing on the multiple initial vocabulary to obtain multiple initial vocabulary clusters; Based on the vocabulary quantity and spatial distribution data corresponding to each of the initial vocabulary in each of the initial vocabulary clusters, adjusting the multiple initial vocabulary clusters to obtain multiple target vocabulary clusters; A plurality of target words are determined based on the plurality of target word clusters, and the plurality of target words are used to check for plagiarism in the text to be tested.

2. The method according to claim 1, characterized in that The adjusting of the multiple initial vocabulary clusters based on the vocabulary quantity and spatial distribution data corresponding to each of the initial vocabulary in each of the initial vocabulary clusters to obtain multiple target vocabulary clusters includes: For any of the initial vocabulary clusters, based on the vocabulary quantity and spatial distribution data corresponding to each of the initial vocabulary in the initial vocabulary cluster, calculating an adjustment necessity parameter of the initial vocabulary cluster; Dividing the initial vocabulary cluster to obtain a plurality of local vocabulary clusters; Based on the vocabulary quantity and spatial distribution data corresponding to each of the initial vocabulary in each of the local vocabulary clusters, respectively calculating the adjustment necessity parameters of each of the local vocabulary clusters; Based on the adjustment necessity parameter of the initial vocabulary cluster and the adjustment necessity parameter of each of the local vocabulary clusters, the initial vocabulary cluster is adjusted to obtain a plurality of target vocabulary clusters.

3. The method according to claim 2, characterized in that The spatial distribution data includes a spatial distribution distance, and the spatial distribution distance is used to characterize the spatial distribution of two adjacent identical initial words in the text sample data; the calculation of the adjustment necessity parameter of the initial vocabulary cluster based on the vocabulary quantity and spatial distribution data corresponding to each of the initial words in the initial vocabulary cluster includes: Obtaining the total number of the multiple initial vocabularies, and calculating the vocabulary proportion of each of the initial vocabularies in the initial vocabularies cluster based on the vocabulary number corresponding to each of the initial vocabularies in the initial vocabularies cluster and the total number of the multiple initial vocabularies; Calculate the global content factor of each of the initial words in the initial word cluster based on the number of words and the spatial distribution distances respectively corresponding to the multiple initial words, and the word proportion and the spatial distribution distance of each of the initial words in the initial word cluster; The number of types of initial vocabulary in the initial vocabulary cluster is obtained, and based on the number of types of initial vocabulary in the initial vocabulary cluster and the global content factor, an adjustment necessity parameter of the initial vocabulary cluster is calculated.

4. The method according to claim 2, characterized in that: There are multiple types of initial vocabulary in the initial vocabulary clusters; the initial vocabulary clusters are divided to obtain multiple local vocabulary clusters, including: Sorting the multiple initial words included in the initial word cluster in descending order according to the number of words to obtain an initial word sequence; The maximum value of the global importance factor of the initial vocabulary sequence is obtained, and the initial vocabulary sequence is divided using the maximum value of the global importance factor to obtain a plurality of sub-lexicon sequences, wherein the plurality of sub-lexicon sequences are used to generate a plurality of local vocabulary clusters accordingly.

5. The method according to claim 2, characterized in that: The adjusting of the initial vocabulary cluster based on the adjustment necessity parameter of the initial vocabulary cluster and the adjustment necessity parameter of each of the local vocabulary clusters to obtain a plurality of target vocabulary clusters includes: If the adjustment necessity parameter of the local vocabulary cluster is less than the adjustment necessity parameter of the initial vocabulary cluster, determining the local vocabulary cluster as a target vocabulary cluster; If the adjustment necessity parameter of the local vocabulary cluster is greater than or equal to the adjustment necessity parameter of the initial vocabulary cluster, the local vocabulary cluster is updated to the initial vocabulary cluster.

6. The method according to any one of claims 1 to 5, characterized in that: The determining of a plurality of target words based on the plurality of target word clusters comprises: Obtaining the target cluster centers corresponding to each of the target vocabulary clusters; The target cluster centers corresponding to the target vocabulary clusters are respectively determined to determine a plurality of target vocabulary.

7. The method according to any one of claims 1 to 5, characterized in that: The using the multiple target words to check for duplicate content in the text to be tested includes: Obtain target vocabulary vectors corresponding to the plurality of target vocabulary respectively; wherein the dimension of the target vocabulary vector is the same as the number of types of initial vocabulary in the corresponding target vocabulary cluster; The text to be tested is obtained, and the target word vectors corresponding to the multiple target words are used to check for plagiarism in the text to be tested.

8. A text duplication checking device, characterized in that: include: A processing module, used to obtain text sample data, extract a plurality of initial words from the text sample data, and obtain word quantity and spatial distribution data corresponding to the plurality of initial words respectively; A clustering module, used for clustering the multiple initial vocabulary to obtain multiple initial vocabulary clusters; An adjustment module, configured to adjust the plurality of initial vocabulary clusters based on the vocabulary quantity and spatial distribution data corresponding to each of the initial vocabulary in each of the initial vocabulary clusters, to obtain a plurality of target vocabulary clusters; The processing module is further configured to determine a plurality of target words based on the plurality of target word clusters, and use the plurality of target words to check for duplicates in the text to be tested.

9. An electronic device, characterized in that: include: at least one processor; a memory for storing the at least one processor-executable instruction; The at least one processor is configured to execute the instructions to implement the steps of the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the steps of the method according to any one of claims 1 to 7.

11. A computer program product, characterized in that The method comprises a computer program, wherein when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.