A method and device for sentence template recall based on seed sentences
A seed sentence and sentence technology, 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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0050] Embodiment 1 of the present invention proposes a method for recalling a sentence template based on a seed sentence, such as figure 1 shown, including the following steps:
[0051] Step 101, acquiring corpus related to the seed sentence whose quantity exceeds a certain value;
[0052] Specifically, the correlation can be domain-related. For example, the seed sentence is "today's Hunan cuisine is delicious" and belongs to the food domain, so that the corpus of the food domain can be obtained if the number 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 it will be.
[0053] Step 102, determine the dependency syntax tree of each sentence in the corpus;
[00...
Embodiment 2
[0081] Embodiment 2 of the present invention also proposes a device for recalling a sentence template based on a seed sentence, such as Figure 5 shown, including:
[0082] An acquisition module 201, configured to acquire corpus related to the seed sentence whose quantity exceeds a certain value;
[0083] The first determination module 202 is used to determine the dependency syntax tree of each sentence in the corpus;
[0084] The second determination module 203 is used to recall each sentence in the corpus based on the tree structure of the dependent syntactic tree of the seed sentence according to the structural similarity of the dependent syntactic tree, and set the recalled sentence as the initial sentence template ;
[0085] The third determining module 204 is used to calculate the correlation between each of the initial sentence templates and the seed sentence, and determine the correlation between each of the initial sentence templates and the seed sentence;
[0086]...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com