opennlp-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Philippe Fauconnier <jean.philippe.fauconn...@gmail.com>
Subject Re: Need Help
Date Mon, 02 Sep 2013 09:37:21 GMT

Hello,

You can use a script language (Python, Perl, etc.) to obtain that.
A naive example in Perl ;
~$ echo "Hi._NNP How_WRB are_VBP you?_JJ This_DT is_VBZ Mike._NNP" | 
perl -ne 'print split(/_[A-Z]{2,3}/, $_);'
~$ Hi. How are you? This is Mike.

Regards,

Jean-Philippe





On 02/09/13 11:06, Jayant Kumar Singh wrote:
> Hello team,
>
> I have started learning Open NLP and curious to know that once we have POS Tagger , can
we get its corresponding English sentence back ?
>
> For example:
> Input string: Hi._NNP How_WRB are_VBP you?_JJ This_DT is_VBZ Mike._NNP
>
>
> OutPut string: Hi. How are you? This is Mike.
>
> Any help or pointers is highly appreciated.
>
> Thanks & Regards,
> Jayant Singh
>
>


Mime
View raw message