The grammar compiling method, word sense analysis method and corresponding device provided by the present invention define a grammar description file and a part-of-speech description file corresponding in advance based on the logic grammar intuitive language LGML according to the usual phrase expression of the word meaning, A description file is used to construct a common phrase description using parts of speech, operators, and functions.The part of speech description file is used to describe specific values of parts of speech. A grammar tree of a grammar description file and a part-of-speech tree of a part-of-speech description file are generated by an inductive method, and the part-of-speech tree is hooked following the position of the corresponding part-of-speech in the grammar tree to form the grammatical tree of the meaning and grammar compilation Is realized. The grammatical tree of meanings constructed by this method performs semantic analysis based on a method that combines full-phrase matching, semantic mapping, or full-phrase matching and semantic mapping matching.
展开▼