Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Martin Gregorie Newsgroups: comp.lang.java.programmer Subject: Re: automatically correct the parts of speech of a document. Date: Sat, 13 Sep 2014 11:32:03 +0000 (UTC) Organization: A noiseless patient Spider Lines: 26 Message-ID: References: <8902b6e3-c4c7-436d-bab8-30d816cfa2a1@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sat, 13 Sep 2014 11:32:03 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="e5160e2be48f1ea550cf61512446f525"; logging-data="9572"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18x2uvlINvDN6VFEVmvGtTwO3vo1G0RaR4=" User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Cancel-Lock: sha1:ev/egPixOv6mN6OQTOYWqKC44jk= Xref: csiph.com comp.lang.java.programmer:29968 On Sat, 13 Sep 2014 00:16:36 -0700, Anupam Jamatia wrote: > Hi friends, Please help me out. Any idea to write a program which will > automatically correct the parts of speech of a document. > > Example: say in my document I have My/PRONOUN name/PRONOUN is/VERB > Jhon/NOUN. He/PRONOUN is/VERB going/ADJ to/PREPOSITION school/NOUN > > Now I need to chenge My/PRONOUN name/NOUN is/VERB Jhon/NOUN. He/PRONOUN > is/VERB going/VERB to/PREPOSITION school/NOUN > > Any one can do manually, but How to do using java. The document may > contain 100 lines tagged with parts of speech. > > Thanks and Regards Anupam Its more fun to: - use a Markov Chain to reprocess the document - do a lookup on every word in the document and replace each directory miss with the first suggested replacement. -- martin@ | Martin Gregorie gregorie. | Essex, UK org |