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: Ben Bacarisse Newsgroups: comp.lang.javascript Subject: Re: automatically correct the parts of speech of a document Date: Sat, 13 Sep 2014 12:16:33 +0100 Organization: A noiseless patient Spider Lines: 21 Message-ID: <878ulnn52m.fsf@bsb.me.uk> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx05.eternal-september.org; posting-host="017616aa25f81ec581c44d76d61ba2f3"; logging-data="3147"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18+WLVpIEA4UIwJVyex6EY10EElXL/vk/o=" Cancel-Lock: sha1:AFN5vYtpaQIycaDycPHzLhlQ/Po= sha1:tl+QV2HfvaG3H6l2P7S787pgLyo= X-BSB-Auth: 1.69402ff70b98a147f472.20140913121633BST.878ulnn52m.fsf@bsb.me.uk Xref: csiph.com comp.lang.javascript:25835 Anupam Jamatia writes: > 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. This is not the right place to get help for this. If you must Java, post in a Java group, but I would urge you to consider a language specifically designed for string and text processing. For more recommendations about that, and for advice on the linguistic parts of this problem, you could ask in sci.lang. -- Ben.