发明名称 GRAMMAR COMPILING METHODS, SEMANTIC PARSING METHODS, DEVICES, COMPUTER STORAGE MEDIA, AND APPARATUSES
摘要 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.
申请公布号 US2016124936(A1) 申请公布日期 2016.05.05
申请号 US201414892818 申请日期 2014.05.28
申请人 BAIDU ONLINE NETWORK TECHNOLOGY (BEIJING) CO., LTD. 发明人 Wang Yujun;Jia Lei;Wan Guanglu;Jiang Zhengxiang
分类号 G06F17/27 主分类号 G06F17/27
代理机构 代理人
主权项 1. A grammar compiling method, wherein the method defines a corresponding grammar description file and a corresponding word category description file 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 respectively 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; and 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.
地址 Beijing CN