A method, device, electronic device and medium for constructing a knowledge graph

Through multiple trainings and confidence adjustments of the deep learning model based on the training set, the problem of insufficient accuracy of manual classification rules in the construction of the knowledge graph is solved, and higher classification accuracy and comprehensiveness of the knowledge graph are achieved.

CN110990627BActive Publication Date: 2024-08-30BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN201911232995.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-12-05
Publication Date
2024-08-30
Estimated Expiration
2039-12-05

AI Technical Summary

Technical Problem

In the process of constructing knowledge graphs in the prior art, manually set classification rules are difficult to ensure comprehensiveness and accuracy, resulting in insufficient accuracy in the construction of knowledge graphs.

Method used

Use a classification model that trains the deep learning model multiple times based on the training set, combine the first confidence level and the second confidence level to re-determine the classification results of the knowledge information to be classified, and improve the classification accuracy by adjusting the annotation results in the training set multiple times. Spend.

Benefits of technology

Through the adjusted classification results, the classification of the knowledge information to be classified can be more accurately represented. The trained classification model has higher accuracy, and the knowledge graph can be constructed more accurately.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110990627B
    Figure CN110990627B
Patent Text Reader

Abstract

The embodiments of the present invention provide a method, device, electronic device and medium for constructing a knowledge graph, which relates to the field of information processing technology, and enables the constructed knowledge graph to have higher accuracy. The embodiments of the present invention include: obtaining knowledge information to be classified, inputting the knowledge information to be classified into a classification model, obtaining a classification result corresponding to the knowledge information to be classified output by the classification model, and then adding the knowledge information to be classified to the knowledge graph according to the classification result corresponding to the knowledge information to be classified. For each piece of knowledge information to be trained in the training set, the classification result of the knowledge information to be trained included in the training set used for non-first training is: the classification result re-determined according to the first confidence and the second confidence, the first confidence being the confidence of the deep learning model for the classification result of the knowledge information to be trained, and the second confidence being the confidence of the initial classification result of the knowledge information to be trained based on the preset classification rule.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information processing technology, and in particular to a method, device, electronic device and medium for constructing a knowledge graph. Background Art

[0002] Knowledge graphs are used to describe various entities that exist in the real world, as well as the relationships between entities. Specifically, visualization technology can be used to describe knowledge resources and their carriers, and to mine, analyze, construct, draw and display knowledge and the connections between them. Taking video websites as an example, the current method of constructing knowledge graphs in video websites is to obtain film and television materials in video websites, and obtain materials from various vertical websites through crawler technology, and then classify the obtained materials according to preset classification rules, so as to store each material in the corresponding category in the knowledge graph according to the classification results, thereby constructing a knowledge graph.

[0003] However, in the prior art, manually set classification rules are used in the process of data classification. Due to the limited ability of humans to obtain information, it is difficult to ensure that the set classification rules are comprehensive and accurate. The accuracy of classification using manually set classification rules is difficult to guarantee, and it is difficult to accurately construct a knowledge graph. Summary of the invention

[0004] The purpose of the embodiments of the present invention is to provide a method, device, electronic device and device for constructing a knowledge graph, so that the constructed knowledge graph has higher accuracy. The specific technical solution is as follows:

[0005] In a first aspect, an embodiment of the present application provides a method for constructing a knowledge graph, including:

[0006] Obtaining knowledge information to be classified;

[0007] Inputting the knowledge information to be classified into a classification model, and obtaining a classification result corresponding to the knowledge information to be classified output by the classification model;

[0008] According to the classification result corresponding to the knowledge information to be classified, the knowledge information to be classified is added to the knowledge graph;

[0009] Wherein, the classification model is a model obtained by training the deep learning model multiple times based on the training set; for each piece of knowledge information to be trained in the training set, the classification result of the knowledge information to be trained included in the training set used for the first training is the initial classification result determined for the knowledge information to be trained based on the preset classification rules;

[0010] For each piece of knowledge information to be trained in the training set, the classification result of the knowledge information to be trained included in the training set used for non-first training is: the classification result re-determined according to the first confidence and the second confidence, the first confidence is the confidence of the classification result of the knowledge information to be trained by the deep learning model, and the second confidence is the confidence of the initial classification result of the knowledge information to be trained based on the preset classification rule.

[0011] In a possible implementation, if the first confidence level and the second confidence level meet a preset condition, the classification result re-determined according to the first confidence level and the second confidence level is the classification result of the deep learning model for the knowledge information to be trained;

[0012] If the first confidence level and the second confidence level do not satisfy the preset condition, the classification result re-determined according to the first confidence level and the second confidence level is the initial classification result of the knowledge information to be trained;

[0013] Among them, the preset condition is: the first confidence is greater than the model confidence threshold, and the second confidence is less than the rule confidence threshold.

[0014] In a possible implementation, the knowledge information to be classified is entry information in a preset knowledge base, and the knowledge information to be trained is entry information in the preset knowledge base; and obtaining the knowledge information to be classified includes:

[0015] Filter the entry information in the preset knowledge base according to the preset filtering rules;

[0016] The information of the terms to be classified is obtained from the filtered preset knowledge base.

[0017] In a second aspect, the present application embodiment provides a method for constructing a knowledge graph, including:

[0018] S1. Obtain the knowledge information to be trained;

[0019] S2. constructing a training set according to the acquired knowledge information to be trained, wherein the training set includes the knowledge information to be trained and initial classification results of each piece of knowledge information to be trained determined based on a preset classification rule;

[0020] S3, inputting the knowledge information to be trained in the training set into the deep learning model, and obtaining the classification result of the knowledge information to be trained output by the deep learning model;

[0021] S4. For each piece of knowledge information to be trained in the training set, the deep learning model is trained according to the first confidence and the second confidence, or the classification result of the knowledge information to be trained is re-determined, and the classification result of the knowledge information to be trained in the training set is updated to the re-determined classification result to obtain an updated training set; the first confidence is the confidence of the classification result of the knowledge information to be trained by the deep learning model, and the second confidence is the confidence of the initial classification result of the knowledge information to be trained based on the preset classification rule;

[0022] S5. Loop through S3 to S4 based on the updated training set until it is determined that the classification accuracy of the deep learning model reaches a preset accuracy threshold, or the number of loop executions reaches a preset number of times, and use the deep learning model as a classification model. The classification model is used to classify the knowledge information to be classified, so that the electronic device adds the knowledge information to be classified to the knowledge graph according to the classification result of the knowledge to be classified.

[0023] In a possible implementation, for each piece of knowledge information to be trained in the training set, the deep learning model is trained according to the first confidence level or the second confidence level, or a classification result of the knowledge information to be trained is re-determined, and the classification result of the knowledge information to be trained in the training set is updated to the re-determined classification result, including:

[0024] If the first confidence level and the second confidence level do not meet a preset condition, training the deep learning model according to the classification result of the knowledge information to be trained output by the deep learning model and the initial classification result of the knowledge information to be trained;

[0025] If the first confidence level and the second confidence level meet the preset condition, the classification result of the knowledge information to be trained in the training set is updated to: the classification result of the knowledge information to be trained by the deep learning model;

[0026] Among them, the preset condition is: the first confidence is greater than the model confidence threshold, and the second confidence is less than the rule confidence threshold.

[0027] In a possible implementation manner, the knowledge information to be trained is term information in a preset knowledge base, and the knowledge information to be classified is term information in the preset knowledge base.

[0028] In a third aspect, an embodiment of the present application provides a device for constructing a knowledge graph, including:

[0029] An acquisition module, used to acquire knowledge information to be classified;

[0030] A classification module, used for inputting the knowledge information to be classified acquired by the acquisition module into a classification model, and acquiring a classification result corresponding to the knowledge information to be classified output by the classification model;

[0031] An adding module, used for adding the knowledge information to be classified to the knowledge graph according to the classification result corresponding to the knowledge information to be classified;

[0032] Wherein, the classification model is a model obtained by training the deep learning model multiple times based on the training set; for each piece of knowledge information to be trained in the training set, the classification result of the knowledge information to be trained included in the training set used for the first training is the initial classification result determined for the knowledge information to be trained based on the preset classification rules;

[0033] For each piece of knowledge information to be trained in the training set, the classification result of the knowledge information to be trained included in the training set used for non-first training is: the classification result re-determined according to the first confidence and the second confidence, the first confidence is the confidence of the classification result of the knowledge information to be trained by the deep learning model, and the second confidence is the confidence of the initial classification result of the knowledge information to be trained based on the preset classification rule.

[0034] In a possible implementation, if the first confidence level and the second confidence level meet a preset condition, the classification result re-determined according to the first confidence level and the second confidence level is the classification result of the deep learning model for the knowledge information to be trained;

[0035] If the first confidence level and the second confidence level do not satisfy the preset condition, the classification result re-determined according to the first confidence level and the second confidence level is the initial classification result of the knowledge information to be trained;

[0036] Among them, the preset condition is: the first confidence is greater than the model confidence threshold, and the second confidence is less than the rule confidence threshold.

[0037] In a possible implementation, the knowledge information to be classified is entry information in a preset knowledge base, and the knowledge information to be trained is entry information in the preset knowledge base; the acquisition module is specifically used to:

[0038] Filter the entry information in the preset knowledge base according to the preset filtering rules;

[0039] The information of the terms to be classified is obtained from the filtered preset knowledge base.

[0040] In a fourth aspect, an embodiment of the present application provides a device for constructing a knowledge graph, including:

[0041] An acquisition module, used to acquire knowledge information to be trained;

[0042] A construction module, used to construct a training set according to the knowledge information to be trained acquired by the acquisition module, wherein the training set includes the knowledge information to be trained and initial classification results of each piece of knowledge information to be trained determined based on a preset classification rule;

[0043] A classification module, used to input the knowledge information to be trained in the training set into the deep learning model, and obtain the classification result of the knowledge information to be trained output by the deep learning model;

[0044] A training module, for training the deep learning model according to a first confidence level and a second confidence level for each piece of knowledge information to be trained in the training set, or re-determining the classification result of the knowledge information to be trained, and updating the classification result of the knowledge information to be trained in the training set to the re-determined classification result, to obtain an updated training set; the first confidence level is the confidence level of the classification result of the knowledge information to be trained by the deep learning model, and the second confidence level is the confidence level of the initial classification result of the knowledge information to be trained based on a preset classification rule;

[0045] A loop module is used to cyclically trigger the classification module and the training module based on the updated training set until it is determined that the classification accuracy of the deep learning model reaches a preset accuracy threshold, or the number of loop executions reaches a preset number of times, and the deep learning model is used as a classification model. The classification model is used to classify the knowledge information to be classified, so that the electronic device adds the knowledge information to be classified to the knowledge graph according to the classification result of the knowledge to be classified.

[0046] In a possible implementation, the training module is specifically used to:

[0047] If the first confidence level and the second confidence level do not meet a preset condition, training the deep learning model according to the classification result of the knowledge information to be trained output by the deep learning model and the initial classification result of the knowledge information to be trained;

[0048] If the first confidence level and the second confidence level meet the preset condition, the classification result of the knowledge information to be trained in the training set is updated to: the classification result of the knowledge information to be trained by the deep learning model;

[0049] Among them, the preset condition is: the first confidence is greater than the model confidence threshold, and the second confidence is less than the rule confidence threshold.

[0050] In a possible implementation manner, the knowledge information to be trained is term information in a preset knowledge base, and the knowledge information to be classified is term information in the preset knowledge base.

[0051] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is prompted by the machine-executable instructions to implement the method described in the first aspect or the second aspect.

[0052] In a sixth aspect, an embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the method described in the first aspect or the second aspect is implemented.

[0053] In a fifth aspect, an embodiment of the present application further provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the method described in the first aspect or the second aspect above.

[0054] The method and device for constructing a knowledge graph provided by the embodiment of the present application can classify the knowledge information to be classified based on the classification model, and add the knowledge information to be classified to the knowledge graph according to the classification results corresponding to the knowledge information to be classified. Since the classification model is a model obtained by training the deep learning model based on the training set, the classification results of the knowledge information to be trained included in the training set used for non-first training are: the classification results re-determined according to the first confidence and the second confidence, the first confidence is the confidence of the classification result of the deep learning model for the training knowledge information, and the second confidence is the confidence of the classification result of the training knowledge information based on the preset classification rules, so the classification results adjusted based on the first confidence and the second confidence can more accurately represent the classification of the knowledge information to be trained, and through multiple adjustments, the labeling results of the knowledge information to be trained in the training set are more and more accurate, and then a classification model with higher classification accuracy can be trained to construct the knowledge graph more accurately.

[0055] Of course, it is not necessary to achieve all of the advantages described above at the same time to implement any product or method of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0057] Figure 1 A flowchart of a method for constructing a knowledge graph provided in an embodiment of the present invention;

[0058] Figure 2 A flowchart of another method for constructing a knowledge graph provided by an embodiment of the present invention;

[0059] Figure 3 A flowchart of another method for constructing a knowledge graph provided by an embodiment of the present invention;

[0060] Figure 4 A schematic diagram of a classification process of entry information to be classified provided by an embodiment of the present invention;

[0061] Figure 5 A schematic diagram of the structure of another device for constructing a knowledge graph provided in an embodiment of the present invention;

[0062] Figure 6 A schematic diagram of the structure of another device for constructing a knowledge graph provided in an embodiment of the present invention;

[0063] Figure 7 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0064] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0065] The present application embodiment provides a method for constructing a knowledge graph, which can be executed by an electronic device, such as Figure 1 As shown, the method includes:

[0066] S101. Obtain knowledge information to be classified.

[0067] S102: input the knowledge information to be classified into the classification model, and obtain the classification result corresponding to the knowledge information to be classified output by the classification model.

[0068] The classification model is a model obtained by training the deep learning model multiple times based on the training set; for each piece of knowledge information to be trained in the training set, the classification result of the knowledge information to be trained included in the training set used for the first training is the initial classification result determined for the knowledge information to be trained based on the preset classification rules;

[0069] For each piece of knowledge information to be trained in the training set, the classification result of the knowledge information to be trained included in the training set used for non-first training is: the classification result re-determined according to the first confidence and the second confidence, the first confidence is the confidence of the classification result of the training knowledge information treated by the deep learning model, and the second confidence is the confidence of the initial classification result of the training knowledge information based on the preset classification rules.

[0070] S103. Add the knowledge information to be classified into the knowledge graph according to the classification result corresponding to the knowledge information to be classified.

[0071] By adopting the method for constructing a knowledge graph provided by the embodiment of the present application, the knowledge information to be classified can be classified based on the classification model, and the knowledge information to be classified can be added to the knowledge graph according to the classification results corresponding to the knowledge information to be classified. Since the classification model is a model obtained by training the deep learning model based on the training set, the classification results of the knowledge information to be trained included in the training set used for non-first training are: the classification results re-determined according to the first confidence and the second confidence, the first confidence is the confidence of the classification result of the deep learning model for the training knowledge information, and the second confidence is the confidence of the classification result of the training knowledge information based on the preset classification rules, so the classification results adjusted based on the first confidence and the second confidence can more accurately represent the classification of the knowledge information to be trained, and through multiple adjustments, the labeling results of the knowledge information to be trained in the training set are more and more accurate, and then a classification model with higher classification accuracy can be trained, and then the knowledge graph can be constructed more accurately.

[0072] With respect to the above S101, the knowledge information to be classified may be the entry information in the preset knowledge base. The preset knowledge base may be an encyclopedic knowledge base, which refers to a database covering all fields of knowledge, and the basic constituent unit of the encyclopedic database is the entry information. The specific content of each entry information includes the description information and attribute information of the entry information, as well as a detailed description of the entry information. Among them, the description information is the basic explanation of the entry information, and the attribute information includes the alias, Chinese name, foreign name, classification information, etc. of the entry information.

[0073] Based on this, Figure 2 As shown, the above S101, obtaining the knowledge information to be classified, can be specifically implemented as S1011-S1012.

[0074] S1011. Filter the entry information in the preset knowledge base according to the preset filtering rules.

[0075] Among them, the preset filtering rules are used to filter information that is not related to the knowledge graph.

[0076] For example, if the knowledge graph constructed in the embodiment of the present application is the knowledge graph of a video website, then the entry information of hybrid crop varieties named by numbers in the encyclopedia database is obviously irrelevant to the knowledge graph of the video website and should be filtered. In addition, for non-standard entry information in the encyclopedia, such as entry information without attribute information and detailed description, the actual meaning of the entry information cannot be determined based on the content of the entry information, which is not helpful for constructing the knowledge graph and should also be filtered.

[0077] The preset filtering rules can be set based on actual conditions. Specifically, the characteristics of the entry information of information unrelated to the knowledge graph can be determined, and the determined characteristics can be used as preset filtering rules to construct a rule generator, and then the entry information in the encyclopedia database can be filtered through the rule generator.

[0078] S1012. Obtain information of terms to be classified from the filtered preset knowledge base.

[0079] In the embodiment of the present application, since the information in the preset knowledge base is relatively rich, compared with the related technology that can only obtain information from video websites and vertical websites to construct a knowledge graph, the embodiment of the present application can obtain richer information on terms to be classified from the preset knowledge base, and thus the constructed knowledge graph is richer and more comprehensive.

[0080] For the above S102, the classification results of the knowledge to be trained in the training set used in each round of training of the deep learning model are different.

[0081] In an embodiment of the present application, based on each category included in the knowledge graph, a specified number of knowledge information can be selected as the knowledge information to be trained, and each piece of knowledge information to be trained can be classified based on preset classification rules to obtain an initial classification result for each piece of knowledge information to be trained.

[0082] Among them, the preset classification rules are rules obtained based on the characteristics and laws of the knowledge information of each category, and each category corresponds to a rule pool.

[0083] For example, for video websites, the categories included in the knowledge graph may include 14 categories such as organizations, dramas, dances, characters, sports, etc. Taking the organizational structure entries as an example, the entry names usually contain words such as school, research institute, and company; the attribute information generally includes information such as the establishment time, founder, and company name; the entry labels are generally company groups, institutions, schools, etc. Based on the above rules, a rule pool corresponding to the organizational category can be constructed. For example, the rules included in the rule pool may include: the name of the entry includes the "Principal" field, the attribute information of the entry includes the "establishment time" attribute, and the entry label is school. The above is just an example. In actual applications, each category of the rule pool may include dozens or hundreds of rules.

[0084] For each piece of knowledge information to be trained, the knowledge information to be trained can be segmented and matched with the rules in each category of the rule pool. Segmented matching means: matching the entry name of the knowledge information to be trained with the rules corresponding to the entry name in each rule pool one by one, matching the attribute field of the knowledge information to be trained with the rules corresponding to the attribute information in each rule pool one by one, and matching the label of the knowledge information to be trained with the rules corresponding to the label in each rule pool one by one. In this way, the number of successful matches between the knowledge information to be trained and the rules in each category of the rule pool is determined, and the category corresponding to the rule pool with the most successful matches is used as the initial classification result of the knowledge information to be trained.

[0085] For example, if the number of successful matches between the term information to be trained and the rules in the rule pool of category A is 0, the number of successful matches between the term information to be trained and the rules in the rule pool of category B is 1, and the number of successful matches between the term information to be trained and the rules in the rule pool of category C is 2, then the initial classification result of the term information to be trained is category C.

[0086] Further, for the classification results of the knowledge information to be trained included in the training set used for the non-first training in the above S102, if the first confidence and the second confidence meet the preset conditions, the classification results re-determined according to the first confidence and the second confidence are the classification results of the knowledge information to be trained by the deep learning model; if the first confidence and the second confidence do not meet the preset conditions, the classification results re-determined according to the first confidence and the second confidence are the initial classification results of the knowledge information to be trained;

[0087] Among them, the preset conditions are: the first confidence is greater than the model confidence threshold, and the second confidence is less than the rule confidence threshold.

[0088] The first confidence level represents the degree of credibility of the deep learning model's classification results for the training implementation information. After the knowledge information to be trained is input into the deep learning model, the deep learning model can output the probability that the knowledge information to be trained belongs to each category, and the category with the highest probability is taken as the classification result of the deep learning model for the knowledge information to be trained. The first confidence level corresponding to the classification result is the probability that the knowledge information to be trained output by the deep learning model belongs to this category.

[0089] For example, if the probability that the knowledge information to be trained outputted by the deep learning model belongs to category A is 90%, the probability that it belongs to category B is 30%, and the probability that it belongs to category C is 90%. Then it is determined that the classification result of the deep learning model for the knowledge information to be trained is category A, and the corresponding first confidence is 90%.

[0090] The second confidence level represents the credibility of the initial classification result of the knowledge information to be trained based on the preset classification rule. The second confidence level is specifically the number of successful matches between the term information to be trained and the rules in the rule pool corresponding to the initial classification rule. For example, if the initial classification result of the knowledge information to be trained is category A, and the number of successful matches between the knowledge information to be trained and the rules in the rule pool corresponding to category A is 2, then the second confidence level is 2.

[0091] In an embodiment of the present application, if the first confidence is greater than the model confidence threshold and the second confidence is less than the rule confidence threshold, it means that the classification result of the deep learning model is more accurate. In this case, the classification result of the knowledge information to be trained in the training set is updated to the classification result output by the deep learning model, so that the labeling of the knowledge information to be trained in the training set is more accurate, and thus the classification performance of the trained classification model is better.

[0092] As an example, the model confidence threshold may be 80% and the rule confidence threshold may be 2.

[0093] Regarding the above S103, in a possible implementation, since the information already existing in the knowledge graph may have the same name as the knowledge information to be classified, a disambiguation operation may be performed before adding the knowledge information to be classified to the knowledge graph.

[0094] Specifically, the electronic device can determine whether there is knowledge information with the same name as the knowledge information to be classified in the knowledge graph.

[0095] If so, the knowledge information to be classified and the knowledge information with the same name are input into the disambiguation model to obtain the output result of the disambiguation model, wherein the disambiguation model is used to determine whether two entities with the same name belong to the same entity.

[0096] For example, if the names of the knowledge information to be classified and a piece of knowledge information in the knowledge graph are both "apple", and the two pieces of knowledge information belong to the same category, the knowledge information to be classified named "apple" and the knowledge information in the knowledge graph named "apple" can be input into the disambiguation model, and the output result of the disambiguation model can be obtained. For example, if the output result of the disambiguation model is: the probability that the two pieces of knowledge information belong to the same entity is 80%, and the probability that the two pieces of knowledge information do not belong to the same entity is 20%, then the two pieces of knowledge information are considered to belong to the same entity.

[0097] Based on the above judgment results, if there is no knowledge information with the same name belonging to the same category as the knowledge information to be classified in the knowledge graph, or the output result of the disambiguation model is that the knowledge information to be classified and the knowledge information with the same name do not belong to the same entity, the electronic device can add the term information to be classified to the knowledge graph.

[0098] If the output result of the disambiguation model is that the knowledge information to be classified and the knowledge information with the same name belong to the same entity, the knowledge information to be classified and the knowledge information with the same name are entity disambiguated to obtain the knowledge information after entity disambiguation, and the knowledge information with the same name in the knowledge graph is updated to the knowledge information after disambiguation.

[0099] In combination with the above example, entity disambiguation specifically integrates the knowledge information to be classified named "apple" and the knowledge information in the knowledge graph named "apple", and merges these two pieces of knowledge information into one piece of knowledge information.

[0100] By adopting this method, a disambiguation operation is performed before adding the knowledge information to be classified into the knowledge graph, which can avoid the existence of multiple entities with the same name under the same category in the knowledge graph and improve the accuracy of the knowledge graph.

[0101] In another embodiment of the present application, a method for constructing a knowledge graph is also provided, such as Figure 3 As shown, the method includes:

[0102] S301, obtaining knowledge information to be trained.

[0103] S302: construct a training set according to the acquired knowledge information to be trained, where the training set includes the knowledge information to be trained and initial classification results of each piece of knowledge information to be trained determined based on preset classification rules.

[0104] S303: Input the knowledge information to be trained in the training set into the deep learning model, and obtain the classification result of the knowledge information to be trained output by the deep learning model.

[0105] S304. For each piece of knowledge information to be trained in the training set, the deep learning model is trained according to the first confidence level and the second confidence level, or the classification result of the knowledge information to be trained is re-determined, and the classification result of the knowledge information to be trained in the training set is updated to the re-determined classification result to obtain an updated training set.

[0106] Among them, the first confidence level is the confidence level of the classification result of the deep learning model for the training knowledge information, and the second confidence level is the confidence level of the initial classification result of the training knowledge information based on the preset classification rules.

[0107] S305. Loop through S303 to S304 based on the updated training set until it is determined that the classification accuracy of the deep learning model reaches a preset accuracy threshold, or the loop execution times reaches a preset number of times, and use the deep learning model as a classification model. The classification model is used to classify the knowledge information to be classified, so that the electronic device adds the knowledge information to be classified to the knowledge graph according to the classification results of the knowledge to be classified.

[0108] By adopting the method for constructing a knowledge graph provided by the embodiment of the present application, after the knowledge information to be trained in the training set is input into the deep learning model, the classification result of the deep learning model for the knowledge information to be trained can be obtained, and for each knowledge information to be trained, the deep learning model can be trained according to the first confidence and the second confidence, or the classification result of the knowledge information to be trained can be re-determined, and the classification result of the knowledge information to be trained in the training set can be updated to the re-determined classification result. Since the first confidence is the confidence of the classification result of the deep learning model for the knowledge information to be trained, and the second confidence is the confidence of the classification result of the knowledge information to be trained based on the preset classification rules, the classification result adjusted based on the first confidence and the second confidence can more accurately represent the classification of the knowledge information to be trained, and then the above process is repeated according to the updated training set, so that the result of the knowledge information to be trained in the training set can be made more and more accurate, and then the performance of the classification model obtained by training can be made better and better. Since more accurate classification results can be obtained through the classification model, the knowledge graph can be constructed more accurately based on the classification results.

[0109] Regarding the above S301, obtaining the knowledge information to be trained, it can be specifically implemented as follows: filtering the entry information in the preset knowledge base according to the preset filtering rule, and then obtaining the entry information to be classified from the filtered preset knowledge base. Accordingly, the knowledge information to be trained and the knowledge information to be classified in the embodiment of the present application are both entry information in the preset knowledge base.

[0110] The method for filtering the entry information in the preset knowledge base is the same as the method described in S1011 above. Please refer to the relevant description in S1011 above, and will not be repeated here.

[0111] With respect to the above S303, the knowledge information to be trained in the training set is input into the deep learning model, and the classification result of the knowledge information to be trained output by the deep learning model is obtained.

[0112] In one implementation, taking the knowledge information to be trained as term information as an example, before the term information is input into the deep learning model, the term information can be expressed in a vectorized form, and then the vectorized term information is input into the deep learning model.

[0113] like Figure 4 As shown, the name, attribute information, and label of the entry information can be segmented separately, and the segmentation results can be converted into word vectors to obtain the word vector corresponding to the name of the entry information, the word vector corresponding to the attribute information, and the word vector corresponding to the label, and these word vectors are input into the deep learning model, and then the deep learning model outputs the classification result of the entry information.

[0114] For the above S304, for each piece of knowledge information to be trained in the training set, according to the first confidence level and the second confidence level, the deep learning model is trained, or the classification result of the knowledge information to be trained is re-determined, and the classification result of the knowledge information to be trained in the training set is updated to the re-determined classification result to obtain an updated training set, specifically including the following two cases:

[0115] Case 1: If the first confidence level and the second confidence level do not meet the preset conditions, the deep learning model is trained according to the classification results of the knowledge information to be trained output by the deep learning model and the initial classification results of the knowledge information to be trained.

[0116] Among them, the preset conditions are: the first confidence is greater than the model confidence threshold, and the second confidence is less than the rule confidence threshold.

[0117] In an embodiment of the present application, if the first confidence is not greater than the model confidence threshold, or the second confidence is not less than the rule confidence threshold, it is determined that the initial classification result of the knowledge information to be trained is more accurate than the classification result of the deep learning model for the knowledge information to be trained, so the deep learning model can be trained based on the initial classification result of the knowledge information to be trained.

[0118] The training method is to use the initial classification results as the standard of the knowledge information to be trained, calculate the loss function based on the initial classification results and the classification results output by the deep learning model, and then adjust the parameters of the deep learning model through the back propagation algorithm based on the calculated loss function value.

[0119] Case 2: If the first confidence level and the second confidence level meet the preset conditions, the classification result of the knowledge information to be trained in the training set is updated to: the classification result of the deep learning model for the knowledge information to be trained.

[0120] If the first confidence is greater than the model confidence threshold, and the second confidence is less than the rule confidence threshold, it means that the classification result of the deep learning model for the training knowledge information is more accurate than the initial classification result of the training knowledge information, so the classification result of the training knowledge information in the training set is updated to the classification result of the deep learning model for the training knowledge information, so that the labeling of the training knowledge information is more accurate. In the next round of training, the classification performance of the deep learning model can be improved by training the deep learning model with the adjusted training set.

[0121] In one embodiment, the deep learning model in the embodiment of the present application is a translation (Transformer) model, and for the encoding part of the Transformer model, a three-layer self-attention structure can be used. The classification accuracy of this model as a classification model is higher than that of using a neural network model as a classification model.

[0122] Based on the same technical concept, the present application embodiment provides a device for constructing a knowledge graph, such as Figure 5 As shown, the device includes: an acquisition module 501, a classification module 502, and an adding module 503.

[0123] An acquisition module 501 is used to acquire knowledge information to be classified;

[0124] The classification module 502 is used to input the knowledge information to be classified obtained by the acquisition module 501 into the classification model, and obtain the classification result corresponding to the knowledge information to be classified output by the classification model;

[0125] An adding module 503 is used to add the knowledge information to be classified into the knowledge graph according to the classification result corresponding to the knowledge information to be classified;

[0126] The classification model is a model obtained by training the deep learning model multiple times based on the training set; for each piece of knowledge information to be trained in the training set, the classification result of the knowledge information to be trained included in the training set used for the first training is the initial classification result determined for the knowledge information to be trained based on the preset classification rules;

[0127] For each piece of knowledge information to be trained in the training set, the classification result of the knowledge information to be trained included in the training set used for non-first training is: the classification result re-determined according to the first confidence and the second confidence, the first confidence is the confidence of the classification result of the training knowledge information treated by the deep learning model, and the second confidence is the confidence of the initial classification result of the training knowledge information based on the preset classification rules.

[0128] Optionally, if the first confidence level and the second confidence level meet a preset condition, the classification result re-determined according to the first confidence level and the second confidence level is the classification result of the deep learning model for the training knowledge information;

[0129] If the first confidence level and the second confidence level do not meet the preset conditions, the classification result re-determined according to the first confidence level and the second confidence level is the initial classification result of the knowledge information to be trained;

[0130] Among them, the preset conditions are: the first confidence is greater than the model confidence threshold, and the second confidence is less than the rule confidence threshold.

[0131] Optionally, the knowledge information to be classified is the entry information in a preset knowledge base, and the knowledge information to be trained is the entry information in a preset knowledge base; the acquisition module 501 is specifically used for:

[0132] Filter the entry information in the preset knowledge base according to the preset filtering rules;

[0133] The information of the terms to be classified is obtained from the filtered preset knowledge base.

[0134] The device constructed by using the knowledge graph provided by the embodiment of the present application can classify the knowledge information to be classified based on the classification model, and add the knowledge information to be classified to the knowledge graph according to the classification results corresponding to the knowledge information to be classified. Since the classification model is a model obtained by training the deep learning model based on the training set, the classification results of the knowledge information to be trained included in the training set used for non-first training are: the classification results re-determined according to the first confidence and the second confidence, the first confidence is the confidence of the classification result of the deep learning model for the training knowledge information, and the second confidence is the confidence of the classification result of the training knowledge information based on the preset classification rules, so the classification results adjusted based on the first confidence and the second confidence can more accurately represent the classification of the knowledge information to be trained, and through multiple adjustments, the labeling results of the knowledge information to be trained in the training set are more and more accurate, and then the classification model with higher classification accuracy can be trained, and then the knowledge graph can be constructed more accurately.

[0135] Based on the same technical concept, the present application embodiment provides a device for constructing a knowledge graph, such as Figure 6 As shown, the device includes: an acquisition module 601, a construction module 602, a classification module 603, a training module 604 and a circulation module 605.

[0136] An acquisition module 601 is used to acquire knowledge information to be trained;

[0137] A construction module 602 is used to construct a training set according to the knowledge information to be trained acquired by the acquisition module 601, wherein the training set includes the knowledge information to be trained and initial classification results of each piece of knowledge information to be trained determined based on a preset classification rule;

[0138] The classification module 603 is used to input the knowledge information to be trained in the training set into the deep learning model, and obtain the classification result of the knowledge information to be trained output by the deep learning model;

[0139] The training module 604 is used to train the deep learning model for each piece of knowledge information to be trained in the training set according to the first confidence and the second confidence, or to re-determine the classification result of the knowledge information to be trained, and to update the classification result of the knowledge information to be trained in the training set to the re-determined classification result, so as to obtain an updated training set; the first confidence is the confidence of the classification result of the deep learning model for the training knowledge information, and the second confidence is the confidence of the initial classification result of the training knowledge information based on the preset classification rule;

[0140] The loop module 605 is used to cyclically trigger the classification module and the training module based on the updated training set until it is determined that the classification accuracy of the deep learning model reaches a preset accuracy threshold, or the number of loop executions reaches a preset number of times, and the deep learning model is used as a classification model. The classification model is used to classify the knowledge information to be classified, so that the electronic device adds the knowledge information to be classified to the knowledge graph according to the classification result of the knowledge to be classified.

[0141] Optionally, the training module 604 is specifically configured to:

[0142] If the first confidence level and the second confidence level do not meet the preset conditions, the deep learning model is trained according to the classification result of the knowledge information to be trained output by the deep learning model and the initial classification result of the knowledge information to be trained;

[0143] If the first confidence level and the second confidence level meet the preset conditions, the classification result of the knowledge information to be trained in the training set is updated to: the classification result of the deep learning model for the training knowledge information;

[0144] Among them, the preset conditions are: the first confidence is greater than the model confidence threshold, and the second confidence is less than the rule confidence threshold.

[0145] Optionally, the knowledge information to be trained is term information in a preset knowledge base, and the knowledge information to be classified is term information in a preset knowledge base.

[0146] The device for constructing the knowledge graph provided by the embodiment of the present application can obtain the classification result of the deep learning model for the knowledge information to be trained after the knowledge information to be trained in the training set is input into the deep learning model, and can train the deep learning model for each knowledge information to be trained according to the first confidence and the second confidence, or re-determine the classification result of the knowledge information to be trained, and update the classification result of the knowledge information to be trained in the training set to the re-determined classification result. Since the first confidence is the confidence of the classification result of the deep learning model for the knowledge information to be trained, and the second confidence is the confidence of the classification result of the knowledge information to be trained based on the preset classification rule, the classification result adjusted based on the first confidence and the second confidence can more accurately represent the classification of the knowledge information to be trained, and then the above process is repeated according to the updated training set, so that the result of the knowledge information to be trained in the training set can be made more and more accurate, and then the performance of the classification model obtained by training can be made better and better. Since more accurate classification results can be obtained through the classification model, the knowledge graph can be constructed more accurately based on the classification results.

[0147] The present application also provides an electronic device, such as Figure 7 As shown, it includes a processor 701, a communication interface 702, a memory 703 and a communication bus 704, wherein the processor 701, the communication interface 702, and the memory 703 communicate with each other through the communication bus 704.

[0148] Memory 703, used for storing computer programs;

[0149] The processor 701 is used to implement the method steps performed by the electronic device in the above method embodiment when executing the program stored in the memory 703.

[0150] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0151] The communication interface is used for communication between the above electronic device and other devices.

[0152] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0153] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0154] In another embodiment provided by the present invention, a computer-readable storage medium is also provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned knowledge graph construction methods are implemented.

[0155] In another embodiment provided by the present invention, a computer program product comprising instructions is also provided, which, when executed on a computer, enables the computer to execute any of the knowledge graph construction methods in the above embodiments.

[0156] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.

[0157] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0158] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0159] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A method for constructing a knowledge graph, characterized in that: include: Obtaining knowledge information to be classified; Inputting the knowledge information to be classified into a classification model, and obtaining a classification result corresponding to the knowledge information to be classified output by the classification model; According to the classification result corresponding to the knowledge information to be classified, the knowledge information to be classified is added to the knowledge graph; Wherein, the classification model is a model obtained by training the deep learning model multiple times based on the training set; for each piece of knowledge information to be trained in the training set, the classification result of the knowledge information to be trained included in the training set used for the first training is the initial classification result determined for the knowledge information to be trained based on the preset classification rules; For each piece of knowledge information to be trained in the training set, the classification result of the knowledge information to be trained included in the training set used for non-first training is: a classification result re-determined according to a first confidence and a second confidence, wherein the first confidence is the confidence of the classification result of the knowledge information to be trained by the deep learning model, and the second confidence is the confidence of the initial classification result of the knowledge information to be trained based on the preset classification rule, and the initial classification result is the category to which the rule pool corresponds to the largest number of successful matches among the number of successful matches between the knowledge information to be trained and the rules in the rule pool of each category, and the second confidence is the number of successful matches between the knowledge information to be trained and the rules in the rule pool corresponding to the initial classification result; wherein the re-determined classification result is: the classification result of the knowledge information to be trained by the deep learning model, or the initial classification result of the knowledge information to be trained; If the first confidence level and the second confidence level meet a preset condition, the classification result re-determined according to the first confidence level and the second confidence level is the classification result of the deep learning model on the knowledge information to be trained; If the first confidence level and the second confidence level do not satisfy the preset condition, the classification result re-determined according to the first confidence level and the second confidence level is the initial classification result of the knowledge information to be trained; Among them, the preset condition is: the first confidence is greater than the model confidence threshold, and the second confidence is less than the rule confidence threshold.

2. The method according to claim 1, characterized in that The knowledge information to be classified is the entry information in the preset knowledge base, and the knowledge information to be trained is the entry information in the preset knowledge base; The obtaining of knowledge information to be classified includes: Filter the entry information in the preset knowledge base according to the preset filtering rules; The information of the terms to be classified is obtained from the filtered preset knowledge base.

3. A method for constructing a knowledge graph, characterized in that: include: S1. Obtain the knowledge information to be trained; S2. constructing a training set according to the acquired knowledge information to be trained, wherein the training set includes the knowledge information to be trained and initial classification results of each piece of knowledge information to be trained determined based on a preset classification rule; S3, inputting the knowledge information to be trained in the training set into a deep learning model, and obtaining a classification result of the knowledge information to be trained output by the deep learning model; S4. For each piece of knowledge information to be trained in the training set, the deep learning model is trained according to the first confidence level and the second confidence level, or the classification result of the knowledge information to be trained is re-determined, and the classification result of the knowledge information to be trained in the training set is updated to the re-determined classification result, so as to obtain an updated training set; The first confidence is the confidence of the classification result of the knowledge information to be trained by the deep learning model, the second confidence is the confidence of the initial classification result of the knowledge information to be trained based on the preset classification rule, the initial classification result is the category to which the rule pool corresponds to the largest number of successful matches between the knowledge information to be trained and the rules in the rule pool of each category, and the second confidence is the number of successful matches between the knowledge information to be trained and the rules in the rule pool corresponding to the initial classification result; wherein the re-determined classification result is: the classification result of the knowledge information to be trained by the deep learning model, or the initial classification result of the knowledge information to be trained; S5, looping through S3 to S4 based on the updated training set until it is determined that the classification accuracy of the deep learning model reaches a preset accuracy threshold, or the number of loop executions reaches a preset number of times, and using the deep learning model as a classification model, the classification model is used to classify the knowledge information to be classified, so that the electronic device adds the knowledge information to be classified to the knowledge graph according to the classification result of the knowledge to be classified; The step of training the deep learning model according to the first confidence level or the second confidence level for each piece of knowledge information to be trained in the training set, or re-determining the classification result of the knowledge information to be trained, and updating the classification result of the knowledge information to be trained in the training set to the re-determined classification result, comprises: If the first confidence level and the second confidence level do not meet a preset condition, training the deep learning model according to the classification result of the knowledge information to be trained output by the deep learning model and the initial classification result of the knowledge information to be trained; If the first confidence level and the second confidence level meet the preset condition, the classification result of the knowledge information to be trained in the training set is updated to: the classification result of the knowledge information to be trained by the deep learning model; Among them, the preset condition is: the first confidence is greater than the model confidence threshold, and the second confidence is less than the rule confidence threshold.

4. The method according to claim 3, characterized in that The knowledge information to be trained is the entry information in a preset knowledge base, and the knowledge information to be classified is the entry information in the preset knowledge base.

5. A device for constructing a knowledge graph, characterized in that: include: An acquisition module, used to acquire knowledge information to be classified; A classification module, used for inputting the knowledge information to be classified acquired by the acquisition module into a classification model, and acquiring a classification result corresponding to the knowledge information to be classified output by the classification model; An adding module, used for adding the knowledge information to be classified to the knowledge graph according to the classification result corresponding to the knowledge information to be classified; Wherein, the classification model is a model obtained by training the deep learning model multiple times based on the training set; for each piece of knowledge information to be trained in the training set, the classification result of the knowledge information to be trained included in the training set used for the first training is the initial classification result determined for the knowledge information to be trained based on the preset classification rules; For each piece of knowledge information to be trained in the training set, the classification result of the knowledge information to be trained included in the training set used for non-first training is: a classification result re-determined according to a first confidence and a second confidence, wherein the first confidence is the confidence of the classification result of the knowledge information to be trained by the deep learning model, and the second confidence is the confidence of the initial classification result of the knowledge information to be trained based on the preset classification rule, and the initial classification result is the category to which the rule pool corresponds to the largest number of successful matches among the number of successful matches between the knowledge information to be trained and the rules in the rule pool of each category, and the second confidence is the number of successful matches between the knowledge information to be trained and the rules in the rule pool corresponding to the initial classification result; wherein the re-determined classification result is: the classification result of the knowledge information to be trained by the deep learning model, or the initial classification result of the knowledge information to be trained; If the first confidence level and the second confidence level meet a preset condition, the classification result re-determined according to the first confidence level and the second confidence level is the classification result of the deep learning model on the knowledge information to be trained; If the first confidence level and the second confidence level do not satisfy the preset condition, the classification result re-determined according to the first confidence level and the second confidence level is the initial classification result of the knowledge information to be trained; Among them, the preset condition is: the first confidence is greater than the model confidence threshold, and the second confidence is less than the rule confidence threshold.

6. A device for constructing a knowledge graph, characterized in that: include: An acquisition module is used to acquire knowledge information to be trained; A construction module, used to construct a training set according to the knowledge information to be trained acquired by the acquisition module, wherein the training set includes the knowledge information to be trained and initial classification results of each piece of knowledge information to be trained determined based on a preset classification rule; A classification module, used to input the knowledge information to be trained in the training set into a deep learning model, and obtain a classification result of the knowledge information to be trained output by the deep learning model; A training module, used for training the deep learning model according to the first confidence level and the second confidence level for each piece of knowledge information to be trained in the training set, or re-determining the classification result of the knowledge information to be trained, and updating the classification result of the knowledge information to be trained in the training set to the re-determined classification result, so as to obtain an updated training set; The first confidence is the confidence of the classification result of the knowledge information to be trained by the deep learning model, the second confidence is the confidence of the initial classification result of the knowledge information to be trained based on the preset classification rule, the initial classification result is the category to which the rule pool corresponds to the largest number of successful matches between the knowledge information to be trained and the rules in the rule pool of each category, and the second confidence is the number of successful matches between the knowledge information to be trained and the rules in the rule pool corresponding to the initial classification result; wherein the re-determined classification result is: the classification result of the knowledge information to be trained by the deep learning model, or the initial classification result of the knowledge information to be trained; A loop module, used to cyclically trigger the classification module and the training module based on the updated training set until it is determined that the classification accuracy of the deep learning model reaches a preset accuracy threshold, or the number of loop executions reaches a preset number of times, and use the deep learning model as a classification model, and the classification model is used to classify the knowledge information to be classified, so that the electronic device adds the knowledge information to be classified to the knowledge graph according to the classification result of the knowledge to be classified; The training module is specifically used for: If the first confidence level and the second confidence level do not meet a preset condition, training the deep learning model according to the classification result of the knowledge information to be trained output by the deep learning model and the initial classification result of the knowledge information to be trained; If the first confidence level and the second confidence level meet the preset condition, the classification result of the knowledge information to be trained in the training set is updated to: the classification result of the knowledge information to be trained by the deep learning model; Among them, the preset condition is: the first confidence is greater than the model confidence threshold, and the second confidence is less than the rule confidence threshold.

7. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps of claim 1 or 2, or implementing the method steps of claim 3 or 4, when executing a program stored in a memory.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps of claim 1 or 2 are implemented, or the method steps of claim 3 or 4 are implemented.

Citation Information

Patent Citations

  • Knowledge base entry classification method and device and model training method and device

    CN108304530A

  • Model training method, customer service system, data labeling system and readable storage medium

    CN109582793A