The invention provides a limited domain-oriented
knowledge graph updating method and
system, and the method comprises the steps: inputting limited domain question and answer corpora, extracting candidate entities of sentences in the corpora through word segmentation, screening common functional words in a word segmentation result through a word frequency dictionary, and obtaining a candidate entity set; constructing an
inverted index dictionary according to the limited
domain knowledge graph to obtain a similar vocabulary set of each candidate entity; training the candidate entities and the corresponding similar vocabulary sets into word vectors, and calculating
cosine similarity so as to judge the types of the candidate entities; obtaining the relationship between every two candidate entities in the candidate entity set by using the trained Bert text classification model; and updating the candidate
entity type and the relationship between the candidate entities into the
knowledge graph according to the judgment. The
knowledge graph updating method provided by the invention is higher in efficiency, can recognize the newly appearing
entity type according to the existing entities inthe graph, and effectively improves the knowledge graph updating speed and accuracy.