Intelligent extraction method, device, computer equipment and storage medium for text summaries

By characterizing and weighting the word vectors of feature sentences in multiple texts, and using cluster analysis to extract important sentences, the problem of redundancy and low coverage of traditional multi-text summaries is solved, and high-quality text summaries are generated.

CN110674283BActive Publication Date: 2024-09-13CHINA PING AN PROPERTY INSURANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910752285.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-08-15
Publication Date
2024-09-13
Estimated Expiration
2039-08-15

AI Technical Summary

Technical Problem

The summaries extracted by traditional multi-text summarization algorithms have high redundancy and are difficult to reflect the overall structural content of the text, resulting in the loss of the topic center, low coverage, poor coherence, and long time consumption.

Method used

By obtaining feature sentences from multiple texts, word vectors are represented and weighted, cluster analysis is used to divide the feature words into clusters, and important feature sentences are extracted from each cluster to form an overall summary.

Benefits of technology

It improves the quality of multiple text summaries, ensures that the summary content is comprehensive, avoids the extraction of irrelevant content, and improves the overall quality and efficiency of the summary.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110674283B
    Figure CN110674283B
Patent Text Reader

Abstract

The present invention provides a method, device, computer equipment and storage medium for intelligent extraction of text summaries, the method comprising: obtaining multiple feature sentences from multiple texts, dividing feature words for each feature sentence to obtain multiple feature words; classifying the multiple feature words into different clusters through cluster analysis; classifying the feature sentences to which each feature word belongs into corresponding clusters; extracting a fixed number of feature sentences from each cluster to form an overall summary of the multiple texts. The cluster analysis process comprises: performing word vector representation on the multiple feature words respectively to obtain multiple feature vectors; weighting each feature vector according to the importance to obtain multiple weighted vectors; calculating the similarity between each two weighted vectors; performing clustering operation according to the similarity to obtain the number of cluster centers, and classifying the multiple feature words into multiple clusters according to the number of cluster centers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data mining, and in particular to a method, device, computer equipment and storage medium for intelligently extracting text summaries. Background Art

[0002] Automatic text summarization is a relatively difficult task in natural language processing. In essence, text summarization is a kind of information filtering. The output text is much less than the input text, but it contains the main information. According to the amount of text, text summarization can be divided into single text summary and multi-text summary. The former is the basis of the latter, but the latter is not just a simple superposition of the former's results. The former is often used to filter news information, while the latter has great potential in search engines, and the difficulty increases accordingly.

[0003] The summaries extracted by traditional multi-text summarization algorithms are highly redundant and cannot reflect the overall structural content of the entire text well. They are prone to cause defects such as loss of the text theme center, low text theme coverage, poor coherence, and long time consumption. Summary of the invention

[0004] The purpose of the present invention is to provide a method, device, computer equipment and storage medium for intelligent extraction of text summaries to solve the above-mentioned problems existing in the prior art.

[0005] To achieve the above object, the present invention provides an intelligent extraction method for text summaries, comprising:

[0006] Acquire multiple characteristic sentences from multiple texts, and divide characteristic words into characteristic words for each characteristic sentence to obtain multiple characteristic words;

[0007] Classifying the plurality of characteristic words into different clusters through cluster analysis;

[0008] Classifying the characteristic sentences to which each characteristic word belongs into corresponding clusters;

[0009] A fixed number of characteristic sentences are extracted from each of the clusters to form an overall summary of the multiple texts.

[0010] According to the intelligent extraction algorithm provided by the present invention, the step of classifying the multiple feature words into different clusters through cluster analysis includes:

[0011] Performing word vector representation on the multiple feature words respectively to obtain multiple feature vectors;

[0012] Weighting each of the feature vectors according to their importance to obtain a plurality of weighted vectors;

[0013] Calculate the similarity between every two weighted vectors;

[0014] A clustering operation is performed according to the similarity to obtain the number of cluster centers, and the plurality of characteristic words are divided into a plurality of clusters according to the number of cluster centers.

[0015] According to the intelligent extraction algorithm provided by the present invention, the step of weighting each of the feature vectors according to their importance to obtain a plurality of weighted vectors comprises:

[0016] Calculate a first weight of the feature vector based on a Tf-idf algorithm;

[0017] Calculating a second weight of the feature vector based on the appearance position of the feature word in the feature sentence;

[0018] The feature vector is multiplied by the first weight and the second weight in sequence to obtain the weighted vector.

[0019] According to the intelligent extraction algorithm provided by the present invention, the step of classifying the characteristic sentences to which each characteristic word belongs into corresponding clusters includes:

[0020] Mark the target feature sentence to which the target feature word belongs;

[0021] The target feature sentence is divided into clusters corresponding to the target feature words.

[0022] According to the intelligent extraction algorithm provided by the present invention, the step of extracting a fixed number of characteristic sentences from each cluster to form an overall summary of the multiple texts includes:

[0023] Sort all feature sentences in each cluster in descending order of importance;

[0024] A fixed number of top-ranked feature sentences are extracted from each cluster and assembled into a text summary.

[0025] To achieve the above object, the present invention also provides an intelligent extraction device for text summaries, comprising:

[0026] The feature word acquisition module is adapted to acquire multiple feature sentences from multiple texts, and divide the feature words into feature words for each of the feature sentences to obtain multiple feature words;

[0027] A clustering analysis module, adapted to classify the plurality of characteristic words into different clusters through clustering analysis;

[0028] A clustering module is used to classify the characteristic sentences to which each characteristic word belongs into corresponding clusters;

[0029] The aggregation module is adapted to extract a fixed number of characteristic sentences from each of the clusters to form an overall summary of the multiple texts.

[0030] According to the intelligent extraction device provided by the present invention, the cluster analysis module includes:

[0031] A vector representation submodule is adapted to perform word vector representation on the plurality of feature words respectively to obtain a plurality of feature vectors;

[0032] A weighting submodule, adapted to weight each of the feature vectors according to their importance to obtain a plurality of weighted vectors;

[0033] The similarity submodule is suitable for calculating the similarity between every two weighted vectors;

[0034] The cluster division submodule is adapted to perform clustering operations according to similarity to obtain the number of cluster centers, and to divide the plurality of feature words into a plurality of clusters according to the number of cluster centers.

[0035] According to the intelligent extraction device provided by the present invention, the weighted submodule includes:

[0036] A first weighting unit, adapted to calculate a first weight of the feature vector based on a Tf-idf algorithm;

[0037] A second weighting unit, adapted to calculate a second weight of the feature vector based on an appearance position of the feature word in the feature sentence;

[0038] The weighted vector generating unit is adapted to multiply the feature vector with the first weight and the second weight in sequence to obtain the weighted vector.

[0039] To achieve the above objectives, the present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.

[0040] To achieve the above object, the present invention also provides a computer-readable storage medium on which a computer program is stored, and the computer program implements the steps of the above method when executed by a processor.

[0041] The intelligent extraction method, device, computer equipment and storage medium of text summaries provided by the present invention are suitable for extracting comprehensive summaries from multiple texts. The present invention uniformly performs sentence and word segmentation on multiple texts, represents the acquired feature words with word vectors, and sets weights for the corresponding feature vectors according to the importance of each feature word, thereby generating a weighted vector corresponding to each feature word. Afterwards, the similarity of all weighted vectors is calculated and clustering operations are performed to obtain the number of cluster centers. According to the number of cluster centers, the feature sentences are divided into different clusters, and then according to the preset number of summary sentences, the corresponding number of feature sentences are extracted from each cluster respectively, and the summaries of multiple texts are collected and integrated. The present invention can effectively improve the quality of text summaries extracted from multiple texts, ensure that the content of the summary is more comprehensive, and avoid the extraction of content irrelevant to the central sentence. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 This is a flow chart of Embodiment 1 of the intelligent extraction method of the present invention;

[0043] Figure 2 A schematic diagram of a program module of a first embodiment of an intelligent extraction device of the present invention;

[0044] Figure 3 This is a schematic diagram of the hardware structure of the first embodiment of the intelligent extraction device of the present invention. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical scheme and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0046] The intelligent extraction method, device, computer equipment and storage medium of text summaries provided by the present invention are suitable for extracting overall summaries of multiple texts. The present invention uniformly performs sentence and word segmentation on multiple texts, represents the acquired feature words with word vectors, and sets weights for the corresponding feature vectors according to the importance of each feature word, thereby generating a weighted vector corresponding to each feature word. Afterwards, the similarity of all weighted vectors is calculated and clustering operations are performed to obtain the number of cluster centers. According to the number of cluster centers, the feature sentences are divided into different clusters, and then according to the preset number of summary sentences, the corresponding number of feature sentences are extracted from each cluster respectively, and the whole summaries of multiple texts are collected and integrated. The present invention can effectively improve the quality of extracting text summaries from multiple texts, ensure that the content of the summary is more comprehensive, and avoid the extraction of content irrelevant to the central sentence.

[0047] Embodiment 1

[0048] See also Figure 1 This embodiment proposes an intelligent extraction method for text summaries, which specifically includes the following steps:

[0049] S1: Acquire multiple feature sentences from multiple texts, divide each of the feature sentences into feature words, and obtain multiple feature words.

[0050] The present invention is particularly suitable for intelligent extraction of summaries of multiple texts. For example, there are three texts, respectively referred to as the first text, the second text and the third text. The present invention first divides the three texts into feature sentences, and further divides the feature words on the basis of the feature sentences. For example, the first text, the second text and the third text respectively contain feature sentences of a, b and c in number, and these feature sentences are marked, for example, respectively marked as feature sentences 11, 12, ... 1a, 21, 22, ..., 2b, 31, 32, ... 3c. Each feature sentence includes multiple feature words. For example, for the sentence "I love my motherland", it can be divided into several feature words such as "I", "love", "my", and "motherland". The standard for dividing feature words in Chinese is mainly based on the grammatical function of the words, for example, according to the standards of nouns, quantifiers, predicates, verbs, conjunctions, prepositions, etc.

[0051] The present invention performs preprocessing such as stop word removal and synonym merging on feature sentences and feature words, removes sentences or phrases that have no practical meaning, such as simple exclamatory sentences, onomatopoeia, conjunctions, transitional words, adverbs, etc. that have no practical meaning, and ensures the simplicity of feature sentences and feature words to the greatest extent.

[0052] The present invention marks the source of the characteristic words to clarify the specific location of each characteristic word and mark which text and sentence the characteristic word exists in. The specific form of the mark is not particularly limited, and those skilled in the art can use any recognizable symbol, such as letters, numbers, English words, combinations of letters and numbers, etc. For example, if the characteristic word "motherland" appears in the first sentence of the first text, the second sentence of the second text, and the third sentence of the third text, then the mark (11, 22, 33) can be added to the characteristic word "motherland".

[0053] S2: Classify the multiple feature words into different clusters through cluster analysis.

[0054] Cluster analysis is a process of classifying data into different clusters. Objects in the same cluster have great similarities, while objects in different clusters have great differences. The purpose of this step is to classify different feature words into different clusters. The data objects contained in each cluster have similar characteristics, but are different from the data objects in other clusters. After the feature words are divided into different clusters, it is convenient to extract data objects from different aspects and combine these data objects into new abstracts, so as to achieve the purpose of concisely and comprehensively reflecting the themes of multiple documents. The following is a detailed introduction to the process of cluster analysis.

[0055] S21: Perform word vector representation on the multiple feature words respectively to obtain multiple feature vectors.

[0056] Each feature word can be converted into a vector form using a space vector model. For example, the word2vec word vector model can be used to represent each word in a sentence. The advantage is that the word2vec word vector model reduces the dimension of the input on the one hand, and on the other hand, the word vector trained by the word2vec model makes full use of the context of the word and provides richer semantic information compared to the traditional one-hot-encoder or topic model. Each basic word trained by the word2vec model is represented as a vector form that can be understood by a computer, such as [0.792, -0.177, -0.107, ...]. The present invention refers to the feature word represented in this vector form as a feature vector. It can be confirmed that each feature word has a unique feature vector corresponding to it.

[0057] S22: Weighting each of the feature vectors according to the importance to obtain a plurality of weighted vectors.

[0058] Weighting the feature vector is an important technical means adopted by the present invention to improve the effect of abstract extraction. The weighting of the feature vector in the present invention mainly includes two aspects: the first is to weight the first weight according to the frequency of occurrence of the feature word, and the second is to weight the second weight according to the position of occurrence of the feature word.

[0059] The weighting of the first weight can use the existing TF-IDF algorithm. The main idea of ​​TFIDF is: if a word or phrase appears in a document with a high frequency TF and rarely appears in other documents, it is considered that this word or phrase has good category distinction ability and is suitable for classification. TFIDF is actually: TF*IDF, TF term frequency (TermFrequency), IDF inverse document frequency (Inverse Document Frequency). TF represents the frequency of an entry in document d.

[0060] If a document has 100 words and the word "cow" appears 3 times, then the word frequency of "cow" in the document is 3 / 100 = 0.03. One way to calculate document frequency (IDF) is to divide the total number of documents in the document set by the number of documents in which the word "cow" appears. So, if the word "cow" appears in 1,000 documents and the total number of documents is 10,000,000, its inverse document frequency is lg(10,000,000 / 1,000) = 4. The final TF-IDF score is 0.03*4 = 0.12.

[0061] The weighting of the second weight is adjusted according to the position of the feature word in the feature sentence. Generally speaking, the second weight is the highest when the feature word appears at the beginning of the sentence, the second weight is the second lowest when it appears in the middle of the sentence, and the second weight is the lowest when it appears at the end of the sentence. For example, the second weight is 1 when the feature word appears at the beginning of the sentence, the second weight is 0.6 when the feature word appears in the middle of the sentence, and the second weight is 0.4 when the feature word appears at the end of the sentence.

[0062] Finally, the eigenvector is multiplied by the first weight and the second weight respectively to obtain a weighted vector.

[0063] S23: Calculate the similarity between every two weighted vectors.

[0064] The multiple feature words in the present invention are represented and weighted by word vectors to obtain multiple weighted vectors. The similarity is calculated for any two weighted vectors to measure the similarity between the two weighted vectors. There are many methods for calculating similarity in the prior art, including Euclidean distance calculation method, cosine similarity calculation method, hash-based similarity calculation method, etc., which are not listed here one by one.

[0065] S24: performing clustering operation according to the similarity to obtain the number of cluster centers, and dividing the multiple feature words into multiple clusters according to the number of cluster centers.

[0066] This step constructs a feature similarity matrix based on the feature similarity obtained in step S23, where each column in the similarity matrix represents a feature vector and each row represents a feature sentence. The similarity matrix is ​​clustered, and the distance values ​​between weighted vectors are continuously iterated to form p cluster centers, thereby dividing the feature features into p clusters.

[0067] S3: Classify the characteristic sentences to which each characteristic word belongs into corresponding clusters.

[0068] On the basis that the feature words are divided into p clusters, the feature sentences containing the feature words are correspondingly divided into p clusters according to the tags contained in the feature words.

[0069] For example, if the feature word "motherland" appears in the first sentence of the first text, the second sentence of the second text, and the third sentence of the third text, then the tag (11, 22, 33) can be added to the feature word "motherland". In the process of clustering, if the feature word "motherland" is classified as the first cluster, the feature sentence (11, 22, 33) is also classified as the first cluster.

[0070] Since each feature sentence contains multiple feature words, and the multiple feature words may belong to different clusters, it is foreseeable that the same feature sentence may be divided into different clusters, that is, the feature sentence overlap occurs in different clusters. In the process of dividing the clusters, the present invention first allows the existence of such overlap for the convenience of statistics. In the subsequent steps, the present invention will further introduce a method for eliminating overlap.

[0071] S4: extracting a fixed number of characteristic sentences from each of the clusters to form an overall summary of the multiple texts.

[0072] This step is used to extract a corresponding number of feature sentences from different clusters to form a document summary. Specifically, first obtain the preset number of summaries, where the number refers to the number of all feature sentences contained in the summary. Then evenly distribute the number of all feature sentences to each cluster to obtain the number of feature sentences that need to be extracted in each cluster. For example, if the number of summaries is 10% of the total number of sentences in the text, then a text of 100 sentences only needs 10 sentences, and then extract them from each text. If the above steps are divided into 5 categories, then an average of 2 sentences can be selected from each category.

[0073] The present invention mentions in step S3 that repeated feature sentences are allowed in different clusters. This permission is for the convenience of statistical processing. The present invention will eliminate the defects that may be caused by repetition in subsequent steps. One of the important elimination methods is to sort the feature sentences in each cluster. The basis for sorting can be the first weight or the second weight or the product of the first weight and the second weight, and arrange these feature sentences in order from high to low. According to the previous discussion, the same feature sentence may be divided into different clusters because it contains different feature words. Since the feature words corresponding to the feature sentences in each cluster are different, the ranking of the same feature sentence in different clusters is largely different. For example, the feature sentence "I love my motherland" is divided into the first cluster because of the feature word "motherland"; at the same time, the feature sentence is divided into the second cluster because of the feature word "love". Assuming that the first weight of the feature word "motherland" is 0.6 and the first weight of the feature word "love" is 0.3, then when sorting according to the first weight value, the ranking of the feature sentence "I love my motherland" in the first cluster must be higher than its ranking in the second cluster. Through different sorting methods, the problem of repeated extraction of the same feature sentences can be avoided to a large extent.

[0074] Furthermore, the present invention performs duplicate sentence deletion processing on the characteristic sentences extracted from each cluster, and for two or more repeated characteristic sentences, only one of them is retained and the other characteristic sentences are deleted. Through this step, the present invention can eliminate the phenomenon of overlapping characteristic sentences in different clusters when dividing the clusters in step S3. Finally, all the characteristic sentences processed by steps S1-S4 are collected together to form the overall summary of multiple documents.

[0075] It should be noted that the present invention has stipulated the method for sorting different characteristic sentences in the same cluster above, and the present invention does not specifically limit the sorting problem between characteristic sentences extracted from different clusters. For example, sentence 1 and sentence 2 belong to the first cluster, sentence 3 and sentence 4 belong to the second cluster, and sentence 5 and sentence 6 belong to the third cluster. Since the three clusters are quite different from each other, no matter which cluster the sentence is placed in front, the impact on the overall semantics will not be very large. For example, it can be arranged in the order of sentence 1, sentence 2, sentence 3, sentence 4, sentence 5, sentence 6, or in the order of sentence 3, sentence 4, sentence 1, sentence 2, sentence 5, sentence 6, or in the order of sentence 5, sentence 6, sentence 3, sentence 4, sentence 1, sentence 2, and so on. Of course, if necessary, the clusters can also be sorted according to the weight of the characteristic words contained in the clusters, and the weight of the characteristic words can be the product of the first weight and the second weight mentioned above. The clusters where the characteristic words with large weight values ​​are located are arranged in the front, and the clusters where the characteristic words with small weight values ​​are located are arranged in the back. Correspondingly, the feature sentences extracted from different clusters are also sorted according to the order of the clusters.

[0076] Through the above steps, the document summary finally obtained by the present invention has the advantages of clear representation significance, accurate induction, comprehensive summary, etc. The entire extraction process is fast and efficient, and the quality of summary extraction is effectively improved.

[0077] Please continue reading Figure 2 , shows an intelligent extraction device for text summarization. In this embodiment, the intelligent extraction device 10 may include or be divided into one or more program modules, one or more program modules are stored in a storage medium and executed by one or more processors to complete the present invention and implement the above-mentioned intelligent extraction method. The program module referred to in the present invention refers to a series of computer program instruction segments that can complete specific functions, which is more suitable for describing the execution process of the intelligent extraction device 10 in the storage medium than the program itself. The following description will specifically introduce the functions of each program module in this embodiment:

[0078] The feature word acquisition module 11 is adapted to acquire multiple feature sentences from multiple texts, divide feature words into each feature sentence, and obtain multiple feature words. The present invention marks the source of feature words to clarify the specific location of each feature word and mark which sentence in which text the feature word exists.

[0079] The cluster analysis module 12 is adapted to classify the plurality of characteristic words into different clusters through cluster analysis, wherein the data objects contained in each cluster have similar characteristics and are different from the data objects in other clusters.

[0080] The clustering module 13 is adapted to classify the characteristic sentences to which each characteristic word belongs into corresponding clusters. On the basis that the characteristic words are divided into p clusters, the characteristic sentences to which the characteristic words belong are correspondingly divided into p clusters according to the tags contained in the characteristic words.

[0081] The collection module 14 is adapted to extract a fixed number of characteristic sentences from each of the clusters to form an overall summary of the plurality of texts. Specifically, a preset number of summaries is first obtained, where the number refers to the number of all characteristic sentences contained in the summaries. Then, the number of all characteristic sentences is evenly distributed to each cluster to obtain the number of characteristic sentences to be extracted from each cluster.

[0082] Further, the cluster analysis module 12 includes:

[0083] The vector representation submodule 121 is adapted to perform word vector representation on the plurality of feature words respectively to obtain a plurality of feature vectors; wherein each feature word has a unique feature vector corresponding thereto.

[0084] The weighting submodule 122 is suitable for weighting each of the feature vectors according to the importance to obtain multiple weighted vectors; the weighting of the feature vectors in the present invention mainly includes two aspects, the first is to weight the first weight according to the frequency of occurrence of the feature words, and the second is to weight the second weight according to the position of occurrence of the feature words.

[0085] A similarity submodule 123, adapted to calculate the similarity between every two weighted vectors;

[0086] The cluster division submodule 124 is suitable for performing clustering operations according to similarity, obtaining the number of cluster centers, and dividing the multiple feature words into multiple clusters according to the number of cluster centers. A feature similarity matrix is ​​constructed according to the similarity calculated by the similarity submodule 123, in which each column represents a feature vector and each row represents a feature sentence. The above similarity matrix is ​​clustered, and the distance value between the weighted vectors is continuously iterated in a loop, and finally p cluster centers are formed, thereby dividing the feature words into p clusters.

[0087] Further, the weighting submodule 122 includes:

[0088] A first weighting unit 1221, adapted to calculate a first weight of the feature vector based on a Tf-idf algorithm;

[0089] A second weighting unit 1222, adapted to calculate a second weight of the feature vector based on the occurrence position of the feature word in the feature sentence;

[0090] The weighted vector generating unit 1223 is adapted to multiply the feature vector by the first weight and the second weight in sequence to obtain the weighted vector.

[0091] The present embodiment also provides a computer device, such as a smart phone, tablet computer, laptop computer, desktop computer, rack server, blade server, tower server or cabinet server (including an independent server or a server cluster composed of multiple servers) that can execute programs. The computer device 20 of the present embodiment includes at least but is not limited to: a memory 21 and a processor 22 that can communicate with each other through a system bus, such as Figure 3 It should be pointed out that Figure 3 Only computer device 20 is shown with components 21 - 22 , but it should be understood that implementing all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.

[0092] In this embodiment, the memory 21 (i.e., readable storage medium) includes flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 21 can be an internal storage unit of the computer device 20, such as a hard disk or memory of the computer device 20. In other embodiments, the memory 21 can also be an external storage device of the computer device 20, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the computer device 20. Of course, the memory 21 can also include both the internal storage unit of the computer device 20 and its external storage device. In this embodiment, the memory 21 is generally used to store the operating system and various application software installed on the computer device 20, such as the program code of the data synchronization device 10 of the first embodiment. In addition, the memory 21 can also be used to temporarily store various types of data that have been output or are to be output.

[0093] In some embodiments, the processor 22 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips. The processor 22 is generally used to control the overall operation of the computer device 20. In this embodiment, the processor 22 is used to run the program code stored in the memory 21 or process data, such as running the intelligent extraction device 10 to implement the intelligent extraction method of the first embodiment.

[0094] This embodiment also provides a computer-readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a disk, an optical disk, a server, an App application store, etc., on which a computer program is stored, and the program realizes corresponding functions when executed by a processor. The computer-readable storage medium of this embodiment is used to store the intelligent extraction device 10, and when executed by the processor, the intelligent extraction method of the first embodiment is realized.

[0095] 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.

[0096] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.

[0097] A person of ordinary skill in the art can understand that all or part of the steps carried out in the above-mentioned embodiment method can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable medium. When the program is executed, it includes one of the steps of the method embodiment or a combination thereof.

[0098] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0099] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method.

[0100] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. An intelligent extraction method for text summarization, It is characterized in that include: Acquire multiple characteristic sentences from multiple texts, and divide characteristic words into characteristic words for each characteristic sentence to obtain multiple characteristic words; Classifying the plurality of characteristic words into different clusters through cluster analysis; Classifying the characteristic sentences to which each characteristic word belongs into corresponding clusters; Extracting a fixed number of characteristic sentences from each of the clusters to form an overall summary of the plurality of texts; The step of extracting a fixed number of characteristic sentences from each cluster to form an overall summary of the multiple texts includes: Sort all feature sentences in each cluster in descending order of importance; Extract a fixed number of top-ranked feature sentences from each cluster and compile them into a text summary; The step of classifying the plurality of feature words into different clusters by cluster analysis comprises: Performing word vector representation on the multiple feature words respectively to obtain multiple feature vectors; Weighting each of the feature vectors according to their importance to obtain a plurality of weighted vectors; Calculate the similarity between every two weighted vectors; Performing clustering operation according to the similarity to obtain the number of cluster centers, and dividing the plurality of feature words into a plurality of clusters according to the number of cluster centers; The step of weighting each of the feature vectors according to the importance to obtain a plurality of weighted vectors comprises: Calculate a first weight of the feature vector based on a Tf-idf algorithm; Calculating a second weight of the feature vector based on the appearance position of the feature word in the feature sentence; Multiplying the feature vector with the first weight and the second weight in sequence to obtain the weighted vector; The step of classifying the characteristic sentences to which each characteristic word belongs into corresponding clusters comprises: Mark the target feature sentence to which the target feature word belongs; The target feature sentence is divided into clusters corresponding to the target feature words.

2. An intelligent extraction device for text summarization, It is characterized in that include: The feature word acquisition module is adapted to acquire multiple feature sentences from multiple texts, and divide the feature words into feature words for each of the feature sentences to obtain multiple feature words; A clustering analysis module, adapted to classify the plurality of characteristic words into different clusters through clustering analysis; A clustering module is used to classify the characteristic sentences to which each characteristic word belongs into corresponding clusters; A collection module, adapted to extract a fixed number of characteristic sentences from each of the clusters to form an overall summary of the plurality of texts; The aggregation module is further adapted to: sort all feature sentences in each cluster in descending order of importance; Extract a fixed number of top-ranked feature sentences from each cluster and compile them into a text summary; The cluster analysis module includes: A vector representation submodule is adapted to perform word vector representation on the plurality of feature words respectively to obtain a plurality of feature vectors; A weighting submodule, adapted to weight each of the feature vectors according to their importance to obtain a plurality of weighted vectors; The similarity submodule is suitable for calculating the similarity between every two weighted vectors; The cluster division submodule is adapted to perform clustering operations according to similarity to obtain the number of cluster centers, and divide the plurality of feature words into a plurality of clusters according to the number of cluster centers; The weighted submodule comprises: A first weighting unit, adapted to calculate a first weight of the feature vector based on a Tf-idf algorithm; A second weighting unit, adapted to calculate a second weight of the feature vector based on an appearance position of the feature word in the feature sentence; a weighted vector generating unit, adapted to multiply the feature vector by the first weight and the second weight in sequence to obtain the weighted vector; The cluster analysis module is also used for: Mark the target feature sentence to which the target feature word belongs; The target feature sentence is divided into clusters corresponding to the target feature words.

3. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method according to claim 1 are implemented.

4. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to claim 1 are implemented.