The invention discloses an intelligent
question answering method and
system based on a pet
knowledge graph, and the method comprises the steps: constructing a
named entity dictionary, abstracting questions, and facilitating the classification of the questions. A method of combining word2vec with
Levenshtein Distance is provided to realize
entity linking, and experiments show that the method is effective. Texts are trained by constructing a text classifier based on Naive Bayes, and the improved TF-IDF naive Bayes classification
algorithm is provided, the distribution situation of feature wordsin a text set and the category distribution situation are considered, and the improved TF-IDF effectively improves the text classification effect. Through the result of the text classifier, the intention of the
natural language question is determined, and the
natural language question is matched with the corresponding word
sequence graph. The
word order graph is converted into a similar
SQL querystatement of the OrientDB, and querying is performed in a
graph database storing the
knowledge graph. Finally, the constructed intelligent question and answer
system based on the
knowledge graph is displayed in an example, and experiments show that the
system has a relatively high application value in question and answer application in the field of pets.