Grammar Compilation Method, Semantic Analysis Method and Corresponding Device

A compiling method and semantic parsing technology, applied in the fields of syntax compiling methods, semantic parsing methods and corresponding devices, can solve the problems of lax grammar, poor maintainability, poor readability, etc.

Active Publication Date: 2017-03-01
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] 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 Compilation Method, Semantic Analysis Method and Corresponding Device
  • Grammar Compilation Method, Semantic Analysis Method and Corresponding Device
  • Grammar Compilation Method, Semantic Analysis Method and Corresponding Device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0096] 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.

[0097] 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: grammar description file and part of speech description file.

[0098]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 in a...

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 present invention provides a grammar compiling method, a semantic analysis method and a corresponding device. According to the common sentence expression of semantics, a grammar description file and a part-of-speech description file based on Logical Grammar Intuitive Language (LGML) are used to pre-define the corresponding grammar description file. In the grammar description file, there are Parts of speech, operators and functions constitute the description of commonly used sentences, and the part-of-speech description file is used to describe the specific value of the part of speech; the grammar description file and the part-of-speech description file are respectively generated according to the reduction method of the preset order to generate the syntax tree and part of speech of the grammar description file Describe the part-of-speech tree of the file, mount the part-of-speech tree to the position corresponding to the part-of-speech in the grammar tree, and form a semantic grammar tree, thereby realizing grammar compilation. Based on the semantic syntax tree established in this way, the semantic analysis is carried out by means of whole sentence matching, semantic mapping matching or a combination of whole sentence matching and semantic mapping matching.

Description

[0001] 【Technical field】 [0002] 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. [0003] 【Background technique】 [0004] 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) form...

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 Patents(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