TEXT SUGGESTION USING A PREDICTIVE GRAMMAR MODEL
First Claim
Patent Images
1. A method that generates an auto-complete word, the method comprising:
- receiving from a user through a text input mechanism characters forming one or more words that form a first portion of a sentence;
determining a contrastive grammatical category for each of the one or more words;
identifying a phrase structure rule within a generative grammar model that starts with a sequence of contrastive grammatical categories that match the sequence of contrastive grammatical categories formed by the one or more words;
for each of a plurality of contrastive grammatical categories, determining a cost for a rightward expansion of the phrase structure rule to add a next word of an individual contrastive grammatical category to the sentence;
determining a next contrastive grammatical category for the next word in the sentence by selecting the individual contrastive grammatical category having a lowest cost of rightward expansion out of the plurality of contrastive grammatical categories; and
outputting for display to the user one or more auto-complete words within the next contrastive grammatical category.
1 Assignment
0 Petitions
Accused Products
Abstract
The technology described herein can improve the operation of a computerized text entry system (e.g., keyboard, speech to text) by making grammatically correct auto-complete suggestions as a user enters text. The technology described herein builds and uses a set of generalized rules that make the auto-complete feature sensitive to the context of what has already been typed, particularly at the level of a sentence or phrase. The technology described herein receives one or more words within a partially completed sentence and outputs one or more contrastive grammatical categories that the next word may be if the final sentence is to be grammatical.
177 Citations
20 Claims
-
1. A method that generates an auto-complete word, the method comprising:
-
receiving from a user through a text input mechanism characters forming one or more words that form a first portion of a sentence; determining a contrastive grammatical category for each of the one or more words; identifying a phrase structure rule within a generative grammar model that starts with a sequence of contrastive grammatical categories that match the sequence of contrastive grammatical categories formed by the one or more words; for each of a plurality of contrastive grammatical categories, determining a cost for a rightward expansion of the phrase structure rule to add a next word of an individual contrastive grammatical category to the sentence; determining a next contrastive grammatical category for the next word in the sentence by selecting the individual contrastive grammatical category having a lowest cost of rightward expansion out of the plurality of contrastive grammatical categories; and outputting for display to the user one or more auto-complete words within the next contrastive grammatical category. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A computing system comprising:
-
a processor; computer storage memory; a touchscreen display; a composition application programmed to receive textual input from a user typing on a touchscreen keyboard displayed on the touchscreen display, the textual input comprising a first word in a sentence; a probabilistic language model component programmed to generate a plurality of possible next words in the sentence, each word ranked according to a probability assigned by the probabilistic language model; a generative grammar model component that is programmed to determine a contrastive grammatical category for the next word in the sentence having a lowest cost to complete a grammatical sentence; a reordering component that is programmed to assign a new rank to the possible next words using the contrastive grammatical category and the rank assigned by the probabilistic language model; and an auto-complete interface component that is programmed to output for display through the touchscreen display, a subset of the plurality of the possible next words in the sentence, the subset displayed in an auto-complete graphical user interface, the subset comprising words assigned above a threshold new rank. - View Dependent Claims (9, 10, 11, 12, 13, 14, 15)
-
-
16. A method of suggesting a grammatically correct auto-complete word to a user, the method comprising:
-
referencing a corpus of words that are each assigned to one or more contrastive grammatical categories; referencing a corpus of grammatically correct text; generating a corpus of normalized text by segmenting the grammatically correct text into sentences; generating a plurality of grammatical sequences by replacing words within the corpus of normalized text with tags corresponding with the words'"'"' contrastive grammatical category within the corpus of words; generating a plurality of rule sets by collapsing the grammatical sequences according to constituency within each grammatical sequence; and generating a predictive generative grammar model by generalizing the plurality of rule sets using a similarity function. - View Dependent Claims (17, 18, 19, 20)
-
Specification