Target news topic summarization method based on compressed space sentence selection

By screening key information in the target news topic summary and balancing prominent features and repeated features, the problem of information omission and high duplication in the existing technology is solved, and high-quality summary generation is achieved.

CN115017404BActive Publication Date: 2024-10-18KUNMING UNIV OF SCI & TECH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202210449431.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-27
Publication Date
2024-10-18
Estimated Expiration
2042-04-27

AI Technical Summary

Technical Problem

The existing technology is prone to missing or incompletely covering key information in target news topic summaries, and the generated summary sentences are not critical enough and highly repetitive, and cannot adapt to the characteristics of news data in topic clusters.

Method used

By crawling target news, filtering topic-related news clusters, using an improved pre-training model combined with prominence and repeated feature calculation modules to balance sentence selection and generate high-quality summaries.

Benefits of technology

It effectively reduces the search space, improves the accuracy and quality of the summary, reduces duplication, and enhances the criticality and representativeness of the summary.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115017404B_ABST
    Figure CN115017404B_ABST
Patent Text Reader

Abstract

The present invention relates to a target news topic summary method based on compressed space sentence selection, and belongs to the field of natural language processing. The present invention comprises: constructing a target news topic summary data set; using a sentence importance evaluation module to filter out information irrelevant to the topic description to compress the search space, and then encoding the screened document set and sentences through a document set encoder module based on an improved Bert model, and then calculating the prominent features and repeated features of the sentences in the encoded document set, and extracting the sentences with the highest final score to form a summary of the topic after combining the two features. The present invention incorporates the guidance of topic key descriptors and uses a sentence selection method that can balance prominent features and repeated features, improves the quality of the generated topic summary on the basis of compressed search space, and provides support for subsequent target supervision and other tasks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a target news topic summarization method based on compressed space sentence selection, and belongs to the technical field of natural language processing. Background Art

[0002] When a hot event related to a case occurs in society, information tends to spread and ferment quickly on news websites and the media. How to effectively conduct targeted supervision is a key issue. It is crucial for relevant departments to supervise network trends and maintain network order and stability by quickly obtaining information through technical means and timely extracting the key content of case topic news. There are hundreds or thousands of news documents under the same topic. If users search for information describing the topic directly from these news, they can only spend a lot of time and energy to read them one by one, which is very inconvenient to handle. Through text automatic summarization technology, a concise and accurate topic summary of the key information of the topic can be extracted from the news of the topic cluster, which will greatly reduce the user's reading time and effectively reduce the cost of information storage. It plays an important role in the relevant departments to carry out supervision work on the target topic and obtain the key content of the topic.

[0003] At present, there are many studies and analyses on topic summarization in the general field. In recent years, deep learning and neural network algorithms have made great progress, and their application in topic summarization tasks has also achieved many research results. Cheng et al. proposed a data-driven summary framework based on encoder extractors. Through a hierarchical neural network structure, the features of sentences and words can be extracted separately to obtain better summaries; Cao et al. used a ranking model of a recurrent neural network to select sentences in a document collection. It expressed the sentence ranking task as a hierarchical regression process while measuring the prominence of sentences and their components in the parse tree; Zhang et al. proposed an enhanced multi-view convolutional neural network to jointly obtain the features of sentences and sort them; Nallapati et al. proposed a model based on a recurrent neural network to generate summary predictions, including abstract features such as sentence content, prominence and repetitiveness. Reference summaries can be trained separately to eliminate the dependence on sentence extraction labels. However, the topic summary of the target news is for news documents under the same case topic. Both the title and the body content contain the key information of the target topic. If a general automatic summarization method is used, it is easy to miss and cover incomplete key information, and it may also extract sentences that are not related to the target topic description, resulting in low sentence prominence in the summary. In addition, the existing methods use sentence selection models to directly extract representative sentences from the original text, which is simple and practical. However, they cannot adapt to the characteristics of multiple case elements in news data in topic clusters in the target news topic summary task. The generated summary sentences are not critical enough and have high repetitiveness, which is not practical. Therefore, it is believed that combining the key words of the target topic to screen the importance of sentences and using a sentence selection method that can balance prominent features and repetitive features can improve the quality of the generated topic summary on the basis of compressing the search space. Summary of the invention

[0004] The present invention provides a target news topic summarization method based on compressed space sentence selection, which incorporates the guidance of topic key descriptors and uses a sentence selection method that can balance prominent features and repeated features, thereby improving the quality of the generated topic summary based on the compressed search space.

[0005] The technical solution of the present invention is: a target news topic summarization method based on compressed space sentence selection, and the specific steps of the method are as follows:

[0006] Step 1. Crawl the target news through crawler technology, select news related to the topic and select 30 topic news clusters. The news in each cluster describes the same topic. Each cluster contains 20 target news, including titles and text content, a total of 15,343 sentences for data set construction; perform data denoising, cleaning and preprocessing; analyze the crawled target news to make each news belong to only one topic cluster, and annotate the news documents under the same topic cluster to obtain the labels of the sentences in the document, and manually write the reference summary of each topic cluster;

[0007] Step 2. Filter out the sentences in each document that contain topic words and have the highest importance score through the defined topic key descriptors; use the improved pre-trained model to encode the filtered document collection and sentences; obtain two sentence features through the prominence calculation module and the repeated feature calculation module; and balance the prominence features and repeated features of the generated summary through the sentence selection model to obtain a summary containing accurate topic information.

[0008] The specific steps of Step 1 are:

[0009] Step 1.1. Use crawler technology to crawl news data related to the target topic from major news websites and public account platforms in recent years, and select 30 topic news clusters. The news in each cluster describes the same topic. Each cluster contains 20 target news, including titles and text content, and a total of 15,343 sentences constitute the data set;

[0010] Step 1.2: Clean, denoise and preprocess the crawled data. The data cleaning, denoising and preprocessing process includes the removal of web page tags, advertising links, special symbols, as well as the removal of duplicate data, foreign data and traditional Chinese characters, and also includes manual calibration of the relevance of news data and case topics;

[0011] Step 1.3, use manual annotation to obtain sentence labels in the dataset; manually write a reference summary for each topic cluster;

[0012] As a preferred embodiment of the present invention, the specific steps of Step 2 are as follows:

[0013] Step 2.1, define the keywords in the topic cluster, extract the sentence set containing the keywords through regularized matching, filter out the sentences containing irrelevant information, calculate the frequency of keywords in the news documents, obtain the importance score of the sentences, extract the sentences with the highest importance score in each document, and combine them into a new topic cluster document set;

[0014] Step 2.2, using a document set encoder based on the improved Bert model to encode document sets and sentences to obtain representations;

[0015] Step 2.3, measure the prominence of candidate sentences and sentences that have not yet been selected through a bilinear mapping function;

[0016] Step 2.4, in the sentence selection process, calculate the overlap degree of n-gram phrases between the candidate sentence and the selected summary sentence, and calculate the semantic representation similarity through cosine similarity, perform normalization and discretization, convert the two features into one-hot vector representation and concatenate and fuse them to obtain a repeated feature vector;

[0017] Step 2.5. Use a bilinear mapping function to balance the prominence and repetition features of the candidate sentences to obtain a matching vector, which is input into a multi-layer perceptron to obtain the final score of the candidate sentence. Sentences with high scores are selected and put into the summary sentence set to obtain a topic summary.

[0018] As a preferred solution of the present invention, Step 2.1 specifically includes:

[0019] To calculate the importance score of a sentence, we first need to calculate the score of the keyword, that is, the frequency of the keyword. We use Python's regularized matching to extract a set of sentences containing keywords, filter out sentences containing irrelevant information, and then calculate the frequency of keywords in the news document. Let num(w i ) is the keyword w i The number of times a news article appears. is the sum of the number of times all words appear in the news, keyword w i The score is SC(w i );

[0020]

[0021] After calculating the score of the keywords in the document, we can calculate the score of the sentences in the document. Suppose the nth sentence s of the mth document in the document collection is mn The importance score is SC(s mn );

[0022]

[0023] After calculating the importance scores of the sentences in the document collection, it is necessary to screen the sentences according to the scores and use the document collection encoder based on the improved Bert model to encode the document collection sentences. The Bert model has a limit on the encoding length, so before encoding the sentences, the sentences with the highest importance scores in each document are extracted and combined into a new document collection L for subsequent encoding operations;

[0024] As a preferred solution of the present invention, Step 2.2 specifically includes:

[0025] After the sentence importance evaluation, the newly combined document set L contains m target news sentences {l1,l2,…,l m}, where l i represents the i-th sentence in the collection; in order to obtain high-quality sentence and document collection representation, this paper considers applying the Bert pre-trained model to the topic summarization task; since the Bert model is based on token-level encoding, not sentence-level encoding, and the fragment embedding part of the model is used to determine whether two sentences are related, it only contains two types of fragment embeddings and cannot be directly applied to the topic summarization task of inputting multiple sentences. Therefore, a document collection encoder based on the improved Bert model is used to encode each sentence l in the document collection. i The [CLS] tag is added before to summarize the sentence embedding information, and the [SEP] tag is added at the end to distinguish the boundaries of different sentences. In order to distinguish sentences at different positions, E odd and E even Two different interval segment embeddings; for sentence l i , if i is an odd number, the interval segment embedding of the sentence is E odd , otherwise when i is an even number, it is embedded as E even ; Through this encoding method, each sentence can obtain the sentence Token embedding E l , spacer fragment embedded in E odd / E even and position embedding E p The fusion of three embeddings; after being encoded by multiple Transformer encoding layers, the sentence l i The previous [CLS] markup outputs a representation of T [CLS] As the representation of the corresponding sentence, it can be recorded as E' li , E' li and the position embedding E' of each sentence representation in the document collection encoder p After fusion, an input representation sequence is formed, and an embedding E that can represent the document collection is added to the head of the sequence set , combined into a complete document set - sentence representation input sequence, input into multiple Transformer encoding layers for encoding, and finally obtain the representation r of the complete document set L set and sentence encoding representation r li ;

[0026] As a preferred solution of the present invention, Step 2.3 specifically includes:

[0027] The topic summarization task needs to extract representative sentences, that is, sentences with high prominence. Therefore, a single-step sentence prominence calculation module is designed based on document set encoding and sentence encoding. Let the manually written reference summary of the document set L be R. The goal is to extract k sentences that can summarize the key information from L as summary sentences. For the tth selection step, the currently generated summary sentence set is Assume l j For sentences that have not been selected in L, we calculate the set representation r output by the document set encoder set and sentence representation r li The bilinear mapping function F pro to measure the probability that the selected sentence is included in the reference summary R;

[0028]

[0029] Where W bm is the weight matrix of the bilinear mapping, which can be used to set and r li The two vectors with different dimensions are linearly transformed and mapped to another space; the objective function is to maximize the log-likelihood function of the sentences in the training sample that are included in the reference summary R;

[0030]

[0031] Bilinear mapping function F pro As a measure of the current candidate sentence l i and the sentences not yet selected j The prominence scoring function can calculate the attention score of each candidate sentence, that is, the prominence score of the sentence;

[0032] As a preferred solution of the present invention, Step 2.4 specifically includes:

[0033] After calculating the prominence score of the candidate sentence, it is also necessary to calculate the repetition feature of the sentence. When performing the t-th selection process, the n-gram model matching feature of the process is first calculated, which represents the candidate sentence l i and the selected summary sentence t-1 The degree of overlap of n-gram phrases;

[0034]

[0035] The more overlapping phrases there are, the more repeated features there are. In order to accurately calculate the repeated features, the phrase overlap of the unigram, bigram, and trigram models was calculated respectively. In order to explore the deeper similarity of sentence representation, the maximum semantic similarity F of sentence representation was integrated on the basis of the phrase overlap of the n-gram model.sim To calculate the coincidence features;

[0036]

[0037] In order to enlarge the numerical difference of the overlapping features calculated by the cosine similarity between the candidate sentences and the selected sentences, linear normalization is used to discretize the feature values ​​between 0 and 1;

[0038]

[0039] The repeated feature calculation module calculates two repeated features, and the two features can be merged to obtain the overall repeated feature. First, the interval length from 0 to 1 is divided into c blocks, and the values ​​are discretized into corresponding blocks equally divided between 0 and 1 according to the coincidence characteristics of unigram, bigram and trigram phrases and the normalized semantic similarity characteristics, so as to convert each part of the feature into a one-hot vector representation of length c, and then the parts are spliced ​​and merged to obtain the repeated feature vector representation F of the module as a whole. rep (l i );

[0040]

[0041] In the formula The one-hot vectors of the repeated feature vectors of each part are divided into blocks. This can capture the influence of the repeated features of each part. We hope that the selected summary sentences have fewer repeated features.

[0042] As a preferred solution of the present invention, Step 2.5 specifically includes:

[0043] After obtaining the prominence score and repetitive features through the sentence prominence calculation module and the repetitive feature calculation module, it is necessary to balance these two features in the sentence selection module so that the selected summary sentence has a certain prominence and does not contain too many repetitive features; in the first step of sentence selection, only the sentence with the highest prominence score is extracted as the first sentence of the summary; by calculating the prominence feature F pro (l i ) and repeated features F rep (l i ) to balance the candidate sentences l i The two features of d are used to obtain a d-dimensional mapping matching vector; it is input into the MLP to obtain the final score SC(l i );

[0044]

[0045] in is the bilinear mapping matrix of the two features, W his the weight matrix of MLP; the sentence selection module randomly selects sentences from the reference summary R during training, allowing the model to learn contextual information and learn to find the next prominent and non-repetitive sentence. The objective function is

[0046]

[0047] The objective function means that in the tth process, any sentence l is selected i The probability is the sentence score SC(l i ) The remaining sentences l in L j The softmax function on the sentence selection module; the loss of the sentence selection module is independent of the order of sentence selection, because the sentences given in the training process are a set of unordered sentences, and the module always selects the next prominent and non-repetitive sentence, and finally obtains the sentence set As a generated topic summary;

[0048] Furthermore, a document collection encoder based on the improved Bert model is used to encode topic cluster news documents and sentences, which includes 12 hidden layers, 12 attention heads in each layer, a hidden layer dimension of 768, and a vocabulary size of 30522; the document collection encoder encodes the document collection in 2 Transformer layers, and the dropout of each layer is set to 0.1; the training batch size is 128, the training rounds are 20, the learning rate is 2e-3, and the optimizer is Adam, with β1 of 0.9 and β2 of 0.999; the one-hot vector representation length c of each part of the repeated features in Formula 8 is 20, the feature dimension d of the bilinear mapping output of the prominence feature and the repeated feature in Formula 9 is 10, and the model training uses unordered sentences randomly selected from the reference summary as context information.

[0049] The beneficial effects of the present invention are:

[0050] (1) For the target news topic summary, there are many news documents under the same topic cluster, the search space is large, and there are many sentences irrelevant to the key information. How to build a better sentence selection model so that the generated topic summary can not only reflect the key information of the target topic news, but also reduce repeated and unimportant sentences. A target news topic summary method based on compressed space sentence selection is proposed, and a sentence importance evaluation module is designed to filter out irrelevant information to compress the search space;

[0051] (2) The present invention proposes two parallel modules to calculate the prominent features and the repeated features respectively;

[0052] (3) The present invention proposes a sentence selection model that balances the two features and extracts the sentence with the highest final score to form a topic summary, thereby solving the problems of a large search space in the target news topic summary task, low prominence of the generated summary, and the presence of a lot of repeated information. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 A flowchart of a target news topic summary based on compressed space sentence selection proposed by the method of the present invention;

[0054] Figure 2 This is a model diagram of the document set encoder module based on the improved Bert model in the method flow of the present invention. DETAILED DESCRIPTION

[0055] Example 1: Figure 1 and Figure 2 As shown, the target news topic summarization method based on compressed space sentence selection, the specific steps of the method are as follows:

[0056] Step 1. Crawl the target news through crawler technology, select news related to the topic and select 30 topic news clusters. The news in each cluster describes the same topic. Each cluster contains 20 target news, including titles and text content, a total of 15,343 sentences for data set construction; perform data denoising, cleaning and preprocessing; analyze the crawled target news to make each news belong to only one topic cluster, and annotate the news documents under the same topic cluster to obtain the labels of the sentences in the document, and manually write a reference summary for each topic cluster.

[0057] Step 1.1. We crawled the target key news from major news websites and public account platforms in recent years through crawler technology, and selected more than ten cases with high attention from netizens, such as "a certain rights protection case", totaling 17,889 news items;

[0058] Step 1.2: Clean, denoise and preprocess the crawled data. The data cleaning, denoising and preprocessing process includes the removal of web page tags, advertising links, special symbols, as well as the removal of duplicate data, foreign data and traditional Chinese characters, and also includes manual calibration of the relevance of news data and case topics;

[0059] Step 1.3, use manual annotation to obtain sentence labels in the dataset; manually write a reference summary for each topic cluster. The scale of the experimental dataset is shown in Table 1:

[0060] Table 1 Experimental dataset statistics

[0061]

[0062] Step 2. Filter out the sentences in each document that contain topic words and have the highest importance score through the defined topic key descriptors; use the improved pre-trained model to encode the filtered document collection and sentences; obtain two sentence features through the prominence calculation module and the repeated feature calculation module; use the sentence selection model to balance the prominence features and repeated features of the generated summary, calculate the sentence score, and extract sentences with high scores to obtain a summary containing accurate topic information.

[0063] Step 2.1. Calculate the importance score of the sentence. First, calculate the score of the keyword, that is, the frequency of the keyword. Use Python's regularized matching to extract the sentence set containing the keyword, filter out the sentences containing irrelevant information, and then calculate the frequency of the keyword in the news document. Let num(w i ) is the keyword w i The number of times a news article appears. is the sum of the number of times all words appear in the news, keyword w i The score is SC(w i );

[0064]

[0065] After calculating the score of the keywords in the document, we can calculate the score of the sentences in the document. Suppose the nth sentence s of the mth document in the document collection is mn The importance score is SC(s mn );

[0066]

[0067] After calculating the importance scores of the sentences in the document collection, it is necessary to screen the sentences according to the scores and use the document collection encoder based on the improved Bert model to encode the document collection sentences. The Bert model has a limit on the encoding length, so before encoding the sentences, the sentences with the highest importance scores in each document are extracted and combined into a new document collection L for subsequent encoding operations;

[0068] Step 2.2, after the sentence importance evaluation, the newly combined document set L contains m target news sentences {l1,l2,…,l m}, where l iRepresents the i-th sentence in the collection; In order to obtain high-quality sentence and document collection representations, this paper considers applying the Bert pre-trained model to the topic summarization task; Since the Bert model is based on Token-level encoding, not sentence-level encoding, and the fragment embedding part of the model is used to determine whether two sentences are related, it only contains two types of fragment embeddings and cannot be directly applied to the topic summarization task of inputting multiple sentences. Therefore, a document collection encoder module based on the improved Bert model is used to generate a new sentence in each sentence l of the document collection. i The [CLS] tag is added before to summarize the sentence embedding information, and the [SEP] tag is added at the end to distinguish the boundaries of different sentences. In order to distinguish sentences at different positions, E odd and E even Two different interval segment embeddings; for sentence l i , if i is an odd number, the interval segment embedding of the sentence is E odd , otherwise when i is an even number, it is embedded as E even ; Through this encoding method, each sentence can obtain the sentence Token embedding E l , spacer fragment embedded in E odd / E even and position embedding E p The fusion of three embeddings; after being encoded by multiple Transformer encoding layers, the sentence l i The previous [CLS] markup outputs a representation of T [CLS] As the representation of the corresponding sentence, it can be recorded as E' li , E' li and the position embedding E' of each sentence representation in the document collection encoder p After fusion, an input representation sequence is formed, and an embedding E that can represent the document collection is added to the head of the sequence set , combined into a complete document set - sentence representation input sequence, input into multiple Transformer encoding layers for encoding, and finally obtain the representation r of the complete document set L set and sentence encoding representation r li ;

[0069] Step 2.3, the topic summary task needs to extract representative sentences, that is, sentences with high prominence. Therefore, a single-step sentence prominence calculation module is designed based on document set encoding and sentence encoding. Let the manually written reference summary of the document set L be R. The goal is to extract k sentences that can summarize the key information from L as summary sentences. For the tth selection step, the currently generated summary sentence set is Assume l jFor sentences that have not been selected in L, we calculate the set representation r output by the document set encoder set and sentence representation r li The bilinear mapping function F pro to measure the probability that the selected sentence is included in the reference summary R;

[0070]

[0071] Where W bm is the weight matrix of the bilinear mapping, which can be used to set and r li The two vectors with different dimensions are linearly transformed and mapped to another space; the objective function is to maximize the log-likelihood function of the sentences in the training sample that are included in the reference summary R;

[0072]

[0073] Bilinear mapping function F pro As a measure of the current candidate sentence l i and the sentences not yet selected j The prominence scoring function can calculate the attention score of each candidate sentence, that is, the prominence score of the sentence;

[0074] Step 2.4, after calculating the prominence score of the candidate sentence, it is also necessary to calculate the repetition feature of the sentence. When performing the t-th selection process, first calculate the n-gram model matching feature of the process, which represents the candidate sentence l i and the selected summary sentence t-1 The degree of overlap of n-gram phrases;

[0075]

[0076] The more overlapping phrases there are, the more repeated features there are. In order to accurately calculate the repeated features, the phrase overlap of the unigram, bigram, and trigram models was calculated respectively. In order to explore the deeper similarity of sentence representation, the maximum semantic similarity F of sentence representation was integrated on the basis of the phrase overlap of the n-gram model. sim To calculate the coincidence features;

[0077]

[0078] In order to enlarge the numerical difference of the overlapping features calculated by the cosine similarity between the candidate sentences and the selected sentences, linear normalization is used to discretize the feature values ​​between 0 and 1;

[0079]

[0080] The repeated feature calculation module calculates two repeated features, and the two features can be merged to obtain the overall repeated feature. First, the interval length from 0 to 1 is divided into c blocks, and the values ​​are discretized into corresponding blocks equally divided between 0 and 1 according to the coincidence characteristics of unigram, bigram and trigram phrases and the normalized semantic similarity characteristics, so as to convert each part of the feature into a one-hot vector representation of length c, and then the parts are spliced ​​and merged to obtain the repeated feature vector representation F of the module as a whole. rep (l i );

[0081]

[0082] In the formula The one-hot vectors of the repeated feature vectors of each part are divided into blocks. This can capture the influence of the repeated features of each part. We hope that the selected summary sentences have fewer repeated features.

[0083] Step 2.5, after obtaining the prominence score and repetitive features through the sentence prominence calculation module and the repetitive feature calculation module, it is necessary to balance these two features in the sentence selection module, so that the selected summary sentence has a certain prominence and does not contain too many repetitive features; in the first step of sentence selection, only the sentence with the highest prominence score is extracted as the first sentence of the summary; by calculating the prominence feature F pro (l i ) and repeated features F rep (l i ) to balance the candidate sentences l i The two features of , get a d-dimensional mapping matching vector; input it into MLP to get the final score SC(l i );

[0084]

[0085] in is the bilinear mapping matrix of the two features, W h is the weight matrix of MLP; the sentence selection module randomly selects sentences from the reference summary R during training, allowing the model to learn contextual information and learn to find the next prominent and non-repetitive sentence. The objective function is

[0086]

[0087] The objective function means that in the tth process, any sentence l is selected i The probability is the sentence score SC(l i ) The remaining sentences l in L jThe softmax function on the sentence selection module; the loss of the sentence selection module is independent of the order of sentence selection, because the sentences given in the training process are a set of unordered sentences, and the module always selects the next prominent and non-repetitive sentence, and finally obtains the sentence set As a generated topic summary;

[0088] Step 2.6. The model experiment uses a document collection encoder based on the improved Bert model to encode topic cluster news documents and sentences, which contains 12 hidden layers, each with 12 attention heads, a hidden layer dimension of 768, and a vocabulary size of 30522; the document collection encoder encodes the document collection in 2 Transformer layers, and the dropout of each layer is set to 0.1; the training batch size is 128, the training rounds are 20, the learning rate is 2e-3, the optimizer uses Adam, β1 is 0.9, and β2 is 0.999; the one-hot vector representation length c of each part of the repeated features in Formula 8 is 20, and the feature dimension d of the bilinear mapping output of the prominence feature and the repeated feature in Formula 9 is 10. The model training uses unordered sentences randomly selected from the reference summary as context information.

[0089] In order to illustrate the effect of the present invention, three groups of comparative experiments were set up. The first group of experiments verified the improvement of topic summarization performance, the second group of experiments verified the effectiveness of the model of the present invention, and the third group of experiments verified the impact of different summary lengths on the effectiveness of the model.

[0090] (1) Verification of Topic Summarization Performance Improvement

[0091] In the baseline model, the target news topic summary dataset constructed in step 1 is used as the model input for comparative experiments. Five models are selected as benchmark models, namely: LEAD-3, LDA topic model, TextRank, BertSum and RL-MMR. The experimental results are shown in Table 2.

[0092] Table 2 Performance comparison of baseline models

[0093]

[0094] From the analysis of Table 2, it can be seen that the method of the present invention has achieved better performance than other benchmark models. The LEAD-3 algorithm has the worst effect in generating the target news topic summary, because it only focuses on the beginning of the document collection and extracts the first three sentences by hard cutoff. The first three sentences describe more irrelevant information, resulting in more unrepresentative content and poor model performance. The LDA topic model relies on statistical features. Due to the particularity of the target news, LDA will have the problem of inconsistent topic importance. The TextRank algorithm is based on a graph model and has obvious advantages in constructing the association relationship of sentences in a document collection. However, this method does not first screen the importance of sentences. When applied to the target field, it is easily affected by the high-frequency words of non-topic keywords, so it has obvious deficiencies in the ROUGE-2 and ROUGE-L indicators. The various indicators of the DPP model are better than those of the previous comparison methods. The model selects representative samples through the determinant point process and uses the capsule network to filter out sentences with fewer overlapping words but repeated semantics. It has a good effect in removing repeated features, but the model lacks end-to-end representation learning, which will cause the accumulation of errors, and the effect still needs to be improved. The RL-MMR model has achieved good results compared to the comparison models other than the model in this paper. However, compared with the model in this paper, the soft attention method introduced by RL-MMR for sentence ranking is not perfect. Without the guidance of topic keyword information, non-topic key information may appear in the highly ranked sentences. After the model of the method of the present invention introduces the sentence importance evaluation module, a large number of sentences that are not related to key information are filtered out, and the repeated features are balanced with the prominent features. The score of the final selected sentence will not be biased towards any one feature, thereby achieving the best effect. Compared with the baseline model, the ROUGE-1 value is increased by 1.44-6.47, the ROUGE-2 value is increased by 0.96-6.34, and the ROUGE-L value is increased by 0.91-6.42, which also verifies the effectiveness of the method of the present invention.

[0095] (2) Model validity verification

[0096] In order to verify the effectiveness of each module of the model of the present invention, the main model is ablated into three sub-models: the main model removes sentence importance evaluation, the main model removes prominent features, and the main model removes repeated features. The evaluation indicators are calculated using ROUGE values. The optimal results are shown in bold, and the evaluation indicators remain unchanged. The test results are shown in Table 3:

[0097] Table 3 Simplified model performance analysis

[0098]

[0099] From the analysis of Table 3, it can be seen that after removing the sentence importance evaluation module of the model, the performance of various indicators is the worst, with ROUGE-1 value decreasing by 6.28, ROUGE-2 value decreasing by 6.32, and ROUGE-L value decreasing by 7.71. This is because after removing this module, the sentence set input to the model is not filtered and contains more words of non-key information, and the document set encoder module will perform hard truncation for too many sentence encodings, which makes the description of the topic content not accurate enough and has a large difference from the reference summary. After the model removes the prominent features, the effect is slightly better than removing the sentence importance evaluation module, with ROUGE-1 value decreasing by 4.47, ROUGE-2 value decreasing by 3.53, and ROUGE-L value decreasing by 5.94. Because although the model extracts sentences containing topic keywords, after removing the prominent features, the information in the summary sentences extracted by the model is not representative, and it also cannot describe the topic content well. After the model removed the repeated features, the decline in various indicators was the smallest, with the ROUGE-1 value decreasing by 3.73, the ROUGE-2 value decreasing by 2.42, and the ROUGE-L value decreasing by 3.77. This is because the model retains the calculation module of the prominent features, and the extracted sentences contain more representative information. However, after the repeated features are removed, the extracted sentence set will contain a large amount of repeated information. Although there is more key information, the generated summary is still not the best summary, which also indirectly confirms the effectiveness of the model of the method of the present invention.

[0100] (3) Verification of the impact of different summary lengths on model effectiveness

[0101] In order to verify the impact of different lengths of abstracts generated by the model on the ROUGE index, that is, to verify whether the model has good adaptability, the present invention conducted the following experiment, stipulating the generation of four abstracts of different lengths for comparison. The experimental results are shown in Table 4. The test results are shown in Table 4:

[0102] Table 4 Verification analysis of the impact of different abstract lengths on model effectiveness

[0103]

[0104] From the analysis of Table 4, it can be seen that when the length of the generated summary is 50 and 100, the various indicators of the model are the worst and the model performance decreases significantly. This is because a large amount of relevant information will be lost when the generated summary is too short. When the length of the generated summary is 150, the model is close to the best performance, and the best is achieved when the length is 200. This is because when constructing the data set, the average length of the manual reference summary written for each topic cluster in the test set is about 178. The closer the generated summary is to the length of the reference summary, the more co-occurring phrases and the longest character string will be with the reference summary, and the better the performance of the model of the method of the present invention.

[0105] The above experimental data proves that the present invention aims at the problem that the document search space in the topic cluster is large and there are many sentences that are irrelevant to the key information of the topic. A target news topic summary method based on compressed space sentence selection is proposed. The sentences containing topic keywords are extracted through the sentence importance evaluation module, and the bilinear mapping function is used to balance the prominent features and repeated features of the sentences to score the sentences, so as to achieve the effectiveness of extracting sentences related to the important information of the topic. Based on the constructed target news topic summary dataset and the manually written reference summary, various experiments prove that the topic summary model proposed in this paper can extract key sentences that have both representative information and are non-repetitive, and the generated summary has a higher quality. Experiments show that the method of the present invention achieves the best effect compared with multiple baseline models. For the target news topic summary task, the target news topic summary method based on compressed space sentence selection proposed by the present invention is effective in improving the performance of news topic summarization in the target field.

[0106] The specific implementation modes of the present invention are described in detail above in conjunction with the accompanying drawings, but the present invention is not limited to the above implementation modes, and various changes can be made within the knowledge scope of ordinary technicians in this field without departing from the purpose of the present invention.

Claims

1. A target news topic summarization method based on compressed space sentence selection, characterized by: The specific steps of the method include: Step 1: Crawl the target news through crawler technology, select news related to the topic to construct the target news topic summary data set; perform data denoising, cleaning and preprocessing; analyze the crawled target news to make each news belong to only one topic cluster, and annotate the news documents under the same topic cluster to obtain the labels of the sentences in the documents, and manually write the reference summary of each topic cluster; Step 2: Filter out the sentences in each document that contain topic words and have the highest importance score through the defined topic key descriptors; use the improved pre-trained model to encode the filtered document collection and sentences; obtain two sentence features through the prominence calculation module and the repeated feature calculation module; use the sentence selection model to balance the prominence and repeated features of the generated summary, calculate the sentence score, and extract the sentences with high scores to obtain a summary containing accurate topic information; The specific steps of Step 2 are as follows: Step 2.1, define the keywords in the topic cluster, extract the sentence set containing the keywords through regularized matching, filter out the sentences containing irrelevant information, calculate the frequency of keywords in the news documents, obtain the importance score of the sentences, extract the sentences with the highest importance score in each document, and combine them into a new topic cluster document set; Step 2.2, using a document set encoder based on the improved Bert model to encode document sets and sentences to obtain representations; Step 2.3, measure the prominence of candidate sentences and sentences that have not yet been selected through a bilinear mapping function; Step 2.4, in the sentence selection process, calculate the overlap degree of n-gram phrases between the candidate sentence and the selected summary sentence, and calculate the semantic representation similarity through cosine similarity, perform normalization and discretization, convert the two features into one-hot vector representation and concatenate and fuse them to obtain a repeated feature vector; Step 2.5, balance the prominence and repetition features of the candidate sentences through a bilinear mapping function to obtain a matching vector, which is input into a multi-layer perceptron to obtain the final score of the candidate sentence, and select the sentence with the high score and put it into the summary sentence set to obtain the topic summary; The Step 2.2 specifically includes: After the sentence importance evaluation, the newly combined document set L contains m target news sentences {l1,l2,…,l m }, where l i In order to obtain high-quality sentence and document collection representations, the Bert pre-trained model is considered to be applied to the topic summarization task. Since the Bert model is based on token-level encoding, not sentence-level encoding, and the fragment embedding part of the model is used to determine whether two sentences are related, it only contains two types of fragment embeddings and cannot be directly applied to the topic summarization task of inputting multiple sentences. Therefore, a document collection encoder based on the improved Bert model is used to encode each sentence l in the document collection. i The [CLS] tag is added before to summarize the sentence embedding information, and the [SEP] tag is added at the end to distinguish the boundaries of different sentences. In order to distinguish sentences at different positions, E odd and E even Two different interval segment embeddings; for sentence l i , if i is an odd number, the interval segment embedding of the sentence is E odd , otherwise when i is an even number, it is embedded as E even ; Through this encoding method, each sentence can obtain the sentence Token embedding E l , spacer fragment embedded in E odd / E even and position embedding E p The fusion of three embeddings; after being encoded by multiple Transformer encoding layers, the sentence l i The previous [CLS] markup outputs a representation of T [CLS] As a representation of the corresponding sentence, it can be recorded as E' li , E' li and the position embedding E' of each sentence representation in the document collection encoder p After fusion, an input representation sequence is formed, and an embedding E that can represent the document collection is added to the head of the sequence set , combined into a complete document set - sentence representation input sequence, input into multiple Transformer encoding layers for encoding, and finally obtain the representation r of the complete document set L set and sentence encoding representation r li ; The Step 2.3 specifically includes: The topic summarization task needs to extract representative sentences, that is, sentences with high prominence. Therefore, a single-step sentence prominence calculation module is designed based on document set encoding and sentence encoding. Let the manually written reference summary of the document set L be R. The goal is to extract k sentences that can summarize the key information from L as summary sentences. For the tth selection step, the currently generated summary sentence set is Assume l j For sentences that have not been selected in L, we calculate the set representation r output by the document set encoder set and sentence representation r li The bilinear mapping function F pro to measure the probability that the selected sentence is included in the reference summary R; Where W bm is the weight matrix of the bilinear mapping, which can be used to map r set and r li The two vectors with different dimensions are linearly transformed and mapped to another space; the objective function is to maximize the log-likelihood function of the sentences in the training sample contained in the reference summary R; Bilinear mapping function F pro As a measure of the current candidate sentence l i and the sentences not yet selected j The prominence scoring function can calculate the attention score of each candidate sentence, that is, the prominence score of the sentence; The Step 2.4 specifically includes: After calculating the prominence score of the candidate sentence, it is also necessary to calculate the repetition feature of the sentence. When performing the t-th selection process, the n-gram model matching feature of the process is first calculated, which represents the candidate sentence l i and the selected summary sentence t-1 The degree of overlap of n-gram phrases; The more overlapping phrases there are, the more repeated features there are. In order to accurately calculate the repeated features, the phrase overlap of the unigram, bigram, and trigram models was calculated respectively. In order to explore the deeper similarity of sentence representation, the maximum semantic similarity F of sentence representation was integrated on the basis of the phrase overlap of the n-gram model. sim To calculate the coincidence features; In order to enlarge the numerical difference of the overlapping features calculated by the cosine similarity between the candidate sentences and the selected sentences, linear normalization is used to discretize the feature values ​​between 0 and 1; The repeated feature calculation module calculates two repeated features, and the two features are fused to obtain the overall repeated feature. First, the interval length from 0 to 1 is divided into c blocks, and the values ​​are discretized into corresponding blocks equally divided between 0 and 1 according to the coincidence characteristics of unigram, bigram and trigram phrases and the normalized semantic similarity characteristics, so as to convert each part of the feature into a one-hot vector representation of length c, and then the parts are spliced ​​and fused to obtain the repeated feature vector representation F of the module as a whole. rep (l i ); In the formula It is the one-hot vector after the repeated feature vectors of each part are divided into blocks; The Step 2.5 specifically includes: After obtaining the prominence score and repetitive features through the sentence prominence calculation module and the repetitive feature calculation module, it is necessary to balance these two features in the sentence selection module so that the selected summary sentence has a certain prominence and does not contain too many repetitive features; in the first step of sentence selection, only the sentence with the highest prominence score is extracted as the first sentence of the summary; by calculating the prominence feature F pro (l i ) and repeated features F rep (l i ) to balance the candidate sentences l i The two features of , get a d-dimensional mapping matching vector; input it into MLP to get the final score SC(l i ); in is the bilinear mapping matrix of the two features, W h is the weight matrix of MLP; the sentence selection module randomly selects sentences from the reference summary R during training, allowing the model to learn contextual information and learn to find the next prominent and non-repetitive sentence. The objective function is The objective function means that in the tth process, any sentence l is selected i The probability is the sentence score SC(l i ) The remaining sentences l in L j The softmax function on the sentence selection module; the loss of the sentence selection module is independent of the order of sentence selection, because the sentences given in the training process are a set of unordered sentences, and the module always selects the next prominent and non-repetitive sentence, and finally obtains the sentence set As a generated topic summary.

2. The target news topic summarization method based on compressed space sentence selection according to claim 1 is characterized by: The specific steps of Step 1 are: Step 1.

1. Use crawler technology to crawl news data related to the target topic from major news websites and public account platforms to form a topic cluster; Step 1.2: Clean, denoise and preprocess the crawled data. The data cleaning, denoising and preprocessing process includes the removal of web page tags, advertising links, special symbols, as well as the removal of duplicate data, foreign data and traditional Chinese characters, and also includes manual calibration of the relevance of news data and case topics; Step 1.3: Use manual annotation to obtain sentence labels in the dataset; manually write a reference summary for each topic cluster.

3. The target news topic summarization method based on compressed space sentence selection according to claim 1 is characterized by: The Step 2.1 specifically includes: To calculate the importance score of a sentence, we first need to calculate the score of the keyword, that is, the frequency of the keyword. We use Python's regularized matching to extract a set of sentences containing keywords, filter out sentences containing irrelevant information, and then calculate the frequency of keywords in the news document. Let num(w i ) is the keyword w i The number of times a news article appears. is the sum of the number of times all words appear in the news, keyword w i The score is SC(w i ); After calculating the score of the keywords in the document, we can calculate the score of the sentences in the document. Suppose the nth sentence s of the mth document in the document collection is mn The importance score is SC(s mn ); After calculating the importance scores of the sentences in the document collection, it is necessary to screen the sentences according to the scores and use the document collection encoder module based on the improved Bert model to encode the document collection sentences. The Bert model has a limit on the length of the encoding, so before encoding the sentences, the sentences with the highest importance scores in each document are extracted and combined into a new document collection L for subsequent encoding operations.

Citation Information

Cited By

  • Network threat intelligence relational triple combined extraction method based on deep learning

    US12248876B1