Method and device for checking knowledge base triad
A technology of triples and knowledge base, applied in the field of knowledge base, can solve the problem that the efficiency is difficult to meet the needs of building a large-scale knowledge base
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0110] figure 1 It is a flowchart of a method for checking triplets in a knowledge base provided by Embodiment 1 of the present invention. Such as figure 1 As shown, the present embodiment provides a method for checking knowledge base triples, and the specific steps of the method are as follows:
[0111] S101. Obtain M words used to characterize the first relationship in the corpus as target feature words, and acquire the first weight value of the target feature words. The corpus includes multiple sentences, and each sentence includes at least one word, wherein M is a positive integer .
[0112] In this embodiment, the corpus refers to a large-scale electronic text library through scientific sampling and processing, which stores language materials that have actually appeared in the actual use of the language, such as literary works, sentence paragraphs of newspapers and magazines, etc. The corpus includes a plurality of sentences, and each sentence includes at least one wor...
Embodiment 2
[0120] figure 2 It is a flowchart of a method for checking triplets in a knowledge base provided by Embodiment 2 of the present invention. Such as figure 2 As shown, the method for checking knowledge base triples provided in this embodiment specifically includes the following steps:
[0121] S201. Obtain N target triples whose relationship is the first relationship in the knowledge base, where N is a positive integer.
[0122] For the convenience of description, in this embodiment, the first relationship is set as "teacher-student". First, obtain N target triplets whose relationship is "teacher-student" from the knowledge base, such as , , Etc., the acquisition process can be random acquisition, or acquisition by predetermined rules. The number N of target triples can be selected according to actual needs. The larger the number, the more M target feature words obtained can represent the "teacher-student" relationship, and the corresponding first weight value is more acc...
Embodiment 3
[0191] In this embodiment, a specific example is given to illustrate the method for checking triplets in the knowledge base.
[0192] Through the above-mentioned embodiment, the triplets whose first relationship is "teacher-student" in the knowledge base are tested, among which N=100 triplets whose first relationship is "teacher-student" are randomly selected, and after S201-S205 After (wherein M=200, Q=10), obtain the target feature word (only showing part target feature word) as shown in table 1:
[0193] Table 1
[0194]
[0195] On the basis of the 200 target feature words and the corresponding first weight values obtained above, according to S206, the confidence of the triples to be tested whose first relationship is "teacher-student" in the knowledge base is obtained, thereby obtaining Table 2.
[0196] Table 2
[0197]
[0198] Further, by selecting the first L (L=100) triples with higher confidence as positive triples, and obtaining S triples whose relationsh...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com