Knowledge graph construction method and device

By obtaining keywords and information sets, using semantic analysis models to determine entity names and attributes, and constructing knowledge graphs, the problem of low efficiency and inaccurate knowledge graph construction in the existing technology is solved, and more efficient and accurate knowledge graph construction is achieved.

CN113342990BActive Publication Date: 2024-10-25BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing knowledge graph construction methods are inefficient and inaccurate and rely on manual experience and annotated sample training models, resulting in inaccurate knowledge graphs constructed.

Method used

By obtaining keywords and information sets, the semantic analysis model is used to determine the entity names, attributes and values ​​​​in the target sentence, and a knowledge graph is constructed to improve accuracy and efficiency.

Benefits of technology

It improves the accuracy and efficiency of knowledge graph construction, reduces reliance on manual experience and annotated samples, and improves the utilization of existing information collection data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113342990B_ABST
    Figure CN113342990B_ABST
Patent Text Reader

Abstract

The present application discloses a method and device for constructing a knowledge graph, which relates to the fields of artificial intelligence technology such as knowledge graph and deep learning. The method includes: obtaining keywords and information sets; using keywords to determine the target sentence in the information set; using a semantic analysis model to determine the name of the entity in the target sentence, the attribute of the entity, and the keyword's value corresponding to the attribute; using the name of the entity, the attribute of the entity and the value of the entity to determine the knowledge information of the entity, and using at least one piece of knowledge information of at least one entity to construct a knowledge graph. The method can improve the accuracy and efficiency of constructing a knowledge graph.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, specifically to the field of knowledge graphs and deep learning technology, and in particular to a method and device for constructing a knowledge graph. Background Art

[0002] When building a knowledge graph, the relationship information between entities and attributes in the knowledge graph is usually determined based on the developer's experience, or the model is trained based on samples annotated by the developer, and the relationship information between entities and attributes in the knowledge graph is determined through the trained model.

[0003] However, existing methods for constructing knowledge graphs have the problems of low efficiency and inaccurate knowledge graphs. Summary of the invention

[0004] The present disclosure provides a method, device, electronic device and computer-readable storage medium for constructing a knowledge graph.

[0005] According to a first aspect, a method for constructing a knowledge graph is provided, the method comprising: obtaining keywords and an information set; using the keywords to determine a target sentence in the information set; using a semantic analysis model to determine the name of an entity in the target sentence, the attributes of the entity, and the keyword's values ​​corresponding to the attributes; using the entity's name, the entity's attributes and the values ​​of the entity to determine the entity's knowledge information; using at least one piece of knowledge information of at least one entity to construct a knowledge graph.

[0006] According to the second aspect, a device for constructing a knowledge graph is provided, and the device includes: an acquisition unit, configured to acquire keywords and an information set; a first determination unit, configured to use keywords to determine a target sentence in the information set; a second determination unit, configured to use a semantic analysis model to determine the name of an entity in the target sentence, the attributes of the entity, and the values ​​of the keywords corresponding to the attributes; a third determination unit, configured to use the name of the entity, the attributes of the entity, and the values ​​of the entity to determine the knowledge information of the entity; and a construction unit, configured to use at least one piece of knowledge information of at least one entity to construct a knowledge graph.

[0007] According to the third aspect, an embodiment of the present disclosure provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by one or more processors, the one or more processors implement the method for constructing a knowledge graph as provided in the first aspect.

[0008] According to the fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the method for constructing a knowledge graph provided in the first aspect is implemented.

[0009] The knowledge graph construction method and device provided by the present disclosure obtain keywords and information sets; use keywords to determine the target sentence in the information set; use a semantic analysis model to determine the name of the entity in the target sentence, the attributes of the entity, and the keyword values ​​corresponding to the attributes; use the name of the entity, the attributes of the entity and the values ​​of the entity to determine the knowledge information of the entity, and use at least one piece of knowledge information of at least one entity to construct a knowledge graph, which can improve the accuracy and efficiency of constructing the knowledge graph, and can improve the utilization rate of data in existing / formed information sets.

[0010] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present application.

[0012] Figure 1 is an exemplary system architecture diagram to which embodiments of the present application may be applied;

[0013] Figure 2 is a flowchart of an embodiment of a method for constructing a knowledge graph according to the present application;

[0014] Figure 3 is a flowchart of another embodiment of a method for constructing a knowledge graph according to the present application;

[0015] Figure 4 is a flowchart of an example of a method for constructing a knowledge graph according to the present application;

[0016] Figure 5 is a flowchart of another embodiment of the method for constructing a knowledge graph according to the present application;

[0017] Figure 6 is a schematic diagram of the structure of an embodiment of a device for constructing a knowledge graph according to the present application;

[0018] Figure 7 It is a block diagram of an electronic device used to implement the method for constructing a knowledge graph in an embodiment of the present application. DETAILED DESCRIPTION

[0019] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0020] Figure 1 An exemplary system architecture 100 is shown to which embodiments of the method for verifying a system or the apparatus for verifying a system of the present application can be applied.

[0021] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0022] The user can use the terminal devices 101, 102, 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various simulation processes or processes for testing the system can be installed on the terminal devices 101, 102, 103. Various client applications can also be installed on the terminal devices 101, 102, 103, such as information input applications, video applications, playback applications, audio applications, search applications, shopping applications, financial applications, etc.

[0023] The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting receiving server messages, including but not limited to smart phones, tablet computers, e-book readers, electronic players, laptop computers, desktop computers, and the like.

[0024] Terminal devices 101, 102, 103 can be hardware or software. When terminal devices 101, 102, 103 are hardware, they can be various hardware modules or electronic devices to be verified. When terminal devices 101, 102, 103 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, multiple software modules for providing distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.

[0025] The server 105 can obtain keywords and information sets through the terminal devices 101, 102, and 103, use the keywords to determine the target sentence in the information set, use the semantic analysis model to determine the name of the entity in the target sentence, the attributes of the entity, and the keyword's value corresponding to the attribute, and use the entity's name, the entity's attributes, and the keyword's value corresponding to the attribute to determine the entity's knowledge information.

[0026] It should be noted that the method for verifying the system provided in the embodiments of the present disclosure is generally executed by the server 105 , and accordingly, the device for verifying the system is generally disposed in the server 105 .

[0027] It should be understood that Figure 1 The number of devices, networks and servers in the embodiment is only for illustration. Any number of devices, networks and servers may be provided as required.

[0028] Continue to refer Figure 2 , shows a process 200 of an embodiment of a method for constructing a knowledge graph according to the present disclosure. The method for constructing a knowledge graph includes the following steps:

[0029] Step 201, obtaining keywords and information sets.

[0030] In this embodiment, the execution subject of the knowledge graph construction method (for example Figure 1 The server shown in the figure can receive keywords and information sets sent by users through terminal devices, and can also obtain keywords and information sets through local or cloud storage space of the server. Among them, keywords can be the names of entities, such as "buildings" and "mobile phones", can be the names of technical fields, such as "computers" and "artificial intelligence", can be the names of industries, such as "electricity industry" and "education industry", etc.; keywords can be words used to characterize the relationship between parameters, such as "greater than", "less than", "includes", "is", etc. The information set can be industry information, such as industry standard information, industry specification documents, etc., and can be various information stored in the database.

[0031] Step 202, using keywords to determine the target sentence in the information set.

[0032] In this embodiment, keywords can be used to determine target sentences in the information set. Semantic matching technology can be used to determine sentences in the information set whose semantics are similar to those of keywords, and determine the sentences whose semantics are similar to those of keywords as target sentences.

[0033] Step 203, using a semantic analysis model to determine the name of the entity in the target sentence, the attributes of the entity, and the values ​​of the keywords corresponding to the attributes.

[0034] In this embodiment, a semantic analysis model may be used to determine the name of an entity present in a target sentence, the attributes of the entity, and the values ​​of the keyword corresponding to the attributes (ie, the value of the keyword under the attribute).

[0035] For example, if the keyword is "not less than", and the target sentence determined from the information set through the keyword is "the B parameter of entity A is not less than the value C", then the semantic analysis model is used to determine that the entity name existing in the target sentence is "entity A", the attribute of the entity is "B parameter", and the value of the keyword under this attribute is "value C".

[0036] For example, if the keyword is "include", and the target sentence determined from the information set through the keyword is "the functions of the network management system should include configuration management, alarm and fault management, performance management, security management, etc.", then the semantic analysis model is used to determine that the entity name existing in the target sentence is "network management system", the attribute of the entity is "function", and the value of the keyword under this attribute is "configuration management", "alarm", "fault management", "performance management", and "security management".

[0037] Step 204, using the entity name, the entity attributes and the values, determine the knowledge information of the entity.

[0038] In this embodiment, the name of the entity, the attribute of the entity, and the value of the keyword under the attribute can be used to determine the knowledge information of the entity. Specifically, the name of the entity, the attribute of the entity, and the value of the keyword under the attribute can be stored in a preset form, and the stored information is the knowledge information of the entity. For example, the storage form can be "name-attribute-value", or the name of the entity, the attribute of the entity, and the value of the keyword under the attribute can be stored in the knowledge graph in the form of a triple of the knowledge graph as a piece of knowledge information of the entity.

[0039] Step 205, construct a knowledge graph using at least one entity and at least one piece of knowledge information.

[0040] In this embodiment, a piece of knowledge information of an entity can be used to construct a knowledge graph; multiple pieces of knowledge information of an entity can be used to construct a knowledge graph; or multiple pieces of knowledge information of each of multiple entities / or one piece of knowledge information of each entity can be used to construct a knowledge graph.

[0041] The method for constructing a knowledge graph provided in this embodiment obtains keywords and information sets, uses the keywords to determine the target sentence in the information set; uses a semantic analysis model to determine the name of the entity in the target sentence, the attributes of the entity, and the keyword's values ​​corresponding to the attributes, and then uses the entity's name, the entity's attributes and the values ​​of the entity to determine the entity's knowledge information, and uses at least one piece of knowledge information of at least one entity to construct a knowledge graph. The knowledge information of the entity can be determined based on the existing information set and the knowledge graph can be constructed, thereby improving the accuracy and efficiency of the constructed knowledge graph.

[0042] Secondly, avoid building entity knowledge information based on artificial experience or models trained on manually labeled samples, so as to further improve the accuracy and efficiency of determining knowledge information.

[0043] Again, the utilization rate of data in existing / formed information sets can be improved.

[0044] Further references Figure 3 , which shows a process 300 of another embodiment of a method for constructing a knowledge graph. The process 300 of the method for constructing a knowledge graph includes the following steps:

[0045] Step 301, obtaining keywords and information sets.

[0046] Step 302, using keywords to determine the target sentence in the information set.

[0047] Step 303: Use a semantic analysis model to determine the name of the entity in the target sentence, the attributes of the entity, and the values ​​of the keywords corresponding to the attributes.

[0048] Step 304, using the name of the entity, the attributes of the entity, the values ​​and the categories of keywords to determine the knowledge information of the entity. In this embodiment, the name of the entity, the attributes of the entity, the values ​​corresponding to the attributes under the keywords, and the categories of keywords can be used to determine the knowledge information of the entity. Among them, the category of keywords can be the field to which the keywords belong, such as keywords such as "computer" and "artificial intelligence" are words belonging to the technical field, such as keywords such as "electric power industry" and "education industry" are words belonging to the industry field; the category of keywords can also be used to characterize the logical rules to which the keywords belong, such as keywords such as "greater than" and "less than" belong to comparison-type logical rules, keywords such as "include" and "include" belong to inclusion-type logical rules, and keywords such as "should" and "should not" belong to whether-type logical rules.

[0049] Step 305: construct a knowledge graph using at least one entity and at least one piece of knowledge information.

[0050] The description of step 301, step 302, step 303, and step 305 in this embodiment is consistent with the description of step 201, step 202, step 203, and step 205, and will not be repeated here. Figure 2 Compared with the described embodiment, a step of using keyword categories to determine the knowledge information of an entity is added, and the dimension of the knowledge information of the entity is increased, which can make the constructed knowledge graph have a wider range of application scenarios.

[0051] In the above combination Figure 2 and Figure 3 In some optional implementations of the described embodiments, keywords are used to determine a target sentence in an information set, including: determining target information matching the keyword in the information set; and determining a sentence containing the target information as the target sentence.

[0052] In this embodiment, the information in the information set can be traversed according to the keyword itself or the semantics of the keyword, and the information in the information set whose similarity with the keyword itself or the semantics of the keyword meets the similarity threshold is determined, and the information is determined as the target information. Thereafter, the sentence or paragraph of the target information in the information set is determined as the target sentence.

[0053] In this embodiment, target information is determined through keywords, and then a target sentence is determined through the target information, which can improve the accuracy and efficiency of determining the target sentence.

[0054] In the above combination Figure 2 and Figure 3 In some optional implementations of the described embodiments, a semantic analysis model is used to determine the name of the entity in the target sentence, the attributes of the entity, and the values ​​of the keywords corresponding to the attributes, including: using a pre-trained information extraction model to extract the name of the entity, the attributes of the entity and the values ​​from the target sentence.

[0055] In this embodiment, a pre-trained information extraction model can be used to extract the name of the entity, the attribute of the entity, and the value of the keyword corresponding to the attribute from the target sentence. The pre-trained information extraction model can be a subject-verb-object extraction model (SPO extraction model).

[0056] This embodiment uses a pre-trained information extraction model to extract data from the target sentence, which can improve the accuracy and efficiency of data extraction.

[0057] In the above combination Figure 2 and Figure 3In some optional implementations of the described embodiments, the knowledge graph construction method also includes: in response to receiving query information containing the name of the target entity and the attributes of the target entity, sending the values ​​of the keywords corresponding to the attributes of the target entity to the sender of the query information.

[0058] In this embodiment, after receiving the query information including the name of the target entity and the attributes of the target entity, the value of the keyword corresponding to the attribute of the target entity may be sent to the sender of the query information.

[0059] For example, the server can establish a knowledge graph based on the industry standard documents of the power industry: obtain the keyword "not less than" and the industry standard documents, where the industry standard documents include the content: "Maintenance cycle:

[0060] Reference period: 35 kV equipment should be no less than 4 years, 110 kV to 750 kV equipment should be no less than 3 years, and 1000 kV equipment should be annually inspected;

[0061] The maintenance cycle can be extended or shortened as appropriate based on the benchmark cycle, depending on the equipment status, regional environment, grid structure and other characteristics. The adjusted maintenance cycle is generally not less than 1 year and not more than 2 times the benchmark cycle.

[0062] like Figure 4 As shown, the server can first extract the above-mentioned "Maintenance cycle: benchmark cycle: 35 kV equipment is not less than 4 years" from the industry standard document based on keywords as a target sentence in the industry standard document (i.e., extract the target sentence), and extract the name of the entity, the attributes of the entity, and the value of the keyword for the target sentence to form the knowledge information "35 kV substation equipment-benchmark maintenance cycle-4 years" (i.e., determine the knowledge information based on the target sentence). Based on all the target sentences in the industry standard document, multiple pieces of knowledge information can be formed and a knowledge graph can be constructed (i.e., a knowledge graph is constructed based on multiple pieces of knowledge information determined based on the full amount of target sentences).

[0063] When the system receives the query information sent by the user, "How long does it take for 35 kV substation equipment to undergo benchmark periodic maintenance?", it can send "4 years" to the user's terminal device through the constructed knowledge graph (i.e., receive the query information and feedback the query results).

[0064] Afterwards, the server can also receive feedback information from the user so that the server or developers can optimize the constructed knowledge graph (i.e., optimize the knowledge graph based on the feedback information of the query results).

[0065] This embodiment provides feedback to the user's query information based on the constructed knowledge information, which can improve the accuracy of the feedback information and the efficiency of the feedback information.

[0066] Further references Figure 5 , which shows a process 500 of another embodiment of a method for constructing a knowledge graph. The process 500 of the method for constructing a knowledge graph includes the following steps:

[0067] Step 501, obtaining keywords and industry standard information of a preset industry.

[0068] In this embodiment, the execution subject of the knowledge graph construction method (for example Figure 1 The server shown in the figure can receive keywords and industry standard information of preset industries sent by users through terminal devices, and can also obtain keywords and industry standard information of preset industries through local or cloud storage space of the server. Among them, the preset industry can be any industry, and the industry standard information can be standard information of any industry, such as "Technical Specifications for Design of Safety System of Wind Turbine Generator Sets", "Technical Specifications for Mobile Internet of Things (NB-IoT) Engineering", etc.

[0069] Step 502, using keywords to determine target sentences in the industry standard information.

[0070] In this embodiment, keywords can be used to determine target sentences in the industry standard information. Semantic matching technology can be used to determine sentences in the industry standard information whose semantics are similar to those of keywords, and determine the sentences whose semantics are similar to those of keywords as target sentences.

[0071] Step 503: Use a semantic analysis model to determine the name of the entity in the target sentence, the attributes of the entity, and the values ​​of the keywords corresponding to the attributes.

[0072] Step 504, using the entity name, the entity attributes and the values, determine the entity knowledge information.

[0073] The description of step 503 and step 504 in this embodiment is consistent with the description of step 203 and step 204, and will not be repeated here.

[0074] Step 505, using at least one piece of knowledge information of at least one entity determined based on industry standard information to construct an industry knowledge graph of a preset industry.

[0075] In this embodiment, an industry knowledge graph of a preset industry can be constructed by using one piece of knowledge information of an entity determined based on the industry standard information of the preset industry; multiple pieces of knowledge information of an entity determined based on the industry standard information of the preset industry can be constructed by using the industry knowledge graph of the preset industry; multiple entities determined based on the industry standard information of the preset industry and one or more pieces of knowledge information corresponding to each entity can be constructed by using the industry knowledge graph of the preset industry. Among them, the industry standard information of the preset industry used can be one or more pieces of industry standard information of the preset industry.

[0076] It can be understood that in addition to using industry standard information as an information collection, industry specification documents, industry solution documents, and other documents related to the preset industry can also be used as an information collection.

[0077] The knowledge graph construction method provided in this embodiment is Figure 2 Compared with the described embodiments, the information set used is industry standard information, and a step of using at least one piece of knowledge information to construct an industry knowledge graph is added, which can improve the utilization rate of existing industry data such as industry standard information. In addition, constructing the knowledge graph of the industry based on industry standard information can improve the accuracy, authority and industry applicability of the constructed knowledge graph.

[0078] Further references Figure 6 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a device for constructing a knowledge graph. Figure 2 and Figure 3 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0079] like Figure 6 As shown, the knowledge graph construction device 600 of this embodiment includes: an acquisition unit 601, a first determination unit 602, a second determination unit 603, a third determination unit 604, and a construction unit 605. Among them, the acquisition unit is configured to acquire keywords and information sets; the first determination unit is configured to use keywords to determine the target sentence in the information set; the second determination unit is configured to use the semantic analysis model to determine the name of the entity in the target sentence, the attribute of the entity, and the keyword value corresponding to the attribute; the third determination unit is configured to use the name of the entity, the attribute of the entity and the value of the entity to determine the knowledge information of the entity; the construction unit is configured to use at least one piece of knowledge information of at least one entity to construct the knowledge graph.

[0080] In some embodiments, the first determination unit includes: a first determination module configured to determine target information matching the keyword in the information set; and a second determination module configured to determine the sentence containing the target information as the target sentence.

[0081] In some embodiments, the second determination unit includes: an extraction module configured to use a pre-trained information extraction model to extract the name of the entity, the attributes of the entity, and the value of the entity from the target sentence.

[0082] In some embodiments, the third determination unit includes: a third determination module configured to determine the knowledge information of the entity by using the name of the entity, the attributes and values ​​of the entity, and the categories of keywords.

[0083] In some embodiments, the knowledge graph construction device also includes: a feedback unit, which is configured to send the values ​​of the keywords corresponding to the attributes of the target entity to the sender of the query information in response to receiving query information containing the name of the target entity and the attributes of the target entity.

[0084] In some embodiments, the information set includes industry standard information of a preset industry, and the construction unit includes: a construction module configured to construct an industry knowledge graph of the preset industry using at least one piece of knowledge information of at least one entity determined based on the industry standard information.

[0085] Each unit in the above device 600 is similar to the reference Figure 2 and Figure 3 Therefore, the operations, features and technical effects described above for the method of constructing a knowledge graph are also applicable to the device 600 and the units contained therein, and will not be repeated here.

[0086] According to an embodiment of the present application, the present application also provides an electronic device, a readable storage medium and a computer program product.

[0087] Figure 7 A schematic block diagram of an example electronic device 700 that can be used to implement an embodiment of the present application is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.

[0088] like Figure 7As shown, the device 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0089] Multiple components in the device 700 are connected to the I / O interface 705, including: an input unit 706, such as a keyboard, a mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a disk, an optical disk, etc.; and a communication unit 705, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 705 allows the device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0090] The computing unit 701 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 701 performs the various methods and processes described above, such as the construction method of the knowledge graph. For example, in some embodiments, the construction method of the knowledge graph may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 700 via ROM 702 and / or communication unit 705. When the computer program is loaded into RAM 703 and executed by the computing unit 701, one or more steps of the construction method of the knowledge graph described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to execute the construction method of the knowledge graph by any other appropriate means (e.g., by means of firmware).

[0091] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0092] The program code for implementing the method of the present application can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, implements the functions / operations specified in the flow chart and / or block diagram. The program code can be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0093] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0094] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0095] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0096] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.

[0097] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the data expected by the technical solution disclosed in this application can be achieved, and this document is not limited here.

[0098] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.

Claims

1. A method for constructing a knowledge graph, comprising: Get keywords and information collection; Determining target information matching the keyword in the information set; Determine the sentence containing the target information as the target sentence; Using a semantic analysis model to determine the name of an entity in the target sentence, the attributes of the entity, and the values ​​of the keywords corresponding to the attributes; Determine the knowledge information of the entity by using the name of the entity, the attribute of the entity and the value; A knowledge graph is constructed using at least one entity and at least one piece of knowledge information.

2. The method according to claim 1, wherein: The adopting of a semantic analysis model to determine the name of an entity in the target sentence, the attribute of the entity, and the value of the keyword corresponding to the attribute includes: A pre-trained information extraction model is used to extract the name of the entity, the attributes of the entity, and the value from the target sentence.

3. The method according to claim 1, wherein: The adopting the name of the entity, the attribute of the entity and the value to determine the knowledge information of the entity includes: The knowledge information of the entity is determined by using the name of the entity, the attribute of the entity, the value and the category of the keyword.

4. The method according to claim 1, wherein: The method further comprises: In response to receiving query information including the name of a target entity and the attributes of the target entity, the values ​​of the keywords corresponding to the attributes of the target entity are sent to a sender of the query information.

5. The method according to claim 1, wherein: The information set includes industry standard information of a preset industry, and the knowledge graph is constructed by using at least one piece of knowledge information of at least one entity, including: An industry knowledge graph of the preset industry is constructed by using at least one piece of knowledge information of at least one entity determined based on the industry standard information.

6. A knowledge graph construction device, comprising: An acquisition unit, configured to acquire keywords and information sets; A first determination module is configured to determine target information matching the keyword in the information set; A second determination module is configured to determine the sentence containing the target information as a target sentence; A second determination unit is configured to determine the name of the entity in the target sentence, the attribute of the entity, and the value of the keyword corresponding to the attribute by using a semantic analysis model; A third determining unit is configured to determine the knowledge information of the entity by using the name of the entity, the attribute of the entity and the value; The construction unit is configured to construct a knowledge graph using at least one piece of knowledge information of at least one entity.

7. The device according to claim 6, wherein: The second determining unit includes: The extraction module is configured to use a pre-trained information extraction model to extract the name of the entity, the attributes of the entity and the value from the target sentence.

8. The device according to claim 6, wherein: The third determining unit includes: The third determination module is configured to determine the knowledge information of the entity by using the name of the entity, the attribute of the entity, the value and the category of the keyword.

9. The device according to claim 6, wherein: The device also includes: The feedback unit is configured to send the value of the keyword corresponding to the attribute of the target entity to the sender of the query information in response to receiving the query information including the name of the target entity and the attribute of the target entity.

10. The device according to claim 6, wherein: The information set includes industry standard information of a preset industry, and the construction unit includes: The construction module is configured to construct an industry knowledge graph of the preset industry using at least one piece of knowledge information of at least one entity determined based on the industry standard information.

11. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 5.

12. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 5.

13. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Label recommendation method and device

    CN109033101A

  • Intelligent question answering method and knowledge map system construction method, device and equipment thereof

    CN109145102A

  • A method and apparatus for updating a knowledge map

    CN109189938A

  • Core entity determination method and system, server and computer readable medium

    CN110210038A

  • Knowledge graph retrieval method and retrieval system based on packaging field

    CN110516047A