Text auto-correction via N-grams
First Claim
Patent Images
1. A method for text auto-correction, the method comprising:
- receiving an input text string on an electronic text input interface device, the input text string comprising N words and a categorical topic;
generating a subsequent text string comprising a plurality of N−
1 subsequent words forming a subsequent phrase within the categorical topic by determining probabilities that the N−
1 subsequent words follow the N words in the input test string;
generating a preceding text string comprising a plurality of N−
1 preceding words forming a preceding phrase for the input text string within the categorical topic by determining probabilities that the N−
1 preceding words following precede the N words in the input test string;
creating a corrected text string by inserting the preceding phrase before the input text string and appending the subsequent phrase after the input text string; and
displaying the corrected text string on the electronic text input interface device.
2 Assignments
0 Petitions
Accused Products
Abstract
An input text string is received that contains characters or words. The input text string can be completed or corrected using contact scores based on n-grams. In addition, a subsequent text string and a preceding text string for the input text string are also identified, again using n-gram scores. A corrected text string is created by inserting the preceding text string before the input text string and appending the subsequent text string after the input text string.
14 Citations
24 Claims
-
1. A method for text auto-correction, the method comprising:
-
receiving an input text string on an electronic text input interface device, the input text string comprising N words and a categorical topic; generating a subsequent text string comprising a plurality of N−
1 subsequent words forming a subsequent phrase within the categorical topic by determining probabilities that the N−
1 subsequent words follow the N words in the input test string;generating a preceding text string comprising a plurality of N−
1 preceding words forming a preceding phrase for the input text string within the categorical topic by determining probabilities that the N−
1 preceding words following precede the N words in the input test string;creating a corrected text string by inserting the preceding phrase before the input text string and appending the subsequent phrase after the input text string; and displaying the corrected text string on the electronic text input interface device. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A non-transitory computer-readable storage medium containing a computer-readable code that when read by a computer causes the computer to perform a method for text auto-correction, the method comprising:
-
receiving an input text string on an electronic text input interface device, the input text string comprising N words and a categorical topic; generating a subsequent text string comprising a plurality of N−
1 subsequent words forming a subsequent phrase within the categorical topic by determining probabilities that the N−
1 subsequent words follow the N words in the input test string;generating a preceding text string comprising a plurality of N−
1 preceding words forming a preceding phrase for the input text string within the categorical topic by determining probabilities that the N−
1 preceding words following precede the N words in the input test string;creating a corrected text string by inserting the preceding phrase before the input text string and appending the subsequent phrase after the input text string; and displaying the corrected text string on the electronic text input interface device. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17)
-
-
18. A method for text auto-correction, the method comprising:
-
receiving an input text string on an electronic text input interface device, the input text string comprising N words; locating the input text string in an input state of a state graph comprising a plurality of states and a plurality of transitions between pairs of states, each state comprising a given phrase and each transition comprising an N-gram score expressing a probability that phrases in a given pair of states associated with that transition comprise a sequence of phrases, the input state comprising an input phrase containing each input word in the N words; identifying a subsequent state in the state graph comprising a subsequent phrase comprising a plurality of N−
1 subsequent words such that a transition between the input state and the subsequent state comprises an N-gram score expressing highest probability associated with a sequence comprising the input phrase followed by the subsequent phrase;identifying a preceding state in the state graph comprising a preceding phrase comprising a plurality of N−
1 preceding words such that a transition between the input state and the preceding state comprises an N-gram score expressing highest probability associated with a sequence comprising the preceding phrase followed by the input phrase; andcreating a corrected text string by inserting the preceding phrase before the input phrase and appending the subsequent phrase after the input phrase; and displaying the corrected text string on the electronic text input interface device.
-
-
19. A system for text auto-correction, the system comprising:
-
a text input interface device to receive an input text string from a user, the text input string comprising N words; a semantic processing module in communication with the text input device to use an N-gram language model to evaluate the input text string and extend the input text string in at least two directions by generating a subsequent text string comprising a plurality of N−
1 subsequent words forming a subsequent phrase by determining probabilities from the N-gram language model that the N−
1 subsequent words follow the N words in the input text string and generating a preceding text string comprising a plurality of N−
1 preceding words forming a preceding phrase for the input text string by determining probabilities from the N-gram language model that the N−
1 preceding words precede the N words in the input text string and creating a corrected text string by inserting the preceding phrase before the input text string and appending the subsequent phrase after the input text string; anda user interface in communication with the text input interface and the semantic processing module to display the corrected text string to the user for approval. - View Dependent Claims (20, 21, 22, 23, 24)
-
Specification