Article abstract generation method and device, equipment and storage medium

By performing word segmentation and paragraph relationship reconstruction on the query, the generated manuscript summary solves the problem of the summary not being consistent with the central meaning of the article in the existing technology, and achieves summary generation with controllable readability and word count.

CN114661892BActive Publication Date: 2026-11-27CHINA ECONOMIC INFORMATION SERVICE
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210298879.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-25
Publication Date
2026-11-27
Estimated Expiration
2042-03-25

AI Technical Summary

Technical Problem

Existing abstract generation methods cannot accurately generate abstracts that are linked to the central idea of ​​the article according to user needs, and extractive abstract generation methods lack semantic information.

Method used

By segmenting the query provided by the user, the manuscripts containing the keywords are extracted as the target manuscripts, and the sentences are reconstructed and merged according to the paragraph relationships to generate a manuscript summary.

Benefits of technology

The generated abstracts are more closely aligned with the central idea of ​​the article, improving readability and word count controllability, thus meeting user needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114661892B_ABST
    Figure CN114661892B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a method for generating a manuscript summary, comprising: performing word segmentation on a current obtained query to obtain keywords in the query. Based on the keywords, extracting from a database a manuscript containing entity words related to the keywords as a hit manuscript. For each hit manuscript, extracting sentences containing keywords related to the keywords according to paragraph distribution as to-be-merged sentences, and determining the paragraph relationship of each to-be-merged sentence. The step of merging and reconstructing the to-be-merged sentences with paragraph relationships to obtain paragraph sentences, and the to-be-merged sentences without paragraph relationships are separately taken as a paragraph sentence. Merge each paragraph sentence according to the order to obtain a manuscript summary. The present disclosure is applicable to retrieving news manuscripts in a database according to a query provided by a user and forming a manuscript summary according to keywords and paragraph relationships from the retrieved manuscripts. The formed summary can be more consistent with the central meaning of the article, and has strong readability and controllable word count.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of abstract generation methods, and in particular to a method, apparatus, device and storage medium for generating manuscript abstracts. Background Technology

[0002] There are two main types of existing abstract generation methods: static and dynamic. Static abstracts generate a pre-defined summary of the article, focusing on its central idea. However, their drawback is the inability to find relevant information based on the user's desired content. Dynamically generated abstracts, on the other hand, rely entirely on the user-provided query and fail to fully express the article's central idea. Both static and dynamic abstract generation methods can employ extractive abstraction techniques. However, extractive abstraction primarily considers word frequency and lacks sufficient semantic information, thus failing to establish complete semantic information within paragraphs.

[0003] Therefore, how to accurately generate manuscript abstracts that meet user needs and are linked to the central idea of ​​the article has become a problem that urgently needs to be solved by those skilled in the art. Summary of the Invention

[0004] In view of this, this disclosure proposes a method, apparatus, device, and storage medium for generating abstracts of manuscripts, which generates abstracts of manuscripts from a database based on a query provided by a user.

[0005] According to one aspect of this disclosure, a method for generating manuscript abstracts is provided, comprising:

[0006] The currently obtained query is segmented into words to obtain the keywords in the query;

[0007] Based on the keywords, manuscripts containing entity words from the keywords are extracted from the database as the matched manuscripts;

[0008] For each of the matched manuscripts, the sentences containing the keywords are extracted according to the paragraph distribution as sentences to be merged, and the paragraph relationship of each sentence to be merged is determined.

[0009] Reconstruct and merge statements that are related to paragraphs to obtain paragraph statements, and separate statements that are not related to paragraphs into individual paragraph statements.

[0010] The paragraphs and sentences are combined in order to construct the manuscript abstract.

[0011] In one possible implementation, when performing word segmentation on the currently obtained query, the processing is based on a pre-built vocabulary.

[0012] In one possible implementation, when performing word segmentation on the currently acquired query based on a pre-built vocabulary, the process includes:

[0013] Determine if the query contains a word recorded in the vocabulary;

[0014] Words recorded in the dictionary in the query are not segmented.

[0015] In one possible implementation, when extracting manuscripts containing entity words from the database based on the keywords as the matched manuscripts, the process includes:

[0016] Part-of-speech prediction is performed on each of the keywords to obtain the part-of-speech of each keyword;

[0017] Based on the part-of-speech of each keyword, determine the entity words in the keywords;

[0018] Based on the identified entity words, all manuscripts containing the entity words are extracted from the database as the matched manuscripts.

[0019] In one possible implementation, after extracting the manuscripts containing entity words from the keywords from the database as the hit manuscripts, the process further includes: sorting the extracted hit manuscripts.

[0020] In one possible implementation, when sorting the extracted hit manuscripts, they are sorted according to a pre-set sorting rule;

[0021] The sorting rules are as follows: manuscripts that match all function words and content words, manuscripts that match content words, manuscripts that match some function words and content words, and manuscripts that match some content words.

[0022] In one possible implementation, when merging and reconstructing the paragraph statements that have paragraph relationships according to the corresponding paragraph relationships to obtain the paragraph statements, the following steps are included:

[0023] The statements to be merged are compressed, and the compressed statements with paragraph relationships are then reconstructed and merged by fitting them into the corresponding paragraph relationship sentence structures.

[0024] In one possible implementation, after merging the paragraphs in sequence to construct the manuscript abstract, the method further includes:

[0025] The generated abstracts of the manuscripts are arranged in the order of the matched manuscripts.

[0026] According to another aspect of this application, a manuscript abstract generation device is provided, comprising:

[0027] processor;

[0028] Memory used to store processor-executable instructions;

[0029] The processor is configured to implement the method of any one of claims 1 to 8 when executing the executable instructions.

[0030] According to another aspect of this application, a non-volatile computer-readable storage medium is provided, on which computer program instructions are stored, characterized in that the computer program instructions, when executed by a processor, implement the method described in any one of claims 1 to 8.

[0031] According to another aspect of this disclosure, a non-volatile computer-readable storage medium is provided that stores computer program instructions thereon, wherein the computer program instructions, when executed by a processor, implement the above-described method.

[0032] This disclosure applies to retrieving news articles from a database based on a user-provided query and generating article summaries from the retrieved articles according to keywords and paragraph relationships. By segmenting the retrieved query into words to obtain keywords, all articles in the database containing these keywords are considered hit articles, ensuring the retrieved articles better meet user needs. Sentences containing keywords in the hit articles are then extracted as sentences to be merged. These sentences are then merged and reconstructed according to their corresponding paragraph relationships to obtain paragraph sentences. Sentences without paragraph relationships are treated as separate paragraph sentences. These paragraph sentences are then merged sequentially to construct the article summary, making the resulting summary more closely aligned with the central idea of ​​the article, highly readable, and with a controllable word count. Finally, the titles of all hit articles and their corresponding summaries are displayed on the front end.

[0033] Other features and aspects of this application will become clear from the following detailed description of exemplary embodiments with reference to the accompanying drawings. Attached Figure Description

[0034] The accompanying drawings, which are included in and form part of this specification, illustrate exemplary embodiments, features, and aspects of this application together with the specification and serve to explain the principles of this application.

[0035] Figure 1 A flowchart illustrating a manuscript abstract generation method according to an embodiment of this disclosure is shown;

[0036] Figure 2 A schematic diagram of the main structure of a manuscript abstract generation device according to an embodiment of this disclosure is shown. Detailed Implementation

[0037] Various exemplary embodiments, features, and aspects of this disclosure will now be described in detail with reference to the accompanying drawings. The same reference numerals in the drawings denote elements that have the same or similar functions. Although various aspects of the embodiments are shown in the drawings, they are not necessarily drawn to scale unless specifically indicated otherwise.

[0038] The term “exemplary” as used herein means “serving as an example, embodiment, or illustration.” Any embodiment illustrated herein as “exemplary” is not necessarily to be construed as superior to or better than other embodiments.

[0039] Furthermore, to better illustrate this disclosure, numerous specific details are set forth in the following detailed description. Those skilled in the art will understand that this disclosure can be practiced without certain specific details. In some instances, methods, means, components, and circuits well known to those skilled in the art have not been described in detail in order to highlight the main points of this disclosure.

[0040] Figure 1 A flowchart illustrating a manuscript abstract generation method according to an embodiment of the present disclosure is shown. Figure 2 This diagram illustrates the main structural features of a manuscript abstract generation device according to an embodiment of the present disclosure. Figure 1 As shown, the manuscript abstract generation method includes: Step S100: Segmenting the currently acquired query to obtain keywords. Step S200: Based on the keywords, extracting manuscripts containing entity words from the database as hit manuscripts. Step S300: For each hit manuscript, extracting sentences containing keywords according to paragraph distribution as sentences to be merged, and determining the paragraph relationships of each sentence to be merged. Step S400: Merging and reconstructing sentences with paragraph relationships to obtain paragraph sentences, and keeping sentences without paragraph relationships as separate paragraph sentences. Step S500: Merging the paragraph sentences in order to construct the manuscript abstract.

[0041] This disclosure applies to retrieving news articles from a database based on a user-provided query and generating article summaries based on keywords and paragraph relationships. By segmenting the retrieved query to obtain keywords, all articles in the database containing these keywords are identified as matching articles, ensuring the retrieved articles better meet user needs. Sentences containing keywords in the matching articles are then extracted as sentences to be merged. These sentences are then merged and reconstructed according to their corresponding paragraph relationships to obtain paragraph sentences. Sentences without paragraph relationships are treated as separate paragraph sentences. These paragraph sentences are then merged sequentially to construct the article summary, ensuring the summary closely reflects the central idea of ​​the article, is highly readable, and has a controllable word count. Finally, the titles of all matching articles and their corresponding summaries are displayed on the front end.

[0042] In one possible implementation, when performing word segmentation on the currently acquired query, it can be based on a pre-built vocabulary. Compared to traditional word segmentation vocabulary, the vocabulary used in this disclosure includes news field terms and other relevant terms, making the word segmentation of the query more compatible with news articles in the database.

[0043] In one possible implementation, when performing word segmentation on the currently acquired query based on a pre-built vocabulary, the process includes: determining whether any words in the query are recorded in the vocabulary. Words in the query that are recorded in the vocabulary are not segmented. The vocabulary used for segmenting the query can be constructed using conventional techniques in the art, and will not be elaborated upon here.

[0044] Here, it should be noted that after segmenting the query, the segmented words are divided into stop words and non-stop words according to the stop word list. Then, using the masking mechanism of the BERT model, the non-stop words are masked in turn and predicted. If the edit distance between the predicted word and the segmented non-stop word is less than or equal to the preset number of characters, or if the segmented non-stop word has similar words in the pre-built vocabulary, then the segmented non-stop word is the keyword.

[0045] For example, after segmenting the query, we get words A, B, C, D, and E. Words A, C, and D are identified as non-stop words, while words B and E are stop words, based on a stop word list. Then, using the BERT model's masking mechanism, we predict the non-stop words (A, C, and D) sequentially, obtaining predicted words A', C', and D' respectively. Next, we calculate the edit distances between A and A', C and C', and D and D'. When the calculated edit distance is less than or equal to a preset number of characters, the non-stop words with edit distances less than or equal to the preset number of characters are identified as keywords. For example, in this embodiment, when the calculated edit distances between A and A' and C and C' are less than or equal to the preset number of characters, we can determine that both A and C are keywords. The masking mechanism of the BERT model is a standard technique in this field and will not be elaborated here.

[0046] Furthermore, in the above possible implementation methods, when determining whether each word obtained after word segmentation is a keyword, it can also be achieved by checking whether there are corresponding similar words in a pre-built vocabulary. That is, after dividing the words A, B, C, D, and E obtained after word segmentation into stop words and non-stop words, the pre-built vocabulary is then searched to see if there are similar words corresponding to each non-stop word (i.e., words A, C, and D). If there are corresponding similar words, the non-stop word is determined to be a keyword; if there are no similar words, the non-stop word is determined to be a non-keyword.

[0047] For example, words A, C, and D are compared sequentially from a pre-built vocabulary list to determine their similarity. Words with a similarity value greater than or equal to a preset threshold are considered similar words. In this embodiment, if the pre-built vocabulary list contains word 'a' with a similarity value greater than or equal to the preset threshold for word A, and word 'c' with a similarity value greater than or equal to the preset threshold for word C, then words A and C can be determined to be keywords.

[0048] The stop word list can be flexibly selected based on actual usage or user preferences; no restrictions are imposed here.

[0049] It should also be noted that when determining whether a non-stop word is a keyword based on the edit distance between the predicted word and the segmented non-stop word, and whether the segmented non-stop word has similar words in the pre-built vocabulary, the following steps can be taken: First, check if there are similar words in the pre-built vocabulary. If similar words are found, the edit distance calculation is not performed again, and the non-stop word is directly treated as a keyword. If no similar words are found in the pre-built vocabulary, then the edit distance between the predicted word and the stop word is calculated. If the calculated edit distance is less than or equal to a preset number of characters, the non-stop word is determined to be a keyword. If the calculated edit distance is greater than the preset number of characters, the non-stop word is treated as not a keyword.

[0050] Those skilled in the art will understand that edit distance can be calculated by determining how many characters a predicted word needs to be modified to become its corresponding non-stop word. That is, edit distance refers to the number of characters that need to be modified when a predicted word is converted into its corresponding non-stop word. In other words, if a predicted word can be converted into its corresponding non-stop word by modifying just one character, then the edit distance between the two is 1.

[0051] It should also be noted here that when the edit distance between the predicted word and the segmented non-stop word is 0, the non-stop word is determined to be a keyword. That is, in this embodiment, the preset number of characters can be set to a range of 0-2, preferably 1.

[0052] Furthermore, the calculation of the edit distance between the predicted words and the corresponding non-stop words can be achieved using common techniques in this field, which will not be elaborated here.

[0053] It should be noted that when determining whether there are similar words in the pre-constructed vocabulary for the identified non-stop words, the following method can be used: Compare the similarity between the non-stop words and the words in the pre-constructed vocabulary to obtain a similarity value between each non-stop word and the words in the vocabulary. Then, determine whether each non-stop word is similar to a word in the vocabulary based on the obtained similarity value.

[0054] When comparing the similarity of each non-stop word with words in a pre-built vocabulary, a one-by-one comparison can be used, or words with the same character count as each non-stop word can be extracted from the vocabulary first, and then the similarity of each non-stop word with the extracted words with the same character count can be compared sequentially. During the similarity comparison process, when a similarity value is greater than or equal to a preset threshold, it is directly determined that the non-stop word has a similar word in the pre-built vocabulary.

[0055] In one possible implementation, the preset threshold value can be flexibly set according to actual usage or user preferences. For example, the preset threshold value can be set to a range of 0.7 to 0.95, and preferably, the preset threshold value can be set to 0.87.

[0056] It should also be noted that when comparing the similarity of each non-stop word with each word in the pre-constructed vocabulary, conventional similarity comparison techniques in this field can be used, which will not be elaborated here.

[0057] After extracting keywords from the user-input query, part-of-speech (POS) detection can be performed to classify the keywords into entity words and function words. One possible implementation is to use a CRF model trained on a corpus to predict the POS of the keywords, thus classifying them into entity words and function words. Here, those skilled in the art will understand that entity words refer to words with actual meaning, while function words are words that connect sentences within a paragraph, making the paragraph more coherent. The CRF model is a log-linear model; training the CRF model involves learning the parameters that maximize the conditional probability based on the training data. Then, given a known sentence but with unknown annotations, the model infers the most likely POS for each word, finding the optimal set and determining their POS.

[0058] After dividing keywords into entity words and function words using any of the above methods, manuscript extraction can be performed. In one possible implementation, when extracting manuscripts from the database based on keywords, the manuscripts containing each entity word obtained from the division can be extracted as the target manuscripts.

[0059] In other words, in the method of this application embodiment, when extracting manuscripts from the database as target manuscripts, firstly, part-of-speech prediction is performed on each keyword to obtain the part-of-speech of each keyword. Based on the part-of-speech of each keyword, entity words in the keywords are determined. Based on the determined entity words, all manuscripts containing the entity words are extracted from the database as target manuscripts, making the target manuscripts in the database more in line with user needs.

[0060] It's important to clarify here that when articles containing entity words are extracted from the database as matching articles, the extracted articles include: articles containing all entity words, and articles containing only some entity words. In other words, any article stored in the database that contains even one of the entity words can be considered a matching article.

[0061] After extracting all the matched articles, they are then sorted. One possible implementation involves extracting articles containing entity words from the keywords from the database, followed by sorting the extracted matched articles according to their relevance to the input query. This sorting makes searching more convenient for users.

[0062] In one possible implementation, the extracted articles are sorted according to a pre-set sorting rule. This rule is as follows: articles matching all virtual and entity words, articles matching all entity words, articles matching some virtual and entity words, and articles matching some entity words. The articles are then sorted according to their relevance, further facilitating user retrieval.

[0063] It should be noted here that for articles with the same matching criteria, they are sorted by publication date. That is, among articles that match all virtual and entity words, they are further sorted by publication date. Similarly, among articles that match all entity words, they are also sorted by publication date, and so on.

[0064] After sorting all the winning manuscripts, the sentences to be merged and the sentences to form paragraphs can be extracted from each manuscript. The paragraphs are then arranged in order to form the manuscript abstract. When extracting sentences to be merged from each winning manuscript, the extracted sentences are those containing keywords. The extraction of sentences to be merged is performed according to the paragraph distribution. Furthermore, extracting sentences containing keywords from the manuscripts as sentences to be merged can be achieved using common techniques in this field, which will not be elaborated upon here.

[0065] After extracting sentences containing keywords from the manuscript as the sentences to be merged, the sentences to be merged can be reconstructed and merged. In the method of this application embodiment, the reconstruction and merging can be performed according to the paragraph relationship between the sentences to be merged.

[0066] Specifically, when merging and reconstructing sentences with paragraph relationships into paragraph sentences according to the corresponding paragraph relationships, the process includes: compressing the sentences to be merged, and then reconstructing and merging the compressed sentences according to the corresponding paragraph relationship sentence structure to generate a sentence.

[0067] One approach to compressing the sentences to be merged is to use a language model. That is, the language model determines whether each sentence needs compression, and if compression is required, it is applied directly to shorten the sentence length. It's important to note that the determination of whether to compress a sentence can be achieved by comparing its character count with a preset character count. If the character count is greater than or equal to the preset character count, compression is required. If the character count is less than the preset character count, compression is not required. In one possible implementation, the preset character count can be flexibly set according to the actual situation, such as based on the total number of characters in the summary to be generated. Generally, the preset character count can be set to 5-8.

[0068] When reconstructing and merging compressed statements according to their corresponding paragraph relationships, it is necessary to determine the paragraph relationships between the statements to be merged. Here, it should be clarified that determining the paragraph relationships refers to identifying the paragraph relationships between adjacent statements belonging to the same paragraph. Furthermore, in one possible implementation, a classification model can be used to determine the paragraph relationships between adjacent statements. Preferably, the classification model is based on the BERT model and LSTM model, which are common techniques in this field and will not be elaborated upon here.

[0069] The paragraph relationships include at least one of the following: general-to-specific, parallel, causal, sequential, adversative, and no relationship. Furthermore, paragraph relationships can be categorized using a classification model. Sentences belonging to the same paragraph and having a paragraph relationship are merged together to obtain the corresponding paragraph sentences (e.g., causal sentences are merged using the "because...therefore..." format, parallel sentences are merged using the "...and..." format). Sentences without a paragraph relationship are arranged according to the order of their respective paragraphs. Compressed paragraph sentences belonging to the same paragraph and sentences without a paragraph relationship are arranged sequentially according to their order in the target manuscript. The remaining paragraphs in the target manuscript are processed in the same way. Then, the compressed paragraph sentences and sentences without a paragraph relationship are arranged sequentially according to their order in the target manuscript to obtain the manuscript abstract, which effectively connects to the central idea of ​​the article.

[0070] It's important to note here that when using a classification model to classify relationships, if the confidence score of all relationships does not exceed a threshold, then the relationship is considered nonexistent. The classification model obtains the confidence scores for the paragraph relationships mentioned above. The minimum confidence score for these paragraph relationships is pre-determined using a test set. If the confidence score exceeds this pre-set value, the paragraph is considered to contain a corresponding paragraph relationship; otherwise, it is considered nonexistent. If no relationship is matched, it is considered nonexistent.

[0071] It should be noted here that language models and syntactic analysis models are used to compress and reconstruct the statements to be merged. To compress the statements to be merged into a single sentence, the statements to be merged that have paragraph relationships can be inserted into the original paragraph relationship sentence structure (e.g., cause-and-effect relationship, because...therefore...) to reconstruct the statements to be merged. If there is only one statement to be merged, then the sentence is not changed.

[0072] It should also be noted that when refactoring and merging statements with paragraph relationships, one approach is to refactor and merge according to the paragraph structure corresponding to the paragraph relationship, while another approach is to directly merge the statements with paragraph relationships into a single sentence. In one possible implementation, for both refactoring and merging methods, the PPL value of the statements to be refactored and merged can be calculated, and the refactoring and merging method for statements with paragraph relationships can be determined based on the magnitude of the PPL value. For example, the refactoring and merging method with the lower PPL value can be selected for refactoring and merging statements with paragraph relationships.

[0073] For example, in one section of the extracted hit manuscript A, the sentences to be merged are extracted based on keywords, resulting in: sentence a to be merged, sentence b to be merged, sentence c to be merged, sentence d to be merged, sentence e to be merged, and sentence f to be merged.

[0074] After compressing the statements to be merged, each statement is compared with its adjacent statements to determine their paragraph relationships. For example, statement a is compared with statement b, statement b with statement c, statement c with statement d, and so on, to obtain the paragraph relationships between adjacent statements within the same paragraph.

[0075] For example: it is determined that statements to be merged a and b are causally related and statements to be merged b and c are parallel; statements to be merged c and d are unrelated; statements to be merged d and e are adversative; and statements to be merged e and f are unrelated.

[0076] Next, insert the statements to be merged, a, b, and c, into the template sentence structure "because...therefore...and...". Use the BERT model to calculate the PPL value (probability distribution of the entire sentence) of the statements to be merged directly without using the template sentence structure (a.b.c.), and the PPL value of the statements to be merged using the template sentence structure (because a.therefore b.and c.). Take the merging method with the smallest PPL value as paragraph A.

[0077] Insert the statements to be merged, d and e, into the "...but..." template sentence structure. Calculate the PPL value of d and e directly merging without the template sentence structure (d.e.) and the PPL value of merging with the template sentence structure (d but e.) using the BERT model. Select the merging method with the lowest PPL value as paragraph statement D. Retain the statement to be merged, f, as paragraph statement F.

[0078] Arrange paragraphs A, D, and F sequentially into a single paragraph to obtain a summary of one paragraph of the target manuscript A. Repeat this process for the other paragraphs in the target manuscript A to obtain summaries of each paragraph. Then, arrange and merge these summaries in paragraph order into a single paragraph to obtain the final summary of the target manuscript A.

[0079] After generating the manuscript abstracts, each abstract is displayed on the front end in a one-to-one correspondence with the title of the matched manuscript. In one possible implementation, after merging the paragraphs in order to construct the manuscript abstract, the process further includes: arranging the generated manuscript abstracts in the order of the matched manuscripts, so that the front end can display all the sorted manuscript titles and related content abstracts.

[0080] Furthermore, according to another aspect of this disclosure, a manuscript abstract generation device 200 is also provided. See also... Figure 2 The document summary generation device 200 of this disclosure includes a processor 210 and a memory 220 for storing executable instructions of the processor 210. The processor 210 is configured to implement any of the aforementioned document summary generation methods when executing the executable instructions.

[0081] It should be noted here that the number of processors 210 can be one or more. Furthermore, the document abstract generation device 200 of this embodiment may also include an input device 230 and an output device 240. The processors 210, memory 220, input device 230, and output device 240 can be connected via a bus or other means, without specific limitations here.

[0082] The memory 220, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and various modules, such as the program or module corresponding to the manuscript abstract generation method of this disclosure embodiment. The processor 210 executes various functional applications and data processing of the manuscript abstract generation device 200 by running the software program or module stored in the memory 220.

[0083] Input device 230 can be used to receive input digital numbers or signals. These signals may include key signals related to user settings and function control of the device / terminal / server. Output device 240 may include a display device such as a screen.

[0084] According to another aspect of this disclosure, a non-volatile computer-readable storage medium is also provided, on which computer program instructions are stored, which, when executed by processor 210, implement any of the preceding manuscript abstract generation methods.

[0085] The various embodiments of this disclosure have been described above. These descriptions are exemplary and not exhaustive, and are not limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principles, practical applications, or technical improvements to the technology in the market, or to enable others skilled in the art to understand the embodiments disclosed herein.

Claims

1. A method for generating manuscript abstracts, characterized in that, include: The currently obtained query is segmented into words to obtain the keywords in the query; The process of segmenting the currently acquired query to obtain keywords includes: after segmenting the query, dividing the segmented words into stop words and non-stop words according to a stop word list; then using the masking mechanism of the BERT model, masking the non-stop words in turn and making predictions; if the edit distance between the predicted word and the segmented non-stop word is less than or equal to a preset number of characters, or if the segmented non-stop word has similar words in a pre-constructed vocabulary, then the segmented non-stop word is a keyword; the edit distance can be calculated by calculating how many characters need to be modified for the predicted word to become its corresponding non-stop word; that is, the edit distance refers to the number of characters modified when the predicted word is converted into its corresponding non-stop word. Based on the keywords, manuscripts containing entity words from the keywords are extracted from the database as the matched manuscripts; For each of the matched manuscripts, sentences containing the keywords are extracted according to paragraph distribution as sentences to be merged, and the paragraph relationships of each sentence to be merged are determined. In determining the paragraph relationships of each sentence to be merged, a classification model is used to confirm adjacent sentences. When using the classification model to classify relationships, the model can obtain the confidence level of each paragraph relationship. The minimum confidence level value for these paragraph relationships is determined beforehand using a test set. If the confidence level exceeds this preset confidence level value, the paragraphs are considered to have a corresponding paragraph relationship; otherwise, they are considered to have no relationship. If no relationship is matched, it is considered to have no relationship. Reconstruct and merge statements that are related to paragraphs to obtain paragraph statements, and separate statements that are not related to paragraphs into individual paragraph statements. When reconstructing and merging sentences with paragraph relationships, one approach is to reconstruct and merge them according to the paragraph sentence structure corresponding to the paragraph relationship, while another approach is to directly merge the sentences with paragraph relationships into one sentence. For the two reconstructing and merging methods mentioned above, the PPL value of the reconstructed and merged sentences is calculated, and the reconstructing and merging method with the smaller PPL value is selected for reconstructing and merging sentences with paragraph relationships. The paragraphs and sentences are combined in order to construct the manuscript abstract.

2. The method according to claim 1, characterized in that, When performing word segmentation on the currently obtained query, the processing is based on a pre-built vocabulary.

3. The method according to claim 2, characterized in that, When performing word segmentation on the currently obtained query based on a pre-built vocabulary, the process includes: Determine if the query contains a word recorded in the vocabulary; Words recorded in the dictionary in the query are not segmented.

4. The method according to claim 1, characterized in that, When extracting manuscripts containing entity words from the database based on the keywords as the matched manuscripts, the process includes: Part-of-speech prediction is performed on each of the keywords to obtain the part-of-speech of each keyword; Based on the part-of-speech of each keyword, determine the entity words in the keywords; Based on the identified entity words, all manuscripts containing the entity words are extracted from the database as the matched manuscripts.

5. The method according to claim 1, characterized in that, After extracting the manuscripts containing entity words from the keywords from the database as the hit manuscripts, the process further includes: sorting the extracted hit manuscripts.

6. The method according to claim 5, characterized in that, When sorting the extracted hit manuscripts, they are sorted according to a pre-set sorting rule; The sorting rules are as follows: manuscripts that match all function words and content words, manuscripts that match content words, manuscripts that match some function words and content words, and manuscripts that match some content words.

7. The method according to claim 6, characterized in that, When merging and reconstructing the statements to be merged that have paragraph relationships according to the corresponding paragraph relationships to obtain the paragraph statements, the following is included: The statements to be merged are compressed, and the compressed statements with paragraph relationships are then reconstructed and merged by fitting them into the corresponding paragraph relationship sentence structures.

8. The method according to claim 5, characterized in that, After merging the paragraphs and sentences in order to construct the manuscript abstract, it also includes: The generated abstracts of the manuscripts are arranged in the order of the matched manuscripts.

9. A manuscript abstract generation device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to implement the method of any one of claims 1 to 8 when executing the executable instructions.

10. A non-volatile computer-readable storage medium storing computer program instructions thereon, characterized in that, When the computer program instructions are executed by the processor, they implement the method described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Method and equipment for generating abstracts of searching results

    CN102163229A

  • Index building method, searching method and searching result sorting method and corresponding device

    CN102737039A

  • Abstract text generation method and device, storage medium and computer device

    CN110069623A