Semantic analysis method based on grammar network and lucene
The invention discloses a semantic analysis method based on a grammar network and lucene. The method comprises the following steps that: a) compiling a grammar network syntax rule; b) constructing a Lucene index file; c) increasing lucene to search a leaf node rule list in an analyzer; and d) carryi...
Saved in:
Main Authors | , |
---|---|
Format | Patent |
Language | Chinese English |
Published |
16.02.2018
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | The invention discloses a semantic analysis method based on a grammar network and lucene. The method comprises the following steps that: a) compiling a grammar network syntax rule; b) constructing a Lucene index file; c) increasing lucene to search a leaf node rule list in an analyzer; and d) carrying out statement matching, and matching an appointed leaf node according to a defined rule. By use of the method, a grammar network and the lucene are combined, a workload and repeatability are lowered on an aspect of semantic analysis, the lucene is used for retrieval, retrieval speed is improved,a variable can be favorably indexed, and semantics can be quickly and efficiently analyzed.
本发明公开了种基于文法网络和lucene的语义分析方法,a)编写文法网络语法规则;b)Lucene索引文件构建;c)解析器中增加lucene搜索叶子节点rule列表;d)语句匹配,按照定义的规则,匹配指定的叶子节点。发明将文法网络和lucene结合,在语义分析方面降低了工作量和重复性,使用lucene检索,提高了检索速度,能够很好的索引变量,能快速高效的解析语义。 |
---|---|
Bibliography: | Application Number: CN20171972496 |