Method and equipment for recalling sentence template based on seed sentence

A technology of seed sentences and sentences, which is applied in the field of sentence template recall based on seed sentences, can solve the problems of incorrect sentences and poor diversity of recalled sentences, and achieve the effect of small semantic deviation

Active Publication Date: 2017-03-15
广东惠禾科技发展有限公司
View PDF2 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, according to the similarity calculation of words, since only part of the words are replaced, the newly recalled sentences are often very similar to the seed sentences; in this way, the

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
  • Method and equipment for recalling sentence template based on seed sentence
  • Method and equipment for recalling sentence template based on seed sentence
  • Method and equipment for recalling sentence template based on seed sentence

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0050] Embodiment 1 of the present invention proposes a method for recalling sentence templates based on seed sentences, such as figure 1 As shown, including the following steps:

[0051] Step 101: Obtain corpus related to the seed sentence whose number exceeds a certain value;

[0052] Specifically, the correlation can be domain-related. For example, the seed sentence "Today's Hunan cuisine is delicious" belongs to the gastronomy domain. From this, the corpus of the gastronomy domain can be obtained that exceeds a certain value; of course, the same is true for other domains, for example It can also be a news sentence, that is, it belongs to the news field and so on. In addition, the more specific numbers, the better. There is only a lower limit, but no upper limit. The more the number is obtained, the more sentence templates will be recalled and the more accurate.

[0053] Step 102: Determine the dependency syntax tree of each sentence in the corpus;

[0054] Specifically, step 102,...

Embodiment 2

[0081] Embodiment 2 of the present invention also proposes a device for recalling sentence templates based on seed sentences, such as Figure 5 Shown, including:

[0082] The obtaining module 201 is used to obtain the corpus related to the seed sentence whose quantity exceeds a certain value;

[0083] The first determining module 202 is configured to determine the dependency syntax tree of each sentence in the corpus;

[0084] The second determining module 203 is configured to recall each sentence in the corpus based on the structure similarity of the dependent syntax tree and the tree structure of the dependent syntax tree of the seed sentence, and set the recalled sentence as an initial sentence template ;

[0085] The third determining module 204 is configured to calculate the correlation between each initial sentence template and the seed sentence, and determine the correlation between each initial sentence template and the seed sentence;

[0086] The selection module 205 is confi...

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 method and equipment for recalling a sentence template based on a seed sentence. The method specifically comprises the following steps of obtaining corpuses, and determining a dependency syntax tree of each sentence of each corpus, wherein the number of corpuses exceeds a certain value, and each corpus relates to the seed sentence; according to the structure similarity of the dependency grammar trees, recalling each sentence in each corpus based on a tree structure of a dependency grammar tree of the seed sentence, and determining recalled sentences; calculating the similarity between the recalled sentences and the seed sentence, and determining the relevancy between each recalled sentence and the seed sentence; according to the relevancy, selecting a recalled sentence as the sentence template. The method at least has one of the following characteristics that the type of the recalled sentences is richer; the recalled sentences basically have no grammar mistake; components of the recalled sentences are richer; the semantics deviation of the recalled sentences is little; the recalled sentences are designed with a template, and an artificial template is not needed.

Description

Technical field [0001] The invention relates to the field of information processing, in particular to a method and equipment for recalling sentence templates based on seed sentences. Background technique [0002] In the prior art, most of the similarity calculations for sentence templates are calculated based on the similarity of words. However, according to the calculation of word similarity, because it is only a partial word replacement, the newly recalled sentence is often very similar to the seed sentence; this will cause the diversity of the recalled sentence to be very poor; moreover, because it is only the word in the sentence Similar replacement, and whether the replaced word is also used in the same sentence, in this case, the recalled sentence is probably wrong. Summary of the invention [0003] Aiming at the defects in the prior art, the present invention proposes a method and device for recalling sentence templates based on seed sentences to overcome the defects in th...

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/211G06F40/253G06F40/30
Inventor 姚佳
Owner 广东惠禾科技发展有限公司
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