Correlation information extraction method and device, equipment, medium and computer program product

By constructing a logical structure tree and preprocessing documents, and using the BERT model to expand questions and conduct multi-dimensional evaluation, the problem of inaccurate information extraction in digital construction was solved, and more practical digital construction was achieved.

CN118861245BActive Publication Date: 2026-11-24CHINA MOBILE GROUP DESIGN INST +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410959498.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2026-11-24
Estimated Expiration
2044-07-17

AI Technical Summary

Technical Problem

The current digital infrastructure development suffers from inaccurate and incomplete information extraction, leading to time-consuming and labor-intensive data analysis that is detached from reality and fails to effectively address the issues of knowledge fragmentation and difficulty in reuse.

Method used

By constructing a thought logic structure tree, a set of questions is generated based on grammatical templates. Through document preprocessing and information association extraction, target structured data is generated. The BERT model is used to expand questions and extract answers. Combined with multi-dimensional evaluation methods, more relevant and related information is generated.

Benefits of technology

It enables more accurate and comprehensive digital construction, improves the reliability and completeness of information extraction, provides strong guidance, and can better meet the digital construction needs of enterprises and institutions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118861245B_ABST
    Figure CN118861245B_ABST
Patent Text Reader

Abstract

This invention provides a method, apparatus, device, medium, and computer program product for extracting related information. The method includes: constructing a thought logic structure tree based on business information and a related data dictionary of a target business scenario; mapping a set of target questions generated based on grammar templates to nodes in the thought logic structure tree; generating target structured data based on the question set and preprocessed document structured data; the target structured data includes question-answer pairs and structure tree nodes; receiving an application extension task, driving the target structured data corresponding to the application extension task, and extracting the related information of the application extension task. This invention, through the construction of a thought logic structure tree, document preprocessing, question generation, and information association extraction, fully utilizes the business information and related data dictionary of the target business scenario to supplement and expand the thought logic structure tree. It provides more guidance for the digital construction of enterprises and can achieve more practical and accurate comprehensive digital construction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of information technology, and in particular to a method, apparatus, device, medium, and computer program product for extracting related information. Background Technology

[0002] With the development of digitalization, more and more enterprises are investing in their digital transformation. The biggest influencing factor in digital transformation is the complex nature of their business operations. Currently, artificial intelligence (AI) and web scraping technologies are used to obtain the data and ideas needed for digital transformation, and then information is extracted and analyzed manually. However, this approach suffers from problems such as a superficial, incomplete, and impractical approach to digital transformation, and data analysis is time-consuming and labor-intensive. It also fails to address the issues of scattered and difficult-to-reuse knowledge in digital transformation. Summary of the Invention

[0003] This invention provides a method, apparatus, device, medium, and computer program product for extracting related information, in order to solve the shortcomings of existing digital construction technologies that are not accurate and comprehensive enough, and to achieve more practical and comprehensive digital construction.

[0004] This invention provides a method for extracting related information, comprising the following steps.

[0005] A logical structure tree is constructed based on business information and related data dictionaries of the target business scenario. Map the set of target questions generated based on grammar templates to the nodes of the thought logic structure tree; Target structured data is generated based on the set of questions and the preprocessed structured data of the document; the target structured data includes question-answer pairs and tree structure nodes; Receive application extension tasks, drive the target structured data corresponding to the application extension tasks, and extract the associated information of the application extension tasks.

[0006] According to the method for extracting related information provided by the present invention, the construction of a logical structure tree based on business information and related data dictionaries of the target business scenario includes: Based on the pre-defined tree structure syntax rules, as well as the question generation templates and information extraction rules for determining associations, an associated data dictionary is generated. Parse the associated data dictionary to obtain the scenario information and business information of the target business scenario; An ordered logical structure tree is constructed based on the scenario information; the scenario information includes processes, tasks, architecture, and metrics. The business information is associated with the ordered logical structure tree to obtain the thought logic structure tree.

[0007] According to the method for extracting related information provided by the present invention, the step of mapping the set of target questions generated based on grammar templates to the nodes of the thought logic structure tree includes: The nodes and levels of the aforementioned thought logic structure tree are parsed, and the parsing results are associated with a grammar template to generate the original question. The original question is randomly masked to obtain the masked question; Predict the masked questions to generate a new set of questions; The similarity between the new set of questions and the original set of questions is calculated, and a target set of questions is generated based on the similarity calculation results.

[0008] According to a method for extracting related information provided by the present invention, the step of generating target structured data based on the question set and document preprocessing structured data includes: Based on the task identifier of the information association extraction task, determine the logical structure tree information and the first question set corresponding to the information association extraction task; The matching document is determined based on the logical structure tree information; Based on the first set of questions and the matching documents, a question-answering task is generated, and the target structured data corresponding to the question-answering task is determined.

[0009] According to a method for extracting related information provided by the present invention, the step of generating target structured data based on the question set and document preprocessing structured data includes: The node hierarchy of the thought logic structure tree is determined based on the target structured data; Based on the target structured data, determine the entity relationships for extracting related information; A knowledge graph is constructed based on the node hierarchy and entity relationships; the knowledge graph is used for question-and-answer tasks.

[0010] According to a method for extracting related information provided by the present invention, the method further includes: A collection of documents to be processed is generated based on the local knowledge base; The target documents corresponding to the document set to be processed are sequentially subjected to paragraph reading, noise reduction and sentence segmentation to obtain a sentence set; Semantic feature extraction is performed on the sentence set to obtain a feature vector set; Based on the paragraph extraction results, the sentence set, and the feature vector set, preprocessed structured data for the document is generated.

[0011] The present invention also provides a device for extracting related information, comprising the following modules: The thought logic structure tree construction module is used to construct a thought logic structure tree based on business information and related data dictionaries of the target business scenario. The node mapping module is used to map the set of target questions generated based on the grammar template to the nodes of the thought logic structure tree; The target structured data generation module is used to generate target structured data based on the question set and the preprocessed document structured data; the target structured data includes question-answer pairs and tree structure nodes; The association information extraction module is used to receive application extension tasks, drive the target structured data corresponding to the application extension tasks, and extract the association information of the application extension tasks.

[0012] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the associated information extraction method as described above.

[0013] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the associated information extraction method as described above.

[0014] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the associated information extraction method as described above.

[0015] The method, apparatus, device, medium, and computer program product for extracting related information provided by this invention, through the construction of a thought logic structure tree, document preprocessing, question generation, and information association extraction, fully utilizes the business information and related data dictionary of the target business scenario to supplement and expand the thought logic structure tree. This makes the target structured data generated through question and document preprocessing more instructive for the digital transformation of enterprises, enabling more practical and accurate digital transformation. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0017] Figure 1 This is one of the flowcharts illustrating the method for extracting related information provided by this invention.

[0018] Figure 2This is the second flowchart of the association information extraction method provided by the present invention.

[0019] Figure 3 This is a schematic diagram of the structure of the association information extraction device provided by the present invention.

[0020] Figure 4 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation

[0021] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0022] This invention combines the principles of Mutually Exclusive and Collectively Exhaustive (MECE) and the Open Group Architecture Framework (ToGAF) development methodology to subdivide and categorize the approaches and methods for planning, designing, and implementing digital construction work. These approaches are then extracted and transformed into logical structure tree expressions, data dictionaries, and rules. Based on these logical structure expressions and document preprocessing results, key modules such as question generation and expansion, and information association extraction utilize multiple Natural Language Processing (BLP) tasks (Bidirectional Encoder Representations from Transformers, BERT) to extract text and associate data according to the logical structure tree, data dictionary, and rules. The system structure, module functions, module principles, and interaction flow of this invention are described below.

[0023] The following is combined Figures 1-4 This invention describes the method, apparatus, device, medium, and computer program product for extracting related information.

[0024] Figure 1 This is one of the flowcharts illustrating the association information extraction method provided by the present invention, such as... Figure 1 As shown, the method includes the following: Step 100: Construct a logical structure tree based on business information and related data dictionaries for the target business scenario; The system structure of the association information extraction method provided by this invention mainly includes a basic module, a key module, a task engine, extended applications, and data storage. Among these, the key module is the crucial function for achieving information association extraction. This invention proposes a logical structure tree for digital construction work, combining practical experience, digital development trends and guidance, and other factors to construct an ordered logical structure tree of the entire process, tasks, architecture, and indicators of digital construction work. Based on this logical structure tree, information relevant to actual business needs is intelligently extracted and associated, providing users with comprehensive, in-depth, and practical guidance for digital construction.

[0025] Step 200: Map the set of target questions generated based on the grammar template to the nodes of the thought logic structure tree; Regarding the question generation and expansion module: Based on a grammatical template specific to the digital construction field and associated with nodes in the logical structure tree, it automatically generates original questions. The original questions are then masked using a specific random masking method, expanded according to a specified BERT model prediction task, and the original and expanded questions are combined into a question set, which is then mapped to nodes in the logical structure tree.

[0026] Step 300: Generate target structured data based on the question set and the preprocessed document structured data; the target structured data includes question-answer pairs and tree structure nodes; Regarding the information association and extraction module: Based on the question set and preprocessed structured document data, a question and paragraph data set is constructed. This set is then fed into a finely tuned BERT model question-and-answer task to obtain the associated answers. Next, using the multi-dimensional evaluation method specific to this invention, an optimal answer text set is generated. Finally, by associating question-and-answer pairs with nodes in the thought process structure tree, structured data is generated—the target structured data in this embodiment—and stored in a database.

[0027] Step 400: Receive the application extension task, drive the target structured data corresponding to the application extension task, and extract the associated information of the application extension task.

[0028] The task engine in this invention's system architecture receives task requests and drives the execution of corresponding tasks such as document preprocessing, question generation and expansion, and information association extraction. Based on the processing results of the basic and key modules, it can be expanded to include applications such as knowledge graphs, knowledge question answering, and online experts. The intermediate and result data generated by the system can be stored in the corresponding database.

[0029] This embodiment utilizes business information and related data dictionaries from the target business scenario to supplement and expand the thought logic structure tree through the construction of a thought logic structure tree, document preprocessing, question generation, and information association extraction. This makes the target structured data generated from the structured data through question generation and document preprocessing more instructive for the digital transformation of enterprises, enabling more practical and accurate digital transformation.

[0030] Figure 2 This is the second flowchart illustrating the method for extracting related information provided by this invention, as shown below. Figure 2 As shown, the method may further include: Step 110: Based on the preset tree structure syntax rules, as well as the question generation template and information extraction rules for determining the association, generate an association data dictionary; Step 120: Parse the associated data dictionary to obtain the scenario information and business information of the target business scenario; Step 130: Construct an ordered logical structure tree based on the scenario information; the scenario information includes processes, tasks, architecture, and metrics; Step 140: Associate the business information with the ordered logical structure tree to obtain the thought logic structure tree.

[0031] The specific process of constructing the thought logic structure tree is as follows: The logic structure tree construction function, based on business scenarios of digital construction, provides a visual function to add nodes and levels according to the pre-defined syntax rules of the logic structure tree. Users can input each node and level of the logic structure tree for digital construction online. Through attribute configuration, users can select related question generation templates and information extraction rules. Once the user completes the construction of the logic structure tree and the association of templates and other data, they can submit and save the changes.

[0032] Submitting and saving involves sending a logical structure data dictionary to the RESTful save interface of the business scenario module. The interface parses the logical structure tree dictionary, storing data such as the analysis object, business logic, nodes, and levels into a structure tree table, and storing related rules and templates into their respective relation tables. Following the syntax rules summarized in the field of digital construction, the above-mentioned question generation template is created using the custom template function in system management.

[0033] The template definition of Dict(t) is as follows: Dict(t) = {"template ID": "T1001", "templateName": "xxxx", "template Rule": "[adverbial]##${time}&&[subject]##${node.level 1}&&[predicate][subject category condition judgment = yes]##${node.level 2}&&[attributive][level 4 exists = yes]##${node.level 3}&&[object]##${node.level 4}&&?", "created By": "xxxx", ""create Time: "xxxx", "update Time": "xxxx", "desc": "xxxx", "belongs To": "xxxx", "domain": "xxxx"}.

[0034] Here, `template Rule` refers to the template expression rule; `template ID` is the template identifier; `templateName` is the target name; `template Rule` has a specific syntax structure, such as `${}` for variables, `&&` for word concatenation, `##` for part-of-speech tagging and word combination, `[xx]` for part-of-speech tagging, `[xx=xx]` for conditional judgment, and `xx.xx` for data acquisition space guidance. `created By` means "created from"; `create Time` means "created time"; `update Time` means "updated time"; `desc` means "description"; `belongs To` means "belongs to"; and `domain` means "domain". The associated question generation template will be used to generate corresponding questions in subsequent question generation and extension functions. Based on the entity relationships summarized in the field of digital construction, the above information extraction rules are created through the custom rule function in system management. The information extraction rules can provide rules for the generation of relationships in subsequent knowledge graph triples.

[0035] The information extraction rule definition Dict(r) is as follows: Dict(r) = {"rule ID": "R2001", "ruleName": "xxxx", "rule Type": "info To Extra", "rule Exp": "When ${content} contains ${node.level 2} and ${node.level 3}, the relation is ${relation.[node.level 2 && level 3]}", "created By": "xxxx", "create Time": "xxxx", "update Time": "xxxx", "desc": "xxxx", "belongs To": "xxxx", "domain": "xxxx"}.

[0036] In the above Dict(r), rule Type represents different business rule types; rule Exp represents the rule expression; and ${content} indicates that the text content extracted by the model will be used for replacement. To simplify the association operation, individual associations are only performed on the hierarchy when personalized rules or templates exist; otherwise, global association can be used to globally associate the analysis object and the target. After creating the logical structure tree, it can be published as multiple specified domains or a general logical structure tree using the publishing function of this module, depending on the actual situation. After successful publishing, the logical structure tree is saved to the results library to support the import of logical structure trees, enabling the rapid creation and adjustment of logical structure trees.

[0037] This embodiment provides guidance for digital construction by constructing a logical structure tree, which can guide the completion of accurate and comprehensive digital construction.

[0038] In one embodiment, the association information extraction method provided in this application may further include: Step 210: Analyze the nodes and levels of the thought logic structure tree, associate the analysis results with the grammar template, and generate the original question. Step 220: Perform random masking on the original question to obtain the masked question; Step 230: Predict the masked questions to generate a new set of questions; Step 240: Calculate the similarity between the new question set and the original questions, and generate a target question set based on the similarity calculation results.

[0039] The implementation process of the above question generation and expansion function module is as follows: When faced with a large amount of document content, readers typically approach reading with various questions in mind, aiming to understand the material and identify the relevant information. Different people may focus on different aspects of a document, meaning they may bring in different questions. By combining data augmentation techniques, we can construct guidelines for various tasks within a digital transformation framework that address multiple potential issues.

[0040] After generating the logical structure tree, a question generation and expansion process is provided. By parsing the nodes and hierarchical content of the logical structure tree, original questions are generated according to the grammatical template, and the questions are expanded using model tasks, providing richer and more multi-dimensional questions. This provides greater assurance for the subsequent information association extraction task to extract more comprehensive and complete content, improving the reliability, accuracy, and completeness of information association extraction, maximizing the use of local knowledge base information to enrich the logical structure tree, and making the logical structure tree more instructive for the thinking and approach of digitization.

[0041] First, the associated question generation template is obtained. The template rule expression in the template is extracted, and the template interpreter is called to parse the expression. The variable pointers in the expression are analyzed, and data such as nodes and levels are obtained from the tree structure table in the database. Dictionary conversion data is also obtained from the dictionary definition table in the database. The expression in the template is then rendered as the original plain text question. For example, in the question "Metadata management measures for data governance in 2023?", the time, data governance, and metadata management measures in the original question are obtained by the template interpreter extracting data from the expression.

[0042] To expand the question types, the original questions generated from the template are randomly masked to conceal one or more of the object, predicate, and adverbial phrases. The masked sentences are then fed into a fine-tuned BERT model for prediction, resulting in new questions. The dataset used for fine-tuning the BERT model is a large collection of questions related to digital construction work across multiple professional fields, constructed based on practical experience in digital construction and the principles and goals of reading relevant documents. Each question contains one or more keywords. In general, the basic scope of focus is first determined through the original questions, then a specific mask is used to preserve the basic scope of the sentence's content, and finally, the fine-tuned BERT model is used to predict new questions, replacing the mask with expanded words to make the sentences more professional and fully utilize professional knowledge and information.

[0043] Specifically, the random masking method combines dependency parsing, jieba word segmentation (a third-party Chinese word segmentation library), Pyltp (a natural language processing tool) part-of-speech tagging, and Bert-NER (a text classification network model) entity recognition to extract the object, predicate, and adverbial of the original question. After preprocessing the original question, a word segmentation list and word position indices of the subject, predicate, object, and adverbial are obtained. The length of the word segmentation list is determined, and the number of words to be replaced is decided based on the length of the word segmentation list. If the length is ≤5, only one group of words is masked and replaced. If the length is >5, one, two, or three groups of words are replaced, and the number of word groups replaced is less than the length of the word segmentation list minus the length of the subject and the relative clause. For example, the original question "2023 Measures for the Management of Metadata for Data Governance?", after masking and word replacement, becomes "2023 Measures for the Management of Metadata for [MASK][MASK][MASK][MASK]?". To reduce the occurrence of grammatical errors and other anomalies in the expanded questions, each group of words to be replaced can be replaced by 2, 4, 5, or 6 [MASK] pairs to generate multiple questions. The question set L(qm) generated by the random masking method is then substituted into the fine-tuned BERT model text prediction task. The text prediction task predicts the [MASK] positions and returns the word with the highest probability for replacement.

[0044] To fully account for dependencies, this method employs a stepwise prediction approach, predicting each [MASK] sequentially and using the prediction result to predict the next [MASK], until all [MASKs] are replaced. After traversing L(qm), a new question set L(qnew) is generated. L(qnew) is then compared with the original questions for similarity calculation, where the substituted sentence vector is a vector matrix containing context and all sentence features. To retain as many expanded questions as possible, expanded questions with similarity of 95% or higher are not used. After question generation and expansion, the question set is integrated with the logical structure tree nodes and hierarchical information, and the integrated data is inserted into the question association table in the database.

[0045] This embodiment uses a question generation and expansion function module to generate expanded questions that better meet professional knowledge requirements and correspond to more logical structure tree nodes that may be of interest, thereby supporting subsequent information association and extraction with more reliable and richer questions.

[0046] In one embodiment, the association information extraction method provided in this application may further include: Step 310: Based on the task identifier of the information association extraction task, determine the logical structure tree information and the set of first questions corresponding to the information association extraction task; Step 320: Determine the matching document based on the logical structure tree information; Step 330: Generate a question-answering task based on the first question set and the matching document, and determine the target structured data corresponding to the question-answering task.

[0047] The execution process of the above-mentioned task of extracting related information is as follows: Information association extraction is to extract the best answer from paragraph content through questions. In this embodiment, in addition to extracting the best answer from a specified paragraph, the answers extracted from a large number of documents will also be processed for importance determination and deduplication. That is, from the large amount of data preprocessed in the local knowledge base, the best answer in each document is obtained through questions, and then the multiple best answers are filtered through evaluation methods to avoid data redundancy and information interference.

[0048] During the execution of the information association extraction task, the logical structure tree information and the question set L(qf) corresponding to the task are first obtained based on the task identifier. Based on information such as the domain and category of the logical structure tree, a matching document set L(wes) is filtered from the database. A question-answering task is then generated based on L(qf) and L(wes). The questions are read, and the paragraphs of the read documents are traversed. These paragraphs are then substituted into the fine-tuned BERT model question-answering task. Based on the semantic feature vector of the question, the best answer and its position index are obtained, and the answer text is retrieved based on the index. The answer text matching the question is added to the set L(qa), and this process continues until the document traversal is complete.

[0049] To provide the most accurate set of answers that best meet the needs of digital construction work, the system combines multi-dimensional evaluation weights associated with a logical structure tree. The multi-dimensional evaluation weights W are as follows: W=[ωtime,ωposition,ωsource,ωimp,...], where ωtime represents the weight based on time; ωposition represents the weight based on paragraph position; ωsource represents the weight based on document source; and ωimp represents the weight based on document completeness. Specifically, the smaller the difference between the current time and the present time, the higher the weight; the more central the paragraph position, the higher the weight; the higher the weight if the document originates from planning and design, and the lower the weight if it originates from a press release; document completeness is determined by the document's structural hierarchy and the number of words at each level, with more levels and more words resulting in higher weights. Initial scores for time, position, and source (total score 100), along with the judgment rules and corresponding weight values, can be customized.

[0050] The system uses the obtained answer set L(qa) to perform a weighted average by substituting the answer set into a multi-dimensional evaluation. Specifically, it judges the time described in the answer, the position of the answer in the document, the source of the document corresponding to the answer, and the completeness of the document corresponding to the answer, and finally calculates the score P of the answer.

[0051] P is calculated as follows: ,in, The evaluation score matrix has multiple dimensions, and W is the weight matrix after system judgment. After calculation, answers with evaluation scores greater than a certain score (e.g., 80 points) are extracted and appended to the set L(answer). The length of L(answer) is checked. If the length is greater than 1, an abstract text summarization task based on the BertSUM model (a text summarization tool based on the pre-trained model BERT) is called to abstract the multiple answers and obtain the final answer summary.

[0052] The database question table is updated by integrating logical structure tree information, related questions, question scores, and corresponding answer summaries, and the question answers are saved. Then, the questions are sorted in descending order of score, and the three questions with the highest scores and their corresponding answer summaries are grouped together. The dictionary is reconstructed and saved to the database. The data generated in this step can be used for subsequent knowledge graph expansion and construction applications.

[0053] This embodiment extracts the best answer from a large amount of content in the local knowledge base by inputting questions into the model through information association. Then, it uses multi-dimensional evaluation weights to determine the source document, paragraph position, etc. of the best answer for answer filtering. Similar best answers but with lower evaluation scores are filtered out, effectively removing noisy information and improving data quality.

[0054] In one embodiment, the association information extraction method provided in this application may further include: Step 500: Determine the node hierarchy of the thought logic structure tree based on the target structured data; Step 600: Determine the entity relationships for the associated extraction information based on the target structured data; Step 700: Construct a knowledge graph based on the node hierarchy and entity relationships; the knowledge graph is used for question answering tasks.

[0055] This application also provides other extensions, as follows: After the information association and extraction task is completed, the task engine interface can be called to execute the knowledge graph construction task. On one hand, node-level relationship triples are generated based on the nodes and hierarchical relationships of the logical structure tree; on the other hand, entity relationships are extracted and entity relationship triples are constructed based on the extracted information. Then, the knowledge graph is built based on the node-level relationship triples and entity relationship triples. Based on the constructed knowledge graph, the knowledge question-and-answer function can be activated to realize online knowledge question-and-answer tasks. If the problem cannot be solved based on the logical structure tree and knowledge question-and-answer, online help can be provided through the online expert function.

[0056] This embodiment expands upon the existing methods for extracting related information, thereby achieving more accurate and comprehensive digital construction.

[0057] In one embodiment, the association information extraction method provided in this application may further include: Step 10: Generate a set of documents to be processed based on the local knowledge base; Step 20: Perform paragraph reading, noise reduction, and sentence segmentation on the target documents corresponding to the document set to be processed in sequence to obtain a sentence set; Step 30: Extract semantic features from the sentence set to obtain a feature vector set; Step 40: Based on the paragraph extraction results, the sentence set, and the feature vector set, generate document preprocessing structured data.

[0058] The execution process of the above document preprocessing task is as follows: The system for the association information extraction method provided by this invention offers a local knowledge base document upload operation for initializing and expanding the local knowledge base. Documents are uploaded according to multi-dimensional classifications, which distinguish the document's knowledge domain, scope, basic purpose, and whether it is incrementally updated. The document preprocessing task calls the task engine's task interface. If the interface confirms that the task is document preprocessing, it enters the document preprocessing logic branch, reads the records in the document table to be processed, and generates a list set L(w) of documents to be processed.

[0059] Concurrent tasks are generated based on the size of the L(w) set. These tasks request the corresponding documents from the file server, read the documents by paragraph, generate and record paragraph numbers, and then use regular expressions to replace spaces and special characters in the paragraphs to remove noise. The noise-removed paragraph text is then segmented into sentences to obtain a sentence set L(ws). L(ws) is then fed into a fine-tuned BERT model to extract sentence semantic feature vectors, generating a feature vector set L(rws). Finally, a document structure is generated based on document attributes: paragraph number - paragraph - sentence set L(ws) - feature vector set L(rws), and stored in the database.

[0060] This embodiment achieves automatic, accurate, and comprehensive knowledge content acquisition by combining document preprocessing with documents involved in digital construction.

[0061] The following describes the association information extraction device provided by the present invention. The association information extraction device described below and the association information extraction method described above can be referred to in correspondence.

[0062] Please refer to Figure 3 The present invention also provides an associated information extraction device, comprising: The thinking logic structure tree construction module 301 is used to construct a thinking logic structure tree based on business information and related data dictionaries of the target business scenario. The node mapping module 302 is used to map the set of target questions generated based on the grammar template to the nodes of the thought logic structure tree; The target structured data generation module 303 is used to generate target structured data based on the question set and the document preprocessing structured data; the target structured data includes question-answer pairs and tree structure nodes; The association information extraction module 304 is used to receive application extension tasks, drive the target structured data corresponding to the application extension tasks, and extract the association information of the application extension tasks.

[0063] Optionally, the thought logic structure tree construction module includes: The associated data dictionary generation unit is used to generate an associated data dictionary based on the preset tree structure syntax rules, as well as the question generation template and information extraction rules that determine the association. The associated data dictionary parsing unit is used to parse the associated data dictionary to obtain the scenario information and business information of the target business scenario; An ordered logical structure tree construction unit is used to construct an ordered logical structure tree based on the scenario information; the scenario information includes processes, tasks, architecture, and metrics. The thought logic structure tree construction unit is used to associate and mount the business information with the ordered logic structure tree to obtain the thought logic structure tree.

[0064] Optionally, the node mapping module includes: The original question generation unit is used to parse the nodes and levels of the thought logic structure tree, associate the parsing results with the grammar template, and generate original questions; A random masking processing unit is used to perform random masking processing on the original question to obtain a masked question; The question prediction unit is used to predict the masked questions and generate a new set of questions; The similarity calculation unit is used to calculate the similarity between the new question set and the original questions, and generate a target question set based on the similarity calculation results.

[0065] Optionally, the target structured data generation module includes: The first determining unit is used to determine the logical structure tree information and the first question set corresponding to the information association extraction task based on the task identifier of the information association extraction task. A matching document determination unit is used to determine a matching document based on the logical structure tree information; The target structured data generation unit is used to generate a question-and-answer task based on the first question set and the matching document, and to determine the target structured data corresponding to the question-and-answer task.

[0066] Optionally, the associated information extraction device further includes: The node hierarchy relationship determination module is used to determine the node hierarchy relationship of the thought logic structure tree based on the target structured data; The entity relationship determination module is used to determine the entity relationships for associated extraction information based on the target structured data; The knowledge graph construction module is used to construct a knowledge graph based on the node hierarchy and entity relationships; the knowledge graph is used for question answering tasks.

[0067] Optionally, the associated information extraction device further includes: The module for generating a collection of documents to be processed is used to generate a collection of documents to be processed based on a local knowledge base; The sentence set determination module is used to sequentially perform paragraph reading, noise reduction, and sentence segmentation on the target documents corresponding to the document set to be processed, so as to obtain a sentence set. The semantic feature extraction module is used to extract semantic features from the sentence set to obtain a feature vector set; The document preprocessing structured data generation module is used to generate document preprocessing structured data based on paragraph extraction results, the sentence set, and the feature vector set.

[0068] Figure 4 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 4 As shown, the electronic device may include a processor 410, a communications interface 420, a memory 430, and a communication bus 440, wherein the processor 410, communications interface 420, and memory 430 communicate with each other via the communication bus 440. The processor 410 can call logical instructions in the memory 430 to execute a method for extracting related information. This method includes: constructing a thought logic structure tree based on business information and a related data dictionary of the target business scenario; mapping a set of target questions generated based on grammar templates to nodes in the thought logic structure tree; generating target structured data based on the set of questions and preprocessed document structured data; the target structured data includes question-answer pairs and structure tree nodes; receiving an application extension task, driving the target structured data corresponding to the application extension task, and extracting the related information of the application extension task.

[0069] Furthermore, the logical instructions in the aforementioned memory 430 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0070] On the other hand, the present invention also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the association information extraction method provided by the above methods. The method includes: constructing a thought logic structure tree based on business information and an association data dictionary of the target business scenario; mapping a set of target questions generated based on a grammar template to nodes in the thought logic structure tree; generating target structured data based on the set of questions and preprocessed document structured data; the target structured data includes question-answer pairs and structure tree nodes; receiving an application extension task, driving the target structured data corresponding to the application extension task, and extracting the association information of the application extension task.

[0071] In another aspect, the present invention also provides a non-transitory computer-readable storage medium storing a computer program thereon. When executed by a processor, the computer program implements the association information extraction method provided by the above methods. The method includes: constructing a thought logic structure tree based on business information and an association data dictionary of a target business scenario; mapping a set of target questions generated based on a grammar template to nodes in the thought logic structure tree; generating target structured data based on the set of questions and preprocessed document structured data; the target structured data includes question-answer pairs and structure tree nodes; receiving an application extension task, driving the target structured data corresponding to the application extension task, and extracting the association information of the application extension task.

[0072] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0073] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0074] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for extracting related information, characterized in that, include: Based on the pre-defined tree structure syntax rules, as well as the question generation templates and information extraction rules for determining associations, an associated data dictionary is generated. Parse the associated data dictionary to obtain the scenario information and business information of the target business scenario; Construct an ordered logical structure tree based on the scenario information; The scenario information includes processes, tasks, architecture, and metrics; The business information is associated with the ordered logical structure tree to obtain the thought logic structure tree; Map the set of target questions generated based on grammar templates to the nodes of the thought logic structure tree; Target structured data is generated based on the set of questions and the preprocessed structured data of the document; The target structured data includes question-answer pairs and tree structure nodes; Receive application extension tasks, drive the target structured data corresponding to the application extension tasks, and extract the associated information of the application extension tasks.

2. The method for extracting related information according to claim 1, characterized in that, The nodes that map the set of target questions generated based on grammar templates to the thought logic structure tree include: The nodes and levels of the aforementioned thought logic structure tree are parsed, and the parsing results are associated with a grammar template to generate the original question. The original question is randomly masked to obtain the masked question; Predict the masked questions to generate a new set of questions; The similarity between the new set of questions and the original set of questions is calculated, and a target set of questions is generated based on the similarity calculation results.

3. The method for extracting related information according to claim 1, characterized in that, The generation of target structured data based on the question set and document preprocessing structured data includes: Based on the task identifier of the information association extraction task, determine the logical structure tree information and the first question set corresponding to the information association extraction task; The matching document is determined based on the logical structure tree information; Based on the first set of questions and the matching documents, a question-answering task is generated, and the target structured data corresponding to the question-answering task is determined.

4. The method for extracting related information according to claim 3, characterized in that, The step of generating target structured data based on the question set and document preprocessing structured data then includes: The node hierarchy of the thought logic structure tree is determined based on the target structured data; Based on the target structured data, determine the entity relationships for extracting related information; A knowledge graph is constructed based on the node hierarchy and entity relationships; the knowledge graph is used for question-and-answer tasks.

5. The method for extracting related information according to claim 1, characterized in that, The method for extracting related information further includes: A collection of documents to be processed is generated based on the local knowledge base; The target documents corresponding to the document set to be processed are sequentially subjected to paragraph reading, noise reduction and sentence segmentation to obtain a sentence set; Semantic feature extraction is performed on the sentence set to obtain a feature vector set; Based on the paragraph extraction results, the sentence set, and the feature vector set, preprocessed structured data for the document is generated.

6. A device for extracting related information, characterized in that, include: The thought logic structure tree construction module is used to generate an associated data dictionary based on the preset structure tree syntax rules, as well as the question generation templates and information extraction rules that determine the associations. Parse the associated data dictionary to obtain the scenario information and business information of the target business scenario; construct an ordered logical structure tree based on the scenario information; The scenario information includes processes, tasks, architecture, and metrics; the business information is associated with the ordered logical structure tree to obtain the thought logic structure tree; The node mapping module is used to map the set of target questions generated based on the grammar template to the nodes of the thought logic structure tree; The target structured data generation module is used to generate target structured data based on the question set and the document preprocessed structured data; The target structured data includes question-answer pairs and tree structure nodes; The association information extraction module is used to receive application extension tasks, drive the target structured data corresponding to the application extension tasks, and extract the association information of the application extension tasks.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the associated information extraction method as described in any one of claims 1 to 5.

8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the associated information extraction method as described in any one of claims 1 to 5.

9. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the associated information extraction method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Knowledge base-based fast construction method of common correlation information query tree

    CN102646111A

  • Question and answer pair automatic construction method based on document structure tree

    CN109977370A