The application relates to the technical field of
data processing, and discloses a question and answer
processing method, device, equipment and medium. Through joint training of a sorting task and an answer type prediction task, a model learns logical type constraints between
questions and answers while optimizing semantic correlation, effectively suppresses false correlations caused by training data bias or high-frequency answer interference. Further, in the question and answer reasoning process, with the aid of an answer path sorting model and a cross-sequence interaction attention mechanism, comprehensive sorting results of each candidate answer path fusion semantic
score and type consistency
score can be obtained, multi-
granularity accurate matching from overall
semantics to local elements is realized, and the sorting accuracy and model robustness in a complex query scene are significantly improved. Therefore, in the
knowledge base question and answer task in the fields of finance and insurance,
medical treatment and the like, questions with similar
semantics but different logical types can be effectively distinguished, information
confusion is avoided, and the final answer has accuracy and reliability.