Method and device of statement generation

A technology for sentence generation and module generation, applied in the field of sentence generation methods and devices, capable of solving problems such as low sentence accuracy

Inactive Publication Date: 2011-09-21
ALIBABA GRP HLDG LTD
View PDF15 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In view of this, the embodiment of the present application provides a method and device for generating sentences to solve the problem of low accuracy of sentences generated by the pinyin input method in the prior art

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 device of statement generation
  • Method and device of statement generation
  • Method and device of statement generation

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] In order to effectively improve the accuracy of sentence output, the embodiment of the present application provides a method for generating a sentence. In this method, the weight of the occurrence of a phrase formed by every two candidate words forming a sentence is fully considered, and the corresponding score is determined. And then determine the total score of the statement, and select the statement with the largest total score as the generated statement output according to the determined total score of the statement. Because only frequently appearing phrases have higher weights, that is, frequently appearing phrases must be frequently used by users or meet language rules, so this method can make the generated sentences more accurate. The sentence generation method in the embodiment of the present application can be applied to generate a complete sentence, and can also be applied to generate a complete sentence, and the sentence can be a long sentence or a short sente...

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 discloses a method and a device of statement generation, for solving the problem that the accuracy of the statement generated by pinyin input method in the prior art is low. The method comprises the steps of matching each pinyin syllable subsequence of the pinyin syllable sequence after the segmentation of a pinyin flow with the pinyin of each lemma saved in a dictionary, determining every candidate word of the pinyin syllable subsequences, forming corresponding statements by using the candidate words, in allusion to the phrases formed by the candidate word of each statement and the candidate word ahead or behind the candidate word and the corresponding weight of each phrase in the dictionary, determining the corresponding fraction of the candidate word; according to the fraction of each candidate word of each statement, determining the total fraction of each statement, and taking the statement of the largest total fraction as the generated statement. Because only the phrase appearing frequently has higher corresponding weight, namely, the phrase appeared frequently must be the phrase that users often use or satisfies language rules, so that the generated statement can be made more accurate by employing the method.

Description

technical field [0001] The present application relates to the technical field of Chinese character input, in particular to a method and device for generating sentences. Background technique [0002] The input method (Input Method Editor, IME) is to utilize keyboard, according to certain encoding rule, realizes a kind of method of Chinese character input, and pinyin input method is to utilize keyboard to input pinyin, thereby realizes the method of Chinese character input. In the process of inputting Chinese characters through the pinyin input method, for the pinyin stream input by the user, it is necessary to segment the pinyin stream into multiple legal pinyin syllable sequences, and convert each pinyin syllable after segmentation For the corresponding Chinese characters, so as to realize the output of the sentence. [0003] When the Chinese characters input by the user are divided into pinyin syllable sequences, since each pinyin syllable corresponds to many candidate wor...

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): G06F3/023
Inventor 薛永刚陈培军秦吉胜侯磊
Owner ALIBABA GRP HLDG 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