A system and method for constructing an authentication knowledge base
By building a cross-domain certification knowledge base, we solve the problem that existing technology cannot handle the knowledge base of enterprises with cross-domain nature, achieve cross-domain knowledge integration, and improve the work efficiency of auditors and the reliability of certification.
Patent Information
- Application Number
- CN202311852703.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-29
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2043-12-29
AI Technical Summary
Existing technology cannot build a cross-domain certification knowledge base, resulting in some companies being unable to obtain complete knowledge consultation due to the cross-domain nature, resulting in audit errors and certification failures.
Obtain target information in different fields through the data collection module, use the knowledge extraction module to construct semantic subgraphs, and connect these subgraphs into multi-domain semantic large graphs through disambiguation methods to form a certified knowledge base and achieve cross-domain knowledge fusion.
It achieves cross-domain knowledge integration, improves auditors' work efficiency and certification reliability, and ensures complete knowledge consultation on cross-domain issues.
Smart Images

Figure CN117874249B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of certification and auditing, and in particular to a system and method for constructing a certification knowledge base. Background Art
[0002] In the enterprise qualification review, auditors need to use a lot of industry knowledge, review process knowledge, and legal knowledge. When faced with a large amount of review materials, auditors may forget knowledge or misjudge knowledge due to factors such as fatigue, resulting in audit errors. Certification knowledge bases came into being. Certification knowledge bases include relevant information such as laws and regulations, certification standards, certification processes, and industry knowledge. The construction of these knowledge bases aims to improve the reliability of auditors' work and provide auditors with necessary knowledge consulting services. In addition, certification knowledge bases can also help companies understand and master certification requirements, reduce errors and omissions in the certification process, and increase the success rate of certification.
[0003] The existing technology constructs the certification knowledge base in the form of structured data according to the field. For example, the material field constructs the process, chemistry and other knowledge bases, and the medical field constructs the biology, pharmaceutical and other knowledge bases. However, some companies have cross-domain characteristics. For example, Bayer is involved in both the manufacturing of drugs (biology, chemistry) and the manufacturing of medical equipment (materials) such as hearing aids. The knowledge base constructed by the existing technology cannot obtain complete knowledge consultation. Summary of the invention
[0004] In order to solve the above-mentioned problems in the prior art, the present invention provides a system and method for constructing an authentication knowledge base.
[0005] In a first aspect, an embodiment of the present application provides a system for constructing a certification knowledge base, comprising: a data collection module for acquiring target data of different categories and / or different fields required for constructing the certification knowledge base; a knowledge extraction module for extracting knowledge from each of the target data and constructing a semantic subgraph corresponding to each of the target data; and connecting the semantic subgraphs in a disambiguation manner to generate a multi-field semantic large graph; wherein the multi-field semantic large graph is the certification knowledge base; and each node in the semantic subgraph contains partial knowledge of the corresponding target data.
[0006] In an optional implementation of the first aspect, the nodes include: clause nodes, name phrase nodes, pronoun nodes and entity nodes; the semantic subgraph also includes edges; the edges include: dependency edges, relationship edges, similarity edges; the dependency edges are used to connect the clause nodes; the relationship edges are used to connect the noun nodes, the pronoun nodes and / or the entity nodes; the similarity edges are used to connect noun phrase nodes or the pronoun nodes referring to the same entity through character matching.
[0007] In an optional implementation of the first aspect, the knowledge extraction module also includes a semantic graph sub-unit and a disambiguation sub-unit; the semantic graph sub-unit is used to extract knowledge from each of the target materials to obtain the sentence nodes, the phrase nodes, the pronoun nodes and the entity nodes, and connect the sentence nodes, the phrase nodes, the pronoun nodes and the entity nodes through any one of the dependency edges, the relationship edges and the similarity edges to construct a semantic sub-graph corresponding to each of the target materials; the disambiguation sub-unit is used to calculate the weight of the edges of each of the semantic sub-graphs, and optimize the edges of the semantic sub-graph according to the first objective function to obtain the disambiguated semantic sub-graph corresponding to the semantic sub-graph; and connect each of the disambiguated semantic sub-graphs to generate the multi-domain semantic graph; wherein the first objective function represents that the average weight of the edges of the semantic sub-graph is the maximum.
[0008] In an optional implementation of the first aspect, the disambiguation sub-unit is further specifically used to use each of the disambiguated semantic sub-graphs as nodes, generate similar edges by character matching, and optimize the similar edges between each of the disambiguated semantic sub-graphs according to a second objective function to generate the multi-domain semantic large graph; wherein the second objective function represents the maximum weight similar edges.
[0009] In an optional implementation of the first aspect, the disambiguation sub-unit is further specifically used to calculate the weight of the relationship edge based on the correlation between two objects and the frequency of the two objects appearing in the semantic subgraph under the relationship edge; calculate the weight of the similarity edge based on the prior probability of the candidate noun phrases or pronouns of the objects and the similarity of the object fixed position context vectors weighted by TF-IDF; based on calculating the weight of the relationship edge, the weight of the similarity edge and the weight of the dependent edge, and in combination with the first objective function, optimize the edges of the semantic subgraph; wherein the weight of the dependent edge is a fixed value; wherein the objects include entities, name phrases and / or pronouns.
[0010] In an optional implementation of the first aspect, the semantic graph sub-unit is also used to obtain the sentence node through an open source tool, annotate each word of the target data through a part-of-speech tagger, and then obtain the noun phrase node and the pronoun node, and obtain the entity node through a trained Bert model.
[0011] In an optional implementation of the first aspect, the system also includes: a consultation module; the consultation module is used to receive search information input by a user and extract named entities in the search information; and use the named entity as an index to search in the authentication knowledge base to obtain query information, and push the query information to the user.
[0012] In an optional implementation of the first aspect, the consulting module is further specifically used to perform word segmentation on the search information; obtain word segmentation results, perform Embedding processing on the word segmentation results to obtain Embedding results, and upsample the Embedding results to obtain upsampled results; perform knowledge extraction on the upsampled results to obtain named entities in the search information.
[0013] In an optional implementation of the first aspect, the consulting module is also specifically used to obtain the entities, noun phrases and pronouns in the certification knowledge base that refer to the same as the upsampling results with similar edges as the highest priority; determine the first sentence node based on the entities, noun phrases and pronouns that refer to the same; and synchronously push the second sentence node connected to the first sentence node to the user; wherein the first sentence node and the second sentence node connected to the first sentence node are the query information.
[0014] In a second aspect, an embodiment of the present application provides a method for constructing an authentication knowledge base, comprising: obtaining target data of different categories and / or different fields required for constructing the authentication knowledge base; performing knowledge extraction on each of the target data, and constructing a semantic subgraph corresponding to each of the target data; wherein each node in the semantic subgraph contains partial knowledge of the corresponding target data; connecting the semantic subgraphs in a disambiguation manner to generate a multi-field semantic large graph; wherein the multi-field semantic large graph is the authentication knowledge base.
[0015] The beneficial effects of the present invention include: the certification knowledge base construction system provided in the embodiment of the present application can realize cross-domain knowledge fusion. First, the collected data is classified into categories (fields) by using knowledge extraction in a graph manner to construct independent semantic subgraphs. Each node contains part of the knowledge of the corresponding data, and the complete semantic graph contains all the knowledge of the data. For cross-domain problems, the present invention connects the constructed semantic subgraphs into a large graph containing knowledge from multiple fields through disambiguation. In this way, complete knowledge consultation in multiple fields can be obtained through the constructed certification knowledge base. At the same time, the work efficiency of auditors can be further improved, as well as the reliability of certification. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1A module framework of a system for constructing a first authentication knowledge base provided by an embodiment of the present invention;
[0017] Figure 2 A module block diagram of a system for constructing a second authentication knowledge base provided by an embodiment of the present invention;
[0018] Figure 3 A module framework of a system for constructing a third authentication knowledge base provided by an embodiment of the present invention;
[0019] Figure 4 A flowchart of a method for constructing an authentication knowledge base provided by an embodiment of the present invention;
[0020] Figure 5 A module block diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0021] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0022] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0023] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0024] As used in this specification and the appended claims, the term "if" may be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting" depending on the context.
[0025] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0026] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0027] The existing technology constructs the certification knowledge base in the form of structured data according to the field. For example, the material field constructs the process, chemistry and other knowledge bases, and the medical field constructs the biology, pharmaceutical and other knowledge bases. However, some companies have cross-domain characteristics. For example, Bayer is involved in both the manufacturing of drugs (biology, chemistry) and the manufacturing of medical equipment (materials) such as hearing aids. The knowledge base constructed by the existing technology cannot obtain complete knowledge consultation.
[0028] In view of the above problems, the present application proposes the following embodiments to solve the above technical problems.
[0029] See also Figure 1 The embodiment of the present application provides a system 10 for constructing an authentication knowledge base, and the method includes: a data collection module 101 and a knowledge extraction module 102.
[0030] The data collection module 101 is used to obtain target data of different categories and / or different fields required for building a certification knowledge base.
[0031] Specifically, the data collection module 101 is mainly used to collect information related to the construction of the certification knowledge base. In the embodiment of the present application, the target information acquired by the data collection module 101 can specifically include normative documents and literature research materials. Normative documents include different categories, and literature research materials involve different fields.
[0032] Exemplarily, normative documents include, but are not limited to, a series of regulatory, policy, and standard documents, such as the ISO9001 quality management system standard, the ISO 14001 environmental management system standard, etc.
[0033] For example, the literature research materials may include, but are not limited to, research papers, academic journals, technical reports, etc. in related fields.
[0034] It should be noted that the above target data can help auditors or enterprises understand professional and technical knowledge in related fields, audit standards, etc. The data of the acquired target data is stored in the form of text data.
[0035] In one embodiment, the target information acquired by the data collection module 101 can be manually input by the user. In this way, the authentication knowledge base required by the user can be built in a targeted manner. For example, if the user's audit work involves both the field of drug manufacturing and the field of instrument preparation, the user can provide target information related to the field of drug manufacturing and target information related to the field of instrument preparation.
[0036] In another embodiment, the target data acquired by the data collection module 101 can also be acquired from the network through tools such as web crawlers, etc. In this way, the target data can be acquired with completeness and diversity.
[0037] The knowledge extraction module 102 is used to extract knowledge from each target document and construct a semantic subgraph corresponding to each target document; and to connect the semantic subgraphs by disambiguation to generate a multi-domain semantic large graph.
[0038] Among them, the multi-domain semantic graph is the authentication knowledge base; the nodes in each semantic subgraph contain partial knowledge of the corresponding target data.
[0039] That is, in the embodiment of the present application, after obtaining multiple target data, the knowledge extraction module 102 uses knowledge extraction in the form of a graph to construct an independent semantic subgraph for each target data; each semantic subgraph includes nodes and edges. Each node contains part of the knowledge of the data to which it belongs, and the complete semantic graph contains all the knowledge of the data. Then, through the disambiguation method, the semantic subgraphs are connected to form a large graph containing knowledge in multiple fields.
[0040] It can be seen that the construction system of the certification knowledge base provided in the embodiment of the present application can realize cross-domain knowledge fusion. First, the collected data is classified into categories (fields) by knowledge extraction in a graph manner to construct independent semantic subgraphs. Each node contains part of the knowledge of the corresponding data, and the complete semantic graph contains all the knowledge of the data. For cross-domain problems, the present invention connects the constructed semantic subgraphs into a large graph containing knowledge from multiple fields through disambiguation. In this way, complete knowledge consultation in multiple fields can be obtained through the constructed certification knowledge base. At the same time, the work efficiency of auditors can be further improved, as well as the reliability of certification.
[0041] Optionally, for each semantic subgraph , which includes the node and edge ; Each semantic subgraph contains all the knowledge of the corresponding target data.
[0042] In one embodiment, the nodes may specifically include clause nodes, name phrase nodes, pronoun nodes, and entity nodes.
[0043] That is, the nodes in the semantic subgraph are containers for clauses, noun phrases, pronouns, and entities.
[0044] Specifically, for clause nodes: in a sentence, a clause can be connected to multiple subordinate clauses, and the clause nodes can be obtained through open source tools such as ClausIE.
[0045] For noun phrase nodes: Noun phrases are identified by using a part-of-speech tagger (NLTK for English and jieba for Chinese) to mark each word in the text as a corresponding part of speech, such as noun, verb, etc., and then a dependency parser (Spacy, DDPaeser, etc.) is used to analyze the structure of the sentence and extract the components of the noun phrase.
[0046] For pronoun nodes: pronouns are also obtained after being tagged by the above-mentioned part-of-speech tagger.
[0047] For entity nodes: entities can be obtained through the Bert model pre-trained with general data.
[0048] In one embodiment, the edges include: dependency edges, relationship edges, and similarity edges.
[0049] Among them, the dependency edge is used to connect clause nodes, such as connecting two clause nodes.
[0050] The relation edge is used to connect noun nodes, pronoun nodes and / or entity nodes. For example, the relation edge can be specifically used to connect two noun phrase nodes or pronoun nodes in a clause.
[0051] Among them, similar edges are used to connect noun phrase nodes or pronoun nodes that refer to the same entity through character matching.
[0052] It should be noted that the process of obtaining similar edges through character matching completes the partial entity naming disambiguation.
[0053] See also Figure 2 Furthermore, the knowledge extraction module 102 also includes a semantic graph subunit 1021 and a disambiguation subunit 1022 .
[0054] The semantic graph sub-unit 1021 is used to extract knowledge from each target document to obtain sentence nodes, phrase nodes, pronoun nodes and entity nodes, and connect the sentence nodes, phrase nodes, pronoun nodes and entity nodes through any one of dependency edges, relationship edges and similarity edges to construct a semantic sub-graph corresponding to each target document.
[0055] That is, the semantic graph sub-unit 1021 is mainly responsible for connecting various nodes according to different types of edges, so as to obtain the semantic sub-graph corresponding to each target data. In the semantic graph subunit 1021, similar edges have been obtained in the form of character matching to complete partial named entity disambiguation. In order to further improve the completeness and success rate of disambiguation and reduce misjudgment, further disambiguation is performed through the disambiguation subunit 1022.
[0056] Optionally, the semantic graph subunit 1021 is also used to obtain sentence nodes through open source tools, annotate each word of the target data through a part-of-speech tagger, and then obtain noun phrase nodes and pronoun nodes, and obtain entity nodes through a trained Bert model.
[0057] The disambiguation sub-unit 1022 is used to calculate the weight of the edge of each semantic sub-graph, and optimize the edge of the semantic sub-graph according to the first objective function to obtain the disambiguated semantic sub-graph corresponding to the semantic sub-graph; and connect each disambiguated semantic sub-graph to generate a multi-domain semantic large graph; wherein the first objective function represents that the average weight of the edge of the semantic sub-graph is the largest.
[0058] That is, the disambiguation sub-unit 1022 will perform semantic sub-graph Further disambiguation is achieved by joint reasoning, which can also be understood as disambiguation based on multiple category nodes with edge weights as the calculation target, thereby obtaining each semantic subgraph. The corresponding disambiguated semantic subgraph .
[0059] The following is an explanation of the calculation of edge weights:
[0060] In the embodiment of the present application, the disambiguation subunit 1022 is further specifically used to calculate the weight of the relationship edge according to the correlation between the two objects and the frequency of the two objects appearing in the semantic subgraph under the relationship edge; calculate the weight of the similarity edge according to the prior probability of the candidate noun phrase or pronoun of the object and the similarity of the fixed position context vector of the object weighted by TF-IDF (Term Frequency-Inverse Document Frequency, a statistical method for evaluating the importance of a word to a document set or one of the documents in a corpus); optimize the edge of the semantic subgraph based on the calculated weight of the relationship edge, the weight of the similarity edge and the weight of the dependent edge, and in combination with the first objective function; wherein the weight of the dependent edge is a fixed value; wherein the object includes an entity, a name phrase and / or a pronoun.
[0061] For dependent edges, its fixed value can be 0.5.
[0062] For the relationship edge, the weight calculation formula is as follows:
[0063]
[0064] in, Represents a relationship edge; Represents two objects The correlation between them; for objects as entities, The weighted overlap similarity between the context vectors of the entities in Bert can be calculated as follows:
[0065]
[0066] in, Representing Entities In Location The context vector of Representing Entities In Location The context vector of Indicates the preset position The weight of Indicates the number of positions. is the similarity calculation function, which can be cosine similarity
[0067] in, Indicates that on the relationship side Down Appearing throughout The frequency in .
[0068] For similar edges, the weight calculation formula is as follows:
[0069]
[0070] in, Represents an entity Candidate noun phrases or pronouns The prior probability is that point to The frequency of this probability can be realized through some physical databases, such as Baidu, Wikipedia, etc. Represents an entity weighted by TF-IDF The similarity of the fixed position context vector is:
[0071]
[0072] in, for The context vector of for The context vector of (all weights are normalized).
[0073] Then, for the semantic subgraph Specifically, it can be to optimize the edges of the semantic subgraph The edges are trimmed so that The average weight of is the largest, and the optimization goal is:
[0074]
[0075] in, is the number of edges, For edge ( For the relationship edge, For similar edges, The constraint of this function is that if a relationship edge or similarity edge exists for a certain entity, at least one edge should be retained. The optimization algorithm can be completed using any optimization algorithm such as the greedy algorithm.
[0076] Optionally, the disambiguation sub-unit 1022 is also specifically used to take each disambiguated semantic subgraph as a node, generate similar edges by character matching, and optimize the similar edges between each of the disambiguated semantic subgraphs according to a second objective function to generate a multi-domain semantic large graph; wherein the second objective function represents the maximum weight similar edges.
[0077] Specifically, after obtaining the disambiguation semantic subgraph , and then construct semantic graphs in different fields ,by For subgraphs (nodes), similar edges are also generated (matched by characters), and then similar edges between subgraphs (nodes) are optimized according to named entity disambiguation. The optimization goal is to retain similar edges with the maximum weight. Finally, each subgraph is connected into a large graph to obtain a multi-domain semantic large graph. .
[0078] That is, in the embodiment of the present application, in the process of splicing sub-graphs, accurate construction of the large graph can be completed through disambiguation, thereby solving cross-domain problems and realizing cross-domain knowledge fusion.
[0079] See also Figure 3 Optionally, in one embodiment, the authentication knowledge base construction system 10 may further include a consulting module 103,
[0080] The consulting module 103 is used to receive the search information input by the user and extract the named entities in the search information; and use the named entities as indexes to search in the authentication knowledge base to obtain the search information, and push the search information to the user.
[0081] The consultation module 103 can facilitate users to query in the certification knowledge base to help users or enterprises understand and master certification requirements and domain knowledge. By querying in multi-domain semantic graphs, the auditor's work efficiency can be improved, and the reliability of certification can be improved.
[0082] Optionally, in one embodiment, the consulting module 103 is further specifically used to perform word segmentation processing on the search information; obtain the word segmentation result, perform Embedding (a method of mapping high-dimensional data to a low-dimensional space) processing on the word segmentation result to obtain the Embedding result, and upsample the Embedding result; obtain the upsampled result; perform knowledge extraction on the upsampled result to obtain the named entities in the search information.
[0083] The above process is described in detail below, including:
[0084] Step 1: Get the user's search information .
[0085] Step 2: Use Bert to retrieve user information Perform word segmentation and embedding processing on each Token (word segmentation result) to obtain the embedding result , Indicates the Embedding result of the Nth Token.
[0086] Step 3: Use Transformer (a model) to Upsample to get twice the dimension ;
[0087] Step 4: Use the knowledge extraction module 102 Perform knowledge extraction to obtain multiple named entities.
[0088] Optionally, in one embodiment, the consulting module 103 is further specifically used to obtain entities, noun phrases and pronouns that refer to the same entity, noun phrase and pronoun as the up-sampled result in the authentication knowledge base with similar edges as the highest priority; determine the first sentence node based on referring to the same entity, noun phrase and pronoun; and synchronously push the second sentence node connected to the first sentence node to the user; wherein the first sentence node and the second sentence node connected to the first sentence node are query information.
[0089] That is, using the above multiple named entities as index pairs Get multiple clause nodes. The specific traversal process can be understood as:
[0090] Step 1: Take similar edges as the highest priority to obtain the edges that satisfy Entities, noun phrases, and pronouns that refer to the same entity, and obtain the sentence node set C of the clauses where these entities, noun phrases, and pronouns are located.
[0091] Step 2: Determine whether other noun phrases and pronouns connected by relation edges in C also satisfy , if it exists, record the clause node (i.e. the first clause node).
[0092] Step 3: Get the preset level sentence nodes connected by dependency edges of the above sentence nodes (e.g., level 1 is connected by 1 dependency edge, level 2 is connected by 2 edges in sequence, the preset level means that all nodes within the range are output; the preset level sentence nodes are the second sentence nodes), and output these nodes to the user.
[0093] In summary, when an auditor or an enterprise conducts a knowledge query, the consulting module 103 built into the embodiment of the present application will obtain the keywords in the search information input by the auditor or the enterprise, and downsample it to a low-dimensional tensor after embedding, and then perform knowledge extraction on the low-dimensional tensor to obtain the extracted knowledge keywords, use the knowledge keywords to search the knowledge graphs of other fields, obtain the knowledge base data corresponding to the relevant nodes, and push it to users such as auditors or enterprises. In this way, the completeness of the knowledge query can be improved, cross-domain knowledge can be queried at one time, and query efficiency can be improved.
[0094] Based on the same inventive concept, please refer to Figure 4 , the present application embodiment provides a method for constructing an authentication knowledge base, including:
[0095] Step 401: Acquire target data of different categories and / or different fields required for building a certification knowledge base.
[0096] Step 402: extract knowledge from each target document and construct a semantic subgraph corresponding to each target document.
[0097] Among them, the nodes in each semantic subgraph contain partial knowledge of the corresponding target data.
[0098] Step 403: Connect the semantic subgraphs by disambiguation to generate a multi-domain semantic graph.
[0099] Among them, the multi-domain semantic big picture is the certification knowledge base.
[0100] Optionally, in one embodiment, the nodes include: clause nodes, name phrase nodes, pronoun nodes and entity nodes; the semantic subgraph also includes edges; the edges include: dependency edges, relationship edges, similarity edges; the dependency edges are used to connect the clause nodes; the relationship edges are used to connect the noun nodes, the pronoun nodes and / or the entity nodes; the similarity edges are used to connect noun phrase nodes or the pronoun nodes referring to the same entity through character matching.
[0101] Optionally, in one embodiment, step 402 may further specifically include: performing knowledge extraction on each of the target materials to obtain the sentence nodes, the phrase nodes, the pronoun nodes and the entity nodes, and connecting the sentence nodes, the phrase nodes, the pronoun nodes and the entity nodes through any one of the dependency edges, the relationship edges and the similarity edges to construct a semantic subgraph corresponding to each of the target materials.
[0102] Correspondingly, step 403 may also specifically include: for each of the semantic subgraphs, calculating the weight of the edges of the semantic subgraph, and optimizing the edges of the semantic subgraph according to the first objective function to obtain the disambiguated semantic subgraph corresponding to the semantic subgraph; and connecting each of the disambiguated semantic subgraphs to generate the multi-domain semantic graph; wherein the first objective function represents that the average weight of the edges of the semantic subgraph is the largest.
[0103] Optionally, step 403 may also specifically include: taking each of the disambiguated semantic subgraphs as a node, generating similar edges by character matching, and optimizing the similar edges between each of the disambiguated semantic subgraphs according to a second objective function to generate the multi-domain semantic large graph; wherein the second objective function represents the maximum weight similar edges.
[0104] Optionally, step 403 may also specifically include: calculating the weight of the relationship edge based on the correlation between the two objects and the frequency of the two objects appearing in the semantic subgraph under the relationship edge; calculating the weight of the similarity edge based on the prior probability of the candidate noun phrases or pronouns of the objects and the similarity of the object fixed position context vectors weighted by TF-IDF; optimizing the edges of the semantic subgraph based on calculating the weight of the relationship edge, the weight of the similarity edge and the weight of the dependent edge, and combining the first objective function; wherein the weight of the dependent edge is a fixed value; wherein the objects include entities, name phrases and / or pronouns.
[0105] Optionally, the method further includes: obtaining the sentence node through an open source tool, tagging each word of the target data through a part-of-speech tagger, thereby obtaining the noun phrase node and the pronoun node, and obtaining the entity node through a trained Bert model.
[0106] Optionally, the method further includes: receiving search information input by a user, and extracting named entities in the search information; and using the named entities as indexes to search in the authentication knowledge base to obtain query information, and pushing the query information to the user.
[0107] Optionally, the above step of extracting named entities in the search information may also specifically include: performing word segmentation on the search information; obtaining word segmentation results, performing Embedding processing on the word segmentation results to obtain Embedding results, and upsampling the Embedding results; obtaining upsampling results; performing knowledge extraction on the upsampling results to obtain named entities in the search information.
[0108] Optionally, the above steps use the named entity as an index to search in the authentication knowledge base to obtain query information, and may also specifically include: obtaining entities, noun phrases and pronouns in the authentication knowledge base that refer to the same entity as the upsampling result with similar edges as the highest priority; determining a first sentence node based on referring to the same entity, noun phrase and pronoun; synchronously pushing a second sentence node connected to the first sentence node to the user; wherein the first sentence node and the second sentence node connected to the first sentence node are the query information.
[0109] It should be noted that the specific process of the above method steps can refer to the description in the aforementioned system embodiment, that is, the same parts can be referenced to each other and are not limited here.
[0110] See also Figure 5 Based on the same inventive concept, the present application embodiment provides a module frame of an electronic device 500 that applies the construction method of the above-mentioned authentication knowledge base, or a construction system of the above-mentioned authentication knowledge base. The electronic device 500 includes: at least one processor 501 ( Figure 5 Only one is shown in the figure), a memory 502, a computer program 503 stored in the memory 502 and executable on at least one processor 501, and when the processor 501 executes the computer program 503, the steps of constructing a system for constructing an authentication knowledge base in any of the aforementioned embodiments are implemented.
[0111] The electronic device 500 may be a personal computer, a notebook computer, etc. When the electronic device 500 is a personal computer, the personal computer is electrically connected or communicatively connected to the camera device.
[0112] Those skilled in the art will understand that Figure 5 The electronic device 500 is merely an example and does not constitute a limitation on the electronic device 500 , and may include more or less components than those shown in the figure, or may combine certain components, or may include different components.
[0113] The processor 501 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0114] In some embodiments, the memory 502 may be an internal storage unit of the electronic device 500, such as a hard disk or memory of the electronic device 500. In other embodiments, the memory 502 may also be an external storage device of the electronic device 500, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 500. Furthermore, the memory 502 may also include both an internal storage unit of the electronic device 500 and an external storage device.
[0115] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / modules are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0116] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0117] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0118] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0119] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the camera / electronic device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0120] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0121] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0122] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0123] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0124] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A system for constructing an authentication knowledge base, characterized in that: include: A data collection module is used to obtain target data of different categories and / or different fields required for building a certification knowledge base; A knowledge extraction module, used to extract knowledge from each target document and construct a semantic subgraph corresponding to each target document; and connecting the semantic subgraphs by disambiguation to generate a multi-domain semantic large graph; The multi-domain semantic graph is the authentication knowledge base; each node in the semantic subgraph contains part of the knowledge of the corresponding target data; The nodes include: clause nodes, name phrase nodes, pronoun nodes and entity nodes; the semantic subgraph also includes edges; the edges include: dependency edges, relation edges and similarity edges; the dependency edges are used to connect the clause nodes; the relation edges are used to connect the name phrase nodes, the pronoun nodes and / or the entity nodes; the similarity edges are used to connect the noun phrase nodes or the pronoun nodes referring to the same entity by character matching; The knowledge extraction module also includes a semantic graph subunit and a disambiguation subunit; the semantic graph subunit is used to extract knowledge from each of the target data to obtain the sentence nodes, the phrase nodes, the pronoun nodes and the entity nodes, and connect the sentence nodes, the phrase nodes, the pronoun nodes and the entity nodes through any one of the dependency edges, the relationship edges and the similarity edges to construct a semantic subgraph corresponding to each of the target data; the disambiguation subunit is used to calculate the weight of the edge of each semantic subgraph, and optimize the edge of the semantic subgraph according to the first objective function to obtain the disambiguated semantic subgraph corresponding to the semantic subgraph; and connect each of the disambiguated semantic subgraphs to generate the multi-domain semantic graph; wherein the first objective function represents that the average weight of the edge of the semantic subgraph is the largest; The disambiguation subunit is further specifically used to calculate the weight of the relationship edge according to the correlation between the two objects and the frequency of the two objects appearing in the semantic subgraph under the relationship edge; calculate the weight of the similarity edge according to the prior probability of the candidate noun phrases or pronouns of the objects and the similarity of the fixed position context vectors of the objects weighted by TF-IDF; based on calculating the weight of the relationship edge, the weight of the similarity edge and the weight of the dependent edge, and combining with the first objective function, optimize the edges of the semantic subgraph; wherein the weight of the dependent edge is a fixed value; wherein the objects include entities, name phrases and / or pronouns.
2. The system for constructing a certification knowledge base according to claim 1, characterized in that: The disambiguation subunit is also specifically used to use each of the disambiguated semantic subgraphs as a node, generate similar edges by character matching, and optimize the similar edges between each of the disambiguated semantic subgraphs according to a second objective function to generate the multi-domain semantic large graph; wherein the second objective function represents the maximum weight similar edges.
3. The system for constructing a certification knowledge base according to claim 1, characterized in that: The semantic graph subunit is also used to obtain the sentence nodes through open source tools, annotate each word of the target data through a part-of-speech tagger, and then obtain the noun phrase nodes and the pronoun nodes, and obtain the entity nodes through a trained Bert model.
4. The system for constructing a certification knowledge base according to claim 1, characterized in that: The system further comprises: a consulting module; The consulting module is used to receive search information input by the user and extract the named entities in the search information; and use the named entities as indexes to search in the authentication knowledge base to obtain the query information, and push the query information to the user.
5. The system for constructing a certification knowledge base according to claim 4, characterized in that: The consulting module is further specifically used to perform word segmentation processing on the search information; obtain a word segmentation result, perform Embedding processing on the word segmentation result to obtain an Embedding result, and upsample the Embedding result; Get the upsampling result; Perform knowledge extraction on the upsampling result to obtain named entities in the search information.
6. The system for constructing a certification knowledge base according to claim 5, characterized in that: The consulting module is also specifically used to obtain the entities, noun phrases and pronouns in the certification knowledge base that refer to the same entities, noun phrases and pronouns as the upsampling results with similar edges as the highest priority; determine the first sentence node based on referring to the same entities, noun phrases and pronouns; and synchronously push the second sentence node connected to the first sentence node to the user; wherein the first sentence node and the second sentence node connected to the first sentence node are the query information.
7. A method for constructing an authentication knowledge base, characterized in that: include: Obtain target data of different categories and / or fields required to build a certification knowledge base; Extracting knowledge from each target document and constructing a semantic subgraph corresponding to each target document; wherein each node in the semantic subgraph contains partial knowledge of the corresponding target document; Connecting the semantic subgraphs in a disambiguation manner to generate a multi-domain semantic graph; wherein the multi-domain semantic graph is the authentication knowledge base; The nodes include: clause nodes, name phrase nodes, pronoun nodes and entity nodes; the semantic subgraph also includes edges; the edges include: dependency edges, relation edges and similarity edges; the dependency edges are used to connect the clause nodes; the relation edges are used to connect the name phrase nodes, the pronoun nodes and / or the entity nodes; the similarity edges are used to connect the noun phrase nodes or the pronoun nodes referring to the same entity by character matching; The method further includes: performing knowledge extraction on each of the target materials to obtain the sentence nodes, the phrase nodes, the pronoun nodes and the entity nodes, and connecting the sentence nodes, the phrase nodes, the pronoun nodes and the entity nodes through any one of the dependency edges, the relationship edges and the similarity edges to construct a semantic subgraph corresponding to each of the target materials; for each of the semantic subgraphs, calculating the weight of the edges of the semantic subgraph, and optimizing the edges of the semantic subgraph according to the first objective function to obtain the disambiguated semantic subgraph corresponding to the semantic subgraph; and connecting each of the disambiguated semantic subgraphs to generate the multi-domain semantic large graph; wherein the first objective function represents that the average weight of the edges of the semantic subgraph is the largest; The method also includes: calculating the weight of the relationship edge according to the correlation between the two objects and the frequency of the two objects appearing in the semantic subgraph under the relationship edge; calculating the weight of the similarity edge according to the prior probability of the candidate noun phrases or pronouns of the objects and the similarity of the fixed position context vectors of the objects weighted by TF-IDF; optimizing the edges of the semantic subgraph based on calculating the weight of the relationship edge, the weight of the similarity edge and the weight of the dependent edge, and combining the first objective function; wherein the weight of the dependent edge is a fixed value; wherein the objects include entities, name phrases and / or pronouns.
