| Description |
Simple pos-tagger for the RiTa libary using the Penn tagset. Use RiPosTagger.setDefaultTagger(type);
to specify a (faster/lighter) transformation-based tagger, or the (usually more accurate)
maximum-entryopy tagger
RiPosTagger tagger = new RiPosTagger(this);
String s = "The teenage boy, stricken with fear, cried sadly like a little baby";
String[] words = RiTa.tokenize(s);
String[] tags = tagger.tag(words);
for (int i = 0; i < sents.length; i++) {
System.out.println(sents[i]);
} // OR
System.out.println(tagger.tagInline(s));
The full Penn part-of-speech tag set:
cc coordinating conjunction
cd cardinal number
dt determiner
ex existential there
fw foreign word
in preposition/subord. conjunction
jj adjective
jjr adjective, comparative
jjs adjective, superlative
ls list item marker
md modal
nn noun, singular or mass
nns noun, plural
nnp proper noun, singular
nnps proper noun, plural
pdt predeterminer
pos possessive ending
prp personal pronoun
prp$ i possessive pronoun
rb adverb
rbr adverb, comparative
rbs adverb, superlative
rp particle
sym symbol (mathematical or scientific)
to to
uh interjection
vb verb, base form
vbd verb, past tense
vbg verb, gerund/present participle
vbn verb, past participle
vbp verb, non-3rd ps. sing. present
vbz verb, 3rd ps. sing. present
wdt wh-determiner
wp wh-pronoun
wp$ possessive wh-pronoun
wrb wh-adverb
# pound sign
$ dollar sign
. sentence-final punctuation
, comma
: colon, semi-colon
( left bracket character
) right bracket character
" straight double quote
` left open single quote
" left open double quote
' right close single quote
" right close double quote
- dash
|