Unlock instant, AI-driven research and patent intelligence for your innovation.

Syntax tree generation method and device

A syntax tree and grammar technology, applied in the field of generating syntax trees, can solve the problems of consuming large resources and time, and low efficiency

Active Publication Date: 2019-07-05
INSPUR QILU SOFTWARE IND
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

There are many branches in N-grams. When generating a syntax tree, various possible branches need to be processed, and most of these possible branches are invalid. The processing process consumes a lot of resources and time.
[0004] It can be seen from the above description that the existing schemes for generating syntax trees are less efficient

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
  • Syntax tree generation method and device
  • Syntax tree generation method and device
  • Syntax tree generation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0175] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work belong to the protection of the present invention. scope.

[0176] Such asfigure 1 As shown, the embodiment of the present invention provides a method for generating a syntax tree, which may include the following steps:

[0177] Step 101: converting the replacement rules of N-grams into replacement rules of bigrams in advance;

[0178] Step 102: Generate a left-end part-of-speech matching grammar and a right-en...

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 syntax tree generation method and device, and the method comprises the steps of converting a replacement rule of N-element grammar into a replacement rule of binary grammar; generating a left-end part-of-speech matching grammar and a right-end part-of-speech matching grammar according to the replacement rule of the binary grammar; generating a left-end part-of-speech matching index table according to the left-end part-of-speech matching grammar, and generating a left-end part-of-speech ancestor table; generating a right-end part-of-speech matching index table accordingto the right-end part-of-speech matching grammar, and generating a right-end part-of-speech ancestor table; reading a to-be-processed statement; and processing the to-be-processed statement accordingto the replacement rule of the binary grammar, the left-end part-of-speech matching grammar, the right-end part-of-speech matching grammar, the left-end part-of-speech matching index table, the right-end part-of-speech matching index table, the left-end part-of-speech ancestor table and the right-end part-of-of-of-of-of-speech ancestor table to generate a syntax tree corresponding to the to-processed statement. The syntax tree generation method and device provided by the invention can improve the efficiency of generating the syntax tree.

Description

technical field [0001] The invention relates to the technical field of natural language processing, in particular to a method and device for generating a syntax tree. Background technique [0002] Natural language processing includes four levels: vocabulary, syntax, semantics, and pragmatics. Syntax studies the formal relationship between words, including how words form parts of speech, how adjacent words form phrases, and the connection between words. The core is syntax dissect. Syntactic analysis is the process of identifying input sentences and assigning structures to sentences. It is an intermediate stage of semantic analysis and plays an important role in machine translation, intelligent question answering, and relation extraction. The result of syntactic analysis is also often expressed as a tree structure, called a syntax tree. [0003] In the prior art, when generating a syntax tree, it is mainly implemented through N-grams. There are many branches in N-grams. Whe...

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
IPC IPC(8): G06F17/27
CPCG06F40/253G06F40/211G06F40/289Y02D10/00
Inventor 王功明张娴郭运艳王建华
Owner INSPUR QILU SOFTWARE IND