The invention belongs to the technical field of intelligent education question-answer, and particularly relates to a mixed automatic question-answer method based on education knowledge graphs and texts. The mixed automatic question-answer method comprises the following steps: constructing a basic education
knowledge graph by constructing a basic education body,
semantic annotation and informationextraction; constructing a general template of the question according to the keywords in combination with a
regular expression; establishing a full-text
search engine, and preprocessing
mass texts; training
test question and answer pairs as a
training set until a deep
text matching model converges; identifying the user questions to obtain a subject
list, and endowing the subject
list with confidence; carrying out
template matching to obtain a predicate
list, and giving confidence to the predicate list; inquiring a
knowledge graph according to the subject and predicate lists to obtain an answerlist, and endowing confidence coefficients; obtaining keywords by using a part-of-speech tagging method, performing coarse-fine
granularity matching to obtain answers, and sorting the answers; if thehighest confidence of the answer based on the educational
knowledge graph exceeds a threshold value, returning the answer; or, returning the answer with the highest sorting based on the text.