Grammar compiling method, semantic parsing method and corresponding devices

A compiling method and semantic analysis technology, applied in the field of semantic analysis method and corresponding device, syntax compiling method, can solve the problems of poor maintainability, complex definition, poor readability, etc.

Active Publication Date: 2013-09-11
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF2 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The way people speak is natural spoken language, and there are big differences in behavior, wording and text input. For example, there are loose grammar and word order reversal in spoken language. The BNF grammar recommended by W3C and the grammar in XML format are mainstream large-vocabulary continuous speech However, due to the deep interpretation levels of BNF and XML, the definition of semantic mapping and syntax understanding using these two grammars is very complicated, with the defects of poor readability and maintainability, and it is difficult to perform related grammar compilation and semantic analysis

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Grammar compiling method, semantic parsing method and corresponding devices
  • Grammar compiling method, semantic parsing method and corresponding devices
  • Grammar compiling method, semantic parsing method and corresponding devices

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0091] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0092] The grammar compilation method provided by the present invention is based on a new grammar description language, that is, Logical Grammar by Manifest Language (LGML). This LGML is different from the complex structure of the existing BNF or XML, and is closer to in the order and description of natural spoken language. LGML pre-defines the corresponding grammar for the common sentence expression of each semantic, and the grammar defined by LGML is composed of two parts: a grammar description file and a part-of-speech description file.

[0093]In the grammar description file, common sentence descriptions are composed of operators, parts of speech and functions, and the grammar description file usually pre-defines various sentence descriptions ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a grammar compiling method, a semantic parsing method and corresponding devices. The grammar compiling method includes preliminarily defining corresponding grammar description files and corresponding word category description files on the basis of logical grammar by manifest language (LGML) according to commonly used semantic sentence expression; respectively generating grammar trees of the grammar description files and word category trees of the word category description files by reduction processes according to preset sequences, and hooking the word category trees at positions of corresponding word categories in the grammar trees to form semantic grammar trees so as to implement grammar compiling. Commonly used sentence description in the grammar description files comprises the word categories, operators and functions. The word category description files are used for describing particular values of the word categories. The grammar compiling method, the semantic parsing method and the corresponding devices have the advantages that the semantic grammar trees created on the basis of the mode can be used for semantic parsing in a mode of whole sentence matching or semantic mapping matching or a combination of the whole sentence matching and the semantic mapping matching.

Description

【Technical field】 [0001] The present invention relates to the field of computer application technology, in particular to a syntax compiling method, a semantic analysis method and a corresponding device. 【Background technique】 [0002] Speech recognition and spoken semantic analysis are two important technologies of voice interactive products. Speech recognition is to convert the content of speech into text, and spoken semantic analysis is to understand the information carried by spoken voice signals. The speech recognition rate and the accuracy of spoken language semantic analysis directly affect the user experience. In order to improve the speech recognition rate and the accuracy of spoken language semantic analysis, two context-free grammars specified by the W3C (World Wide Web Consortium) are currently used to construct the recognition space, that is, using the grammar in the form of BNF (Backus-Naur Form) or based on XML ( Extensible Markup Language) format syntax. [...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/28G06F17/30
CPCG06F8/42G06F8/427G06F40/211G06F40/30G06F40/253
Inventor 王育军贾磊万广鲁蒋正翔
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products