The POSTagger typically accepts an array of tokens and returns an array
of pos-tags for those tokens...you already have the original sentence
(tokenized) otherwise you couldn't run the POSTagger in the first place...
In other words you don't really need to do anything other than
concatenate all the tokens in the original array, while interposing a
/space character.
HTH,
Jim
On 02/09/13 10: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