Reference

Class

RiTa

Name

posInline

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
Example

sentence = "The doctors treated dogs";
pos = RiTa.posInline(sentence);

tokenArray = RiTa.tokenize(sentence);
pos = RiTa.posInline(tokenArray);

Parameters
String or String[]the text(or text array) to tag
booleanuse tags or not (optional, default=false)
Object
(or Map in Java)
optional way to set the option

{boolean} option.simple:
use simple tags or not, default=false
Returns
Stringa combined string of words and pos tags
Syntax
RiTa.posInline(word);
RiTa.posInline(word, simpleTags);
RiTa.posInline(word, option);
Platform Java / JavaScript