Reference

Class

RiTa

Name

RiTa.getPosTagsInline

Description Takes an string returns a combined string of the form:

'The/dt doctor/nn treated/vbd dogs/nns'
, using lowercased tags from the PENN tag set
Syntax
RiTa.getPosTagsInline(word);
Parameters
String or String[]the text to tag
Returns
Stringa combined string of words and pos tags
Example

sentence = "The doctors treated dogs";
posTags = RiTa.getPosTagsInline(sentence);

tokenArray = RiTa.tokenize(sentence);
posTags = RiTa.getPosTagsInline(tokenArray);

Platform Java / Javascript