The invention discloses a method and a device for man-
machine dialogue based on a mapping knowledge domain. The method comprises the following steps: S1, receiving a statement transmitted by a user, and acquiring an above statement category of the statement; S2, determining a final category of the statement; S3, extracting feature words of the statement through the mapping knowledge domain, and judging whether all the feature words are associated or not; S4, performing dialogue matching on the statement according to a chat dialogue
library; S5, performing
regular pattern matching on the statement; s6, performing analysis
processing according to the category of the statement and generating a reply. According to the method and the device disclosed by the invention, the category of the statement is controlled to a certain degree; in addition, a general knowledge quiz and a customized
open field quiz are enabled to be unified in the same flow, and the flow is different from an existing flow that the search of
questions and answers is performed by only relying on the chat
library and a classifying model in an automatic question-answering
system; in addition, by adding a technology of
template matching and mapping knowledge domain search, the man-
machine dialogue is more abundant.