摘要
设计并实现一个基于实体的通用可交互数据库汉语问句查询接口,该接口可将汉语问句转化为SQL语句,并通过数据库查询得到答案。系统首先对问句进行分词、实体语义标注等处理,生成一幅包含句子中各个实体及实体关系的信息领域图。将句子中的语义节点定位到图中,再按照设计好的算法,实现从句子到信息领域图,再到SQL语句的转化。实验表明,该系统能够基本有效地处理各种常见形式的查询语句,具有良好的可用性和可移植性。
Designs and realizes an entity-based interactive query interface which can transform Chinese queries into SQL and get the answer from databases. The interface first conducts lexical analysis and entity annotation, and generates a domain information graph (DIG). The domain information graph is a graph which contains all entities and their relationship of a query. Then locates the semantic nodes in the graph and finishes the transformation from the query to DIG and from DIG to SQL. The experimental results show that this system can basically solve common queries and have good usability and portability.
出处
《现代计算机》
2013年第7期26-29,共4页
Modern Computer
关键词
自然语言处理
汉语问句查询接口
信息领域图
实体
语义节点
Natural Language Processing
Chinese Query Interface
Domain Information Graph
Entity
SemanticNode