Knowledge graph construction method and system for multi-source Chinese financial announcement documents

By constructing a multi-source Chinese knowledge graph in the financial field, it solves the problem of difficulty in obtaining redundant information and complex entity information in financial announcement documents, achieves efficient knowledge extraction and entity fusion, and provides risk decision support that can be used by small, medium and micro enterprises. .

CN113569054BActive Publication Date: 2024-10-18ZHEJIANG UNIV OF TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110517049.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-12
Publication Date
2024-10-18
Estimated Expiration
2041-05-12

AI Technical Summary

Technical Problem

There is a large amount of redundant information in announcement documents in the financial field, difficulty in obtaining entity information with complex structures, and difficulty in confirming entity boundaries, resulting in low efficiency in knowledge graph construction and difficulty in entity integration. There is a lack of Chinese financial knowledge graphs that can be used for small, medium and micro enterprises.

Method used

Use XML structure extraction or optical character recognition technology to build a document structure tree, mark valid titles through regular fuzzy matching, use BERT for character-level word embedding, combine with the BiLSTM-CRF model for title classification, and build a masked semantic model for knowledge extraction. The Levenshtein algorithm is used to complete entity fusion and stored in the Neo4j database to realize the construction and incremental update of the knowledge graph of multi-source financial announcement documents.

Benefits of technology

It improves the accuracy and efficiency of information extraction from financial announcement documents, reduces the impact of complex knowledge on contextual semantics, achieves accurate acquisition of entity relationships and incremental updates of knowledge graphs, reduces labor costs, and provides information that can be used for risk decision-making. Related information in the field.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113569054B_ABST
    Figure CN113569054B_ABST
Patent Text Reader

Abstract

The method for constructing a knowledge graph of multi-source Chinese financial announcement documents includes: structuring the hierarchical relationship of each chapter of the document and constructing a relatively complete document structure tree; annotating all title data; unifying the length of the title to a pre-set number of words, and using BERT to perform word embedding encoding at the character level to obtain the corresponding vector representation; dividing the processed data set into a training set and a test set, training, and obtaining a title classification model; using the title classification model to classify the document title; masking the complex and effective knowledge of the effective text block; constructing a multi-source similar generalized masked Bi-LSTM semantic model M-MST model with a mask, feeding the M-MST model training, and obtaining a knowledge extraction model; according to the knowledge extraction model, combined with an external knowledge base, obtaining entity relationship triples; constructing a knowledge graph of multi-source financial announcement documents and realizing incremental update or expansion. It also includes a system for implementing the method for constructing a knowledge graph of multi-source Chinese financial announcement documents.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a method and system for knowledge extraction and knowledge graph construction, and in particular to the extraction of complex entities in the financial field and the construction of a knowledge graph in the financial field.

[0002] The present invention relates to the fields of natural language, knowledge graph, deep learning, and more specifically to the field of modeling based on deep learning. Background Art

[0003] As the mainstay of China's economic development, the development of listed companies and innovative, small and medium-sized private enterprises that support economic growth is and will continue to face various challenges for a period of time. Production does not stagnate, development does not shift gears, and food and grass must be prepared first. The capital market is the granary for listed companies to replenish their "blood". At the beginning of this year, the new refinancing regulations issued by the China Securities Regulatory Commission were implemented, which greatly lifted the refinancing restrictions on listed companies, especially those on the Growth Enterprise Market. At the same time, the China Securities Regulatory Commission emphasized that it will continue to improve the daily supervision system of listed companies, strictly control the conditions for refinancing issuance of listed companies, and strengthen risk prevention and control measures such as information disclosure requirements for listed companies. This project intends to extract industry-significant information based on financial announcement texts from multiple sources (such as increase and decrease announcements, contract announcements, listing announcements, monthly and annual performance announcements, etc.), and construct a knowledge graph of financial announcement documents that can be automatically expanded incrementally, so as to provide certain support for relevant management agencies and researchers in risk analysis and early warning, management decision-making, model research, etc.

[0004] There are several problems in constructing the knowledge graph of financial announcement documents:

[0005] (1) Financial announcement documents contain a large amount of redundant and invalid information, making it relatively difficult to extract information.

[0006] (2) There are a large number of entities with complex structures in the financial field, which makes it difficult to obtain entity context information and confirm entity boundaries.

[0007] (3) In the construction of knowledge graphs in the financial field, there are entities with different names and entities need to be fused.

[0008] Knowledge Graph (KG), also known as scientific knowledge graph, is a very large-scale semantic network system that mines, analyzes, constructs, draws and displays a large amount of knowledge describing entities or concepts in the real world and their connections. Google first released the concept in 2012 to optimize its search function, and then various applications based on knowledge graph technology developed rapidly. Knowledge graph consists of two parts: data layer and schema layer. The data layer forms a graph knowledge base with triples consisting of "entity-relationship-entity" or "entity-attribute-attribute value". With the deepening of research and the accumulation of data, the recognition of named entities and the determination of their attributes have developed from dictionary and rule methods to fully supervised deep learning, semi-supervised deep learning and domain transfer learning. The schema layer provides the conceptual model and logical basis of the knowledge graph, regulates and constrains the data layer, and provides the ability to reason about knowledge. In the process of extracting entities (and attributes) from heterogeneous multi-source data to construct knowledge graphs, entity alignment and entity disambiguation are important steps. More and more companies or research institutions are committed to providing better services in the fields of medicine, biology, news, new media, etc. through knowledge graph technology. Industry or field knowledge graphs are oriented to specific fields and can perform knowledge reasoning, auxiliary analysis and decision support functions, such as the knowledge graph of Chinese medical records, the semantic network of Chinese medicine, the Chinese symptom database, the breast cancer knowledge graph, and Linked Life Data in the medical field; the urban knowledge graph based on CNSchema in the transportation field; the Shanghai Library celebrity manuscript archives linked open data set, the Chinese genealogy linked data set, and UMLS in the humanities field; the knowledge graph of Chinese tourist attractions in the tourism field; the bilingual knowledge graph of film and television in the film and television field, Linked Movie Dataset, etc. With the development of social economy, the scale of enterprise data has increased sharply, and the demand for how to effectively use this data in practical applications has gradually been exposed, especially the demand for enterprise risk analysis and prediction is very significant, but the knowledge graph in the field of Chinese finance, especially the field knowledge graph that can be provided to small and medium-sized enterprises, is still lacking. Therefore, this project intends to implement a knowledge graph and knowledge reasoning system for Chinese multi-source financial announcement documents that can be incrementally updated, providing related entities (enterprises or individuals, etc.) and event information in the field for risk decision-making and other practical application needs, thereby solving the problems of high cost, low efficiency, high threshold and low timeliness in enterprise risk prediction and analysis. Summary of the invention

[0009] The present invention aims to overcome the problem of the lack of knowledge graphs in the field of Chinese finance in the prior art, and provides a method and system for constructing a knowledge graph of multi-source Chinese financial announcement documents.

[0010] The knowledge graph construction method of multi-source Chinese financial announcement documents of the present invention comprises the following steps:

[0011] Step 1: Based on the format of the document data (xml / pdf), use xml structure extraction or optical character recognition (OCR) technology to structure the hierarchical relationship of each chapter of the document and build a relatively complete document structure tree (sessionTree).

[0012] Step 2: Mark all title data. Obtain the key information location through regular fuzzy matching, extract the title of the valid text block where the key information is located, mark it as a valid title, and mark the rest as invalid titles.

[0013] Step 3: Unify the length of the title to a pre-set number of words, and use BERT to perform character-level word embedding encoding to obtain the corresponding vector representation.

[0014] Step 4: Divide the processed data set into training set and test set, feed the obtained vector into BiLSTM-CRF neural network for training, and perform binary classification of titles through Softmax to obtain the title classification model.

[0015] Step 5: Use the title classification model to classify the document title, further confirm the range of the valid text block, and store it in the form of (key-value) in the MongoDB database.

[0016] Step 6: Mask the complex valid knowledge of the valid text block and replace it with a short entity to reduce the impact of complex knowledge on contextual semantics, accurately obtain the contextual semantic information of the extracted knowledge, and annotate the text block in BIO form for the valid knowledge.

[0017] Step 7: Build a masked semantic model. Build a multi-source homogeneous generalized masked Bi-LSTM semantic model M-MST model (Masked-Multiple Sources One Topic Bi-LSTM Model), and encode the labeled data with BERT word embedding, divide it into training set and test set, feed it into M-MST model training, and obtain the knowledge extraction model.

[0018] Step 8: Based on the knowledge extraction model and in combination with the external knowledge base, word vectors of these entities and their attributes with professional domain contextual semantic information are obtained, and the Levenshtein algorithm is used to complete the entity fusion work and obtain entity relationship triples.

[0019] Step 9: Based on the integrated financial entity triples, use high-performance NoSQL databases such as Neo4j for storage, display and query, use OGM to implement the design and definition of triple objects in Neo4j, build a multi-source financial announcement document knowledge graph and implement incremental updates or expansions.

[0020] A system for implementing the above-mentioned knowledge graph construction method for multi-source Chinese financial announcement documents includes a document structure tree construction module, a title data annotation module, a vector representation construction module, a title classification model construction module, a document title classification module, a complex effective knowledge masking module, a knowledge extraction model construction module, an entity relationship triple construction module, and a multi-source financial announcement document knowledge graph construction module, which are connected in sequence;

[0021] Document structure tree construction module: According to the format of document data (xml / pdf), use xml structure extraction or optical character recognition (OCR) technology to structure the hierarchical relationship of each chapter of the document and build a relatively complete document structure tree (sessionTree).

[0022] Title data annotation module: annotate all title data. Obtain the key information location through regular fuzzy matching, extract the title of the valid text block where the key information is located, and mark it as a valid title, and mark the rest as invalid titles.

[0023] Vector representation building module: unify the length of the title to a pre-set number of words, and use BERT to perform character-level word embedding encoding to obtain the corresponding vector representation.

[0024] Title classification model building module: The processed data set is divided into a training set and a test set, and the obtained vectors are fed into the BiLSTM-CRF neural network for training. The titles are classified into two categories through Softmax to obtain the title classification model.

[0025] Document title classification module: Use the title classification model to classify the document title, further confirm the range of the valid text block, and store it in the form of (key-value) in the MongoDB database.

[0026] Complex effective knowledge masking module: masks the complex effective knowledge of the effective text block and replaces it with a short entity to reduce the impact of complex knowledge on contextual semantics, accurately obtains the contextual semantic information of the extracted knowledge, and annotates the text block in BIO form for effective knowledge.

[0027] Knowledge extraction model construction module: Build a masked semantic model to build a multi-source homogeneous generalized masked Bi-LSTM semantic model M-MST model (Masked-Multiple Sources One Topic Bi-LSTM Model), and use BERT to encode the labeled data for word embedding, divide it into training set and test set, feed it into the M-MST model for training, and obtain the knowledge extraction model.

[0028] Entity relationship triple construction module: Based on the knowledge extraction model and combined with the external knowledge base, word vectors of these entities and their attributes with professional domain context semantic information are obtained, and the Levenshtein algorithm is used to complete the entity fusion work and obtain entity relationship triples.

[0029] Multi-source financial announcement document knowledge graph construction module: Based on the integrated financial field entity triples, use high-performance NoSQL databases such as Neo4j for storage, display and query, use OGM to implement the design and definition of triple objects in Neo4j, build a multi-source financial announcement document knowledge graph and implement incremental updates or expansions.

[0030] The present invention uses XML structure extraction or optical character recognition (OCR) technology to construct a document structure tree, and annotates the title of the valid text block where the valid information is located by regular fuzzy matching. After the title is short-filled and long-cut to adjust the uniform number of words, Bert is used to perform character-level word embedding on each word to obtain the corresponding word vector, and the word vector is fed into BiLSTM-CRF and classified by Softmax.

[0031] Obtain accurate valid text blocks based on the title classification model. Mask the complex valid knowledge in the block and replace it with a short entity to reduce the impact of complex knowledge on contextual semantics, accurately obtain the contextual semantic information of the extracted knowledge, and annotate the text block in BIO form for valid knowledge. Construct a masked semantic model M-MST model to extract valid information.

[0032] According to the knowledge extraction model, combined with the external knowledge base, the word vectors of these entities and their attributes with professional contextual semantic information are obtained, and the Levenshtein algorithm is used to complete the entity fusion work and obtain the entity relationship triples. High-performance NoSQL databases such as Neo4j are used for storage, display and query, and OGM is used to implement the design and definition of triple objects in Neo4j to build a multi-source financial announcement document knowledge graph.

[0033] The advantages of the present invention are: comprehensively considering the respective advantages and disadvantages of keywords and machine learning classification algorithms in the tax code classification process, proposing a commodity name ultra-short text classification method based on the attention mechanism, cleverly integrating the advantages of each, and compensating for the problem of insufficient contextual information of short texts through information mining at the keyword level and utilizing entity linking technology, using anchor text to replace keywords with missing context for encoding, and then obtaining the contribution of different keywords to tax code classification through the Transformer architecture, and finally completing the classification of tax codes, further improving the accuracy and efficiency, and greatly reducing labor costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 It is a schematic diagram of the data preprocessing process of the present invention.

[0035] Figure 2 This is a structural diagram of the masked semantic model M-MST of the present invention.

[0036] Figure 3 This is an example diagram of the knowledge graph of multi-source financial announcement documents.

[0037] Figure 4 It is a schematic diagram of the process of the present invention. DETAILED DESCRIPTION

[0038] The present invention will be further described below in conjunction with the accompanying drawings.

[0039] The knowledge graph construction method of multi-source Chinese financial announcement documents of the present invention comprises the following steps:

[0040] Step 1: Build a relatively complete document structure tree to obtain the document structure, including the main title, first-level title, second-level title, etc. and their corresponding text blocks.

[0041] Step 2: Obtain the valid block location based on fuzzy matching of the annotation content and extract its corresponding title.

[0042] Step 3: Perform short-filling and long-cutting on the effective words, unifying the length of the words to the pre-set number of words. In this example, because the title length is relatively short, try to take a longer length to ensure that information is not missing. Apply Chinese BERT word vector for encoding. In this example, according to statistical information, it is found that the number of text words in multiple parts is within 25 characters, so the number of words is determined to be 25. If the number of words is not enough, a repeated strategy is adopted to fill it; if the number of words is too many, the first 25 words are intercepted.

[0043] Step 4: Divide the processed data set into a training set and a test set, with the training set accounting for 80% and the test set accounting for 20%. Input the encoded data and its labels into the BiLSTM-CRF network for training. Use softmax as the final activation function for binary classification to obtain the title classification model.

[0044] Step 5: Use the title classification model to classify the document title, further confirm the scope of the valid text block, and store it in the form of (key-value) in the MongoDB database. Steps 1-5 are the data preprocessing stage. The process is as follows Figure 1 shown.

[0045] Step 6: After obtaining a valid text block, mask the complex entities in it. For example, in the text "The consortium formed by our company and its subsidiaries China Railway 11th Bureau Group Co., Ltd. and China Railway 17th Bureau Group Co., Ltd. won the bid for the C cooperative contracting construction bid section of the national expressway network G85 Chongqing-Kunming Expressway Maliuwan to Zhaotong section of the expressway investor and cooperative contractor, with a bid price of approximately RMB 2.45661 billion.", the complex entity is: "National Expressway Network G85 Chongqing-Kunming Expressway Maliuwan to Zhaotong Section of the Expressway Investor and Cooperative Contractor Bidding C Cooperative Contracting Construction Bid Section". Mask the complex entity to "project", and the masked text is "The consortium formed by our company and its subsidiaries China Railway 11th Bureau Group Co., Ltd. and China Railway 17th Bureau Group Co., Ltd. won the bid for the project, with a bid price of approximately RMB 2.45661 billion."

[0046] Step 7: Build a masked semantic model M-MST, encode the labeled data with BERT, divide it into 80% training set and 20% test set, feed it into the M-MST model training, and obtain the knowledge extraction model. The M-MST structure is shown in the attached figure. Figure 2 shown.

[0047] Step 8: Combined with the external Baidu Encyclopedia knowledge base, obtain the word vectors of these entities and their attributes with professional contextual semantic information, use the Levenshtein algorithm to complete the entity fusion work, and obtain entity relationship triples.

[0048]

[0049] Where a and b represent two entity word vectors, i and j represent vector subscripts, and Lev a,b (i,j) represents the similarity value between entities a and b.

[0050] Step 9: Knowledge graph construction and incremental update or expansion. It is planned to be implemented according to the following steps: Based on the fused financial entity triples, high-performance NoSQL databases such as Neo4j can be used for storage, display and query, and OGM can be used to implement the design and definition of triple objects in Neo4j.

[0051] a) Construct a knowledge graph based on the entity fusion triple knowledge base;

[0052] b) Calculate the vectors of new entities or attribute words based on a unified semantic environment;

[0053] c) If adding as an attribute, perform the following operations:

[0054] i. Determine whether it is a newly added attribute based on the distance threshold or external knowledge base;

[0055] ii. Yes → Add to the corresponding entity attribute triple;

[0056] iii. No → Whether it is an attribute that needs to be updated (attribute information is updated over time);

[0057] iv. Yes → Update the current attribute value (vertices and edges), and record the update time and frequency;

[0058] v. No → No modification is made, but the repetition frequency can be recorded.

[0059] d) If adding as an entity, perform the following operations:

[0060] i. Determine whether it is a newly added entity based on the distance threshold;

[0061] ii. Yes → Obtain the optimal adding position based on clustering and optimization analysis methods, such as calculating the number of new relationships, the number of changed relationships, etc., in order to obtain the optimal knowledge graph that meets the application goals;

[0062] iii. No → Whether it is an entity that needs to be updated (attribute information updated over time);

[0063] iv. Yes → Update entities (vertices and edges) based on the optimization method, and record the update time and frequency;

[0064] v. No → No modification is made, but the repetition frequency can be recorded.

[0065] A system for implementing the above-mentioned knowledge graph construction method for multi-source Chinese financial announcement documents includes a document structure tree construction module, a title data annotation module, a vector representation construction module, a title classification model construction module, a document title classification module, a complex effective knowledge masking module, a knowledge extraction model construction module, an entity relationship triple construction module, and a multi-source financial announcement document knowledge graph construction module, which are connected in sequence.

[0066] Document structure tree construction module: According to the format of document data (xml / pdf), use xml structure extraction or optical character recognition (OCR) technology to structure the hierarchical relationship of each chapter of the document and build a relatively complete document structure tree (sessionTree).

[0067] Title data annotation module: annotate all title data. Obtain the key information location through regular fuzzy matching, extract the title of the valid text block where the key information is located, and mark it as a valid title, and mark the rest as invalid titles.

[0068] Vector representation building module: unify the length of the title to a pre-set number of words, and use BERT to perform character-level word embedding encoding to obtain the corresponding vector representation.

[0069] Title classification model building module: The processed data set is divided into 80% training set and 20% test set, and the obtained vector is fed into the BiLSTM-CRF neural network for training. The title is classified into two categories through Softmax to obtain the title classification model.

[0070] Document title classification module: Use the title classification model to classify the document title, further confirm the scope of the valid text block, and store it in the form of (key-value) in the MongoDB database.

[0071] Complex effective knowledge masking module: masks the complex effective knowledge of the effective text block and replaces it with a short entity to reduce the impact of complex knowledge on contextual semantics, accurately obtains the contextual semantic information of the extracted knowledge, and annotates the text block in BIO form for effective knowledge.

[0072] Knowledge extraction model construction module: Build a masked semantic model to build a multi-source homogeneous generalized masked Bi-LSTM semantic model M-MST model (Masked-Multiple Sources One Topic Bi-LSTM Model), and use BERT to encode the labeled data for word embedding, divide it into 80% training set and 20% test set, feed it into the M-MST model training, and obtain the knowledge extraction model.

[0073] Entity relationship triple building module: Based on the knowledge extraction model, combined with the external knowledge base, the word vectors of these entities and their attributes with professional domain context semantic information are obtained, and the Levenshtein algorithm is used to complete the entity fusion work and obtain the entity relationship triple. Specifically include:

[0074] Combined with the external Baidu Encyclopedia knowledge base, we obtain word vectors of these entities and their attributes with professional contextual semantic information, and use the Levenshtein algorithm to complete the entity fusion work and obtain entity relationship triples.

[0075]

[0076] Where a and b represent two entity word vectors, i and j represent vector subscripts, and Lev a,b (i,j) represents the similarity value between entities a and b.

[0077] Multi-source financial announcement document knowledge graph construction module: Based on the integrated financial field entity triples, use high-performance NoSQL databases such as Neo4j for storage, display and query, use OGM to implement the design and definition of triple objects in Neo4j, build a multi-source financial announcement document knowledge graph and implement incremental updates or expansions. Specifically include:

[0078] e) Construct a knowledge graph based on the entity fusion triple knowledge base;

[0079] f) Calculate the vectors of new entities or attribute words based on a unified semantic environment;

[0080] g) If adding as an attribute, perform the following operations:

[0081] vi. Determine whether it is a newly added attribute based on the distance threshold or external knowledge base;

[0082] vii. Yes → added to the corresponding entity attribute triple;

[0083] viii. No → Whether it is an attribute that needs to be updated (attribute information is updated over time);

[0084] ix. Yes → Update the current attribute value (vertices and edges), and record the update time and frequency;

[0085] x. No → No modification is made, but the repetition frequency can be recorded.

[0086] h) If adding as an entity, perform the following operations:

[0087] vi. Determine whether it is a newly added entity based on the distance threshold;

[0088] vii. Yes → Obtain the optimal adding position based on clustering and optimization analysis methods, such as calculating the number of new relationships, the number of changed relationships, etc., in order to obtain the optimal knowledge graph that meets the application goals;

[0089] viii. No → Whether it is an entity that needs to be updated (attribute information updated over time);

[0090] ix. Yes → Update entities (vertices and edges) based on the optimization method, and record the update time and frequency;

[0091] x. No → No modification is made, but the repetition frequency can be recorded.

[0092] In order to overcome the problem of lack of Chinese knowledge graph resources, the present invention cleverly integrates knowledge extraction and knowledge graph construction methods, especially for the extraction of complex entities in the financial field and the construction of knowledge graphs in the financial field. The document structure tree is constructed using xml structure extraction or optical character recognition (OCR) technology, and the title of the valid text block where the valid information is located is marked by regular fuzzy matching. After the title is short-filled and long-cut to adjust the uniform number of words, Bert is used to perform character-level word embedding on each word to obtain the corresponding word vector. After the word vector is fed into BiLSTM-CRF, it is classified by Softmax, and finally a knowledge graph and knowledge reasoning system of Chinese multi-source financial announcement documents that can be incrementally updated is realized, which provides related entities (enterprises or individuals, etc.) and event information in the field for risk decision-making and other practical application needs, thereby solving the problems of high cost, low efficiency, high threshold and low timeliness of enterprise risk prediction and analysis.

[0093] The present invention has been described through the above examples, but it should be noted that the examples are for illustrative purposes only and do not limit the present invention to the scope of the examples. Although the present invention has been described in detail with reference to the above examples, researchers in the field should be able to understand that: it can still be modified with the technical solutions recorded in the above examples, or some of its technical features can be replaced by equivalents; second, these modifications or replacements do not make the corresponding technical solutions out of the scope of protection of the present invention. The scope of protection of the present invention is defined by the attached claims and the equivalent scope of the machine.

Claims

1. The knowledge graph construction method of multi-source Chinese financial announcement documents includes the following steps: Step 1: For the document data in XML or PDF format, use XML structure extraction or optical character recognition (OCR) technology to structure the hierarchical relationship of each chapter of the document and build a relatively complete document structure tree sessionTree; Step 2: Mark all title data; obtain the key information position through regular fuzzy matching, and extract the title of the valid text block where the key information is located, mark it as a valid title, and mark the rest as invalid titles; Step 3: Unify the length of the title to a pre-set number of words, and use BERT to perform word embedding encoding at the character level to obtain the corresponding vector representation; Step 4: Divide the processed data set into a training set and a test set, and feed the obtained vectors into the BiLSTM-CRF neural network for training. Use Softmax to perform binary classification on the titles to obtain a title classification model. Step 5: Use the title classification model to classify the document title, further confirm the range of the valid text block, and store it in the key-value format of the MongoDB database; Step 6: Mask the complex valid knowledge of the valid text block and replace it with a short entity to reduce the impact of complex knowledge on contextual semantics, accurately obtain the contextual semantic information of the extracted knowledge, and annotate the text block in BIO form for the valid knowledge; Step 7: Build a masked semantic model. Build a multi-source homogeneous generalized masked Bi-LSTM semantic model M-MST model, Masked-Multiple Sources One Topic Bi-LSTM Model, and use BERT to encode the labeled data for word embedding, divide it into training set and test set, feed it into M-MST model training, and obtain the knowledge extraction model; Step 8: Based on the knowledge extraction model and in combination with the external knowledge base, word vectors of these entities and their attributes with professional domain contextual semantic information are obtained, and the Levenshtein algorithm is used to complete the entity fusion work and obtain entity relationship triples; Where a and b represent two entity word vectors, i and j represent vector subscripts, and Lev a,b (i,j) represents the similarity value between entities a and b; Step 9: Based on the integrated financial entity triples, use the Neo4j high-performance NoSQL database for storage, display and query, use OGM to implement the design and definition of triple objects in Neo4j, build a multi-source financial announcement document knowledge graph and implement incremental updates or expansions, including: It is planned to be implemented according to the following steps: Based on the fused financial field entity triples, Neo4j high-performance NoSQL database can be used for storage, display and query, and OGM is used to implement the design and definition of triple objects in Neo4j; a) Construct a knowledge graph based on the entity fusion triple knowledge base; b) Calculate the vectors of new entities or attribute words based on a unified semantic environment; c) If adding as an attribute, perform the following operations: i. Determine whether it is a newly added attribute based on the distance threshold or external knowledge base; ii. Yes → Add to the corresponding entity attribute triple; iii. No → Whether it is an attribute that needs to be updated. An attribute that needs to be updated refers to attribute information that is updated over time; iv. Yes → Update the current attribute value, i.e. the vertex and edge, and record the update time and frequency; v. No → No modification is made, but the repetition frequency can be recorded; d) If adding as an entity, perform the following operations: i. Determine whether it is a newly added entity based on the distance threshold; ii. Yes → Obtain the optimal adding position based on clustering and optimization analysis methods, calculate the number of new relationships, and the number of changed relationships, in order to obtain the optimal knowledge graph that meets the application goals; iii. No → Whether it is an entity that needs to be updated. An entity that needs to be updated refers to attribute information that is updated over time; iv. Yes → Update entities, i.e., nodes and edges, based on the optimization method, and record the update time and frequency; v. No → No modification is made, and the repetition frequency can be recorded.

2. A knowledge graph construction system for multi-source Chinese financial announcement documents, implementing the method as claimed in claim 1; the knowledge graph construction system comprises a document structure tree construction module, a title data annotation module, a vector representation construction module, a title classification model construction module, a document title classification module, a complex effective knowledge mask module, a knowledge extraction model construction module, an entity relationship triple construction module, and a multi-source financial announcement document knowledge graph construction module connected in sequence; Document structure tree construction module: for document data in XML or PDF format, use XML structure extraction or optical character recognition (OCR) technology to structure the hierarchical relationship of each chapter of the document and build a relatively complete document structure tree sessionTree; Title data annotation module: annotate all title data; obtain the key information location through regular fuzzy matching, extract the title of the valid text block where the key information is located, and mark it as a valid title, and mark the rest as invalid titles; Vector representation building module: unify the length of the title to a pre-set number of words, and use BERT to perform character-level word embedding encoding to obtain the corresponding vector representation; Title classification model building module: The processed data set is divided into a training set and a test set, and the obtained vectors are fed into the BiLSTM-CRF neural network for training. The titles are classified into two categories through Softmax to obtain the title classification model. Document title classification module: Use the title classification model to classify document titles, further confirm the scope of valid text blocks, and store them in the key-value format of the MongoDB database; Complex effective knowledge masking module: masks the complex effective knowledge of the effective text block and replaces it with a short entity to reduce the impact of complex knowledge on contextual semantics, accurately obtains the contextual semantic information of the extracted knowledge, and annotates the text block in BIO form for effective knowledge; Knowledge extraction model construction module: Build a masked semantic model to build a multi-source homogeneous generalized masked Bi-LSTM semantic model M-MST model, Masked-Multiple Sources One Topic Bi-LSTM Model, and use BERT to encode the labeled data for word embedding, divide it into training set and test set, feed it into the M-MST model for training, and obtain the knowledge extraction model; Entity relationship triple construction module: Based on the knowledge extraction model and in combination with the external knowledge base, word vectors with professional domain context semantic information of these entities and their attributes are obtained, and the Levenshtein algorithm is used to complete the entity fusion work and obtain entity relationship triples; Multi-source financial announcement document knowledge graph construction module: Based on the integrated financial field entity triples, use the Neo4j high-performance NoSQL database for storage, display and query, use OGM to implement the design and definition of triple objects in Neo4j, build a multi-source financial announcement document knowledge graph and implement incremental updates or expansions.

Citation Information

Patent Citations

  • Dynamic financial knowledge graph construction method based on reinforcement learning and transfer learning

    CN110990590A

  • Intelligent education knowledge graph construction system and method

    CN111597356A