基于知识图谱问答系统的技术实现
2021-04-06魏泽林张帅王建超
魏泽林 张帅 王建超



摘 要:知识图谱是实现对话机器人的一类重要工具。如何通过一套完整流程来构建基于知识图谱的问答系统是比较复杂的。因此,本文从构建基于知识图谱的问答系统的全流程角度总结了多个主题:知识图谱类型、知识图谱构建与存储、应用在知识图谱对话中的语言模型、图空间内的语义匹配及生成。进一步,本文在各主题的垂直领域归纳了常用方法及模型,并分析了各子模块的目的和必要性。最后,本文通过总结出的必要模块及流程,给出了一种基于知识图谱的问答系统的基线模型快速构建方法。该方法借助了各模块的前沿算法且有效地保证了拓展性、准确性和时效性。
关键词:知识图谱;问答系统;对话机器人;语言模型;语义匹配
Abstract: Knowledge graph is an important tool for realizing chatbots. The lifecycle of constructing a question answering system based on knowledge graph is a complex task. This paper summarizes a number of topics from the perspective of building a knowledge graph-based question answering system. The topics include knowledge graph types, knowledge graph construction and storage, language models used in knowledge graph dialogue, semantic matching and generation in graph space. Furthermore, this paper summarizes commonly used methods and models in vertical areas of topics, and analyzes the purpose and necessity of sub-modules. A method for quickly constructing a baseline model of a knowledge graph based question answering system will be presented. The proposed method relies on the cutting-edge algorithms and effectively guarantees scalability, accuracy and timeliness.
Keywords: knowledge graph; question answering system; chatbot; language model; semantic matching
1 引言(Introduction)
知识问答系统在二十世纪五六十年代时就已经出现。近年来对话系统不断发展,对话功能不断增多,对数据内容和数据结构也提出了更高的要求。在开放域问答对话中,由于涉及的数据量及不同领域间的特征差异较大,基于问答对匹配的检索式问答系统并不是最好的解决方法。而知识图谱的发展则正为这部分需求提供了解决方案。知识图谱作为大规模信息的载体,是实现对话机器人中大规模推理及问答的一类重要方法。知识图谱中的三元组数据能够为问答系统提供大量的事实数据以及实体间的复杂关系,因此,基于知识图谱的问答对话系统逐渐成为人们关注的重点。……
