The invention discloses a text question and answer matching method inspired by
quantum interference; the method comprises the steps: extracting global and local question and answer features respectively to represent and optimize the matching accuracy of a question and answer
system, the
system comprising a question-answer composite
system module, a word weight calculation module, an answer probability distribution module, a joint
probability representation module and a dual
feature fusion and
score calculation module; respectively extracting local features of a question
density matrix and a reduced
density matrix of an answer
sentence by constructing the question
density matrix and the reduced density matrix of the answer
sentence, wherein the local features of interference terms among words contained in the answer
sentence are captured based on the reduced density matrix of the composite system under the enlightenment of
quantum interference; fusing the feature information of the question sentence and the feature information of the answer sentence based on a joint
probability representation module, and then extracting effective feature information through
convolution; and finally, splicing global and local features and obtaining a final prediction matching result through a full connection layer. Based on the end-to-end
quantum-like
language model, the question and answer matching method for capturing global-local feature representation is provided, the problem that local interaction information is lost in the quantum
language model is solved, and the question and answer matching effect is improved.