首页> 外国专利> Grammar compilation method, semantic analysis method, and apparatus

Grammar compilation method, semantic analysis method, and apparatus

机译:语法编译方法,语义分析方法和装置

摘要

A corresponding grammar description file and a word category description file are defined based on a logical grammar by manifest language LGML according to a common sentence expression of a semantic meaning, in the grammar description file, the description for a common sentence is composed by operators, word categories, and functions, the word category description file is used to describe specific values for the word categories; the grammar description file and the word category description file are generated, with a reduction method according to a defined sequence, into a grammar tree for the grammar description file and word category trees for the word category description file; the word category trees are grafted at the positions of corresponding word categories on the grammar tree, forming a grammar tree for the semantic meaning, in this way, grammar compiling is accomplished. Based on the grammar tree of a semantic meaning with aforementioned ways, semantic parsing is carried out with whole-sentence matching, semantic mapping matching, or a combination of whole-sentence matching and semantic mapping matching.
机译:清单语言LGML根据语义意义上的普通句子表达,基于逻辑语法,根据逻辑语法定义相应的语法描述文件和单词类别描述文件,在语法描述文件中,对普通句子的描述由运算符组成,单词类别和功能,单词类别描述文件用于描述单词类别的特定值;语法描述文件和单词类别描述文件按照确定的顺序用归约方法生成为语法描述文件的语法树和单词类别描述文件的单词类别树。将单词类别树移植到语法树上相应单词类别的位置,形成语义意义的语法树,从而完成语法编译。基于具有上述方式的语义含义的文法树,通过全句匹配,语义映射匹配或全句匹配与语义映射匹配的组合进行语义解析。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号