The present application belongs to the technical field of intelligent question and answer, and particularly relates to an experimental question and answer method and
system based on a
knowledge graph. The method comprises: generating a candidate combined category
syntax analysis tree for an input experimental question
sentence; when a preset dictionary word is encountered, assigning a temporary combined category by combining a word vector and an adjacent
entity type; calculating a
syntax probability of the analysis tree and a node density of an entity subgraph in the tree, determining a target
syntax analysis tree, and converting the target syntax analysis tree into a
logical expression; extracting anchor entities and semantic relationships, determining a search depth according to the subgraph density, and constructing an initial
graph query sentence by using bidirectional breadth-first search; if the query has no result, differentiating the query reconstruction according to the density threshold, replacing only the
semantic relationship with a parent class when the density is high, or considering both the parent class and the sibling class relationship, and outputting a subgraph or an entity obtained by the query as an answer. The present application can improve the adaptability, accuracy and
fault tolerance of the experimental question and answer
system, and balance the query efficiency and
recall rate.