Agricultural production knowledge intelligent question-answering method and device based on natural language processing
Патент · CN B
Полный текст
The invention provides an intelligent agricultural production knowledge question-answering method and device based on natural language processing, wherein the method comprises the steps of analyzing a natural language query sequence input by a user based on a field self-adaptive semantic understanding model, outputting a structural semantic representation and a question vector, carrying out search matching in a dynamic agricultural knowledge graph based on the structural semantic representation and the question vector, carrying out reasoning based on a search matching result, generating and outputting a final answer and a matching degree score of the final answer, wherein the field self-adaptive semantic understanding model is obtained by pre-training a mask language model based on a term set in the agricultural field, and the dynamic agricultural knowledge graph is constructed and dynamically updated based on a multi-source heterogeneous data stream in the agricultural field. Therefore, the understanding accuracy of agricultural technical terms, the timeliness of retrieval and the accuracy of answers are improved, and meanwhile, the reliability of the answers is enhanced through matching degree scoring.