Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #29968

Re: automatically correct the parts of speech of a document.

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 <martin@address-in-sig.invalid>
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 <lv19vj$9b4$1@dont-email.me> (permalink)
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

Show key headers only | View raw


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       |

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

automatically correct the parts of speech of a document. Anupam Jamatia <anupamjamatia@gmail.com> - 2014-09-13 00:16 -0700
  Re: automatically correct the parts of speech of a document. Martin Gregorie <martin@address-in-sig.invalid> - 2014-09-13 11:32 +0000
  Re: automatically correct the parts of speech of a document. Jeff Higgins <jeff@invalid.invalid> - 2014-09-13 19:24 -0400

csiph-web