Checking Grammar Using an Encoder and Decoder
OwnerJonathan Muganinventor
Life of this patent
Estimating the term…
Abstract
The present invention is a method and apparatus, including computer programs encoded on computer storage media, for checking grammar in text. An edit generator and edit scorer are provided. The edit generator creates edited versions of the text that are scored by the edit scorer. The edit scorer provides an encoder and a decoder. The encoder converts the text into an abstract representation that is used by the decoder to score edited versions of the text. The invention can also be used as a thesaurus and idiom finder, generating alternatives to words and phrases, and scoring their viability. The invention can also correct text in queries for items.
Claims20
An apparatus for checking grammar in text, comprising a processor or processors, a memory, and an application code, and further comprising:
- an edit generator for generating edited versions of the text;
- an edit scorer for scoring said edited versions for correctness, further comprising
- an encoder comprising one or more parametric functions that converts the text into an abstract representation;
- a decoder comprising one or more parametric functions that takes said abstract representation and computes the translation cost of translating the abstract representation into each of the edited versions of the text.
A method for generating word replacements in a text, the method comprising:
- encoding said text into an abstract representation;
- decoding said abstract representation into words that could replace each word.
A method for checking grammar in a text, the method comprising:
- generating a plurality of edited versions of the text;
- scoring said edited versions by
- encoding the text into an abstract representation;
- and
- computing a translation cost for each of said edited versions by decoding said abstract representation into each of said edited versions.
Dependencies are inferred from the claim text.