Research on the Construction of Healthy Diet Knowledge Graph and Q&A System
In order to meet people's understanding of healthy diet knowledge,this paper uses web crawler tools to obtain data on authoritative diet websites,preprocesses the data,and then imports it in batches into the Neo4j database to construct a diet Knowledge Graph.Based on this,a Q&A system is designed and implemented.Firstly,understand the questions raised by users,and then use the problem template trained by the Naive Bayes classifier in the Spark environment to obtain the answers to the questions from the Neo4j database through the matched results.The combination of Knowledge Graph and healthy diet not only satisfies people's continuous pursuit for healthy diet,but also enhances their understanding of the theory of"medicine and food are the same source"in traditional medicine.
Knowledge Graphhealthy dietweb crawlerNaive BayesQ&A system