|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--edu.mit.csail.brill.BrillTagger
The Java interface to Eric Brill's part-of-speech tagger. It is written as a
wrapper around BTagger, the raw JNI interface around the original
tagger.
Here is the complete tagset:
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$ 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
| Constructor Summary | |
BrillTagger()
Creates an instance of Brill's part-of-speech tagger. |
|
| Method Summary | |
void |
destroy()
Destroys the tagger. |
static void |
main(String[] arg)
|
void |
setup()
Initializes the tagger. |
edu.mit.csail.brill.Sentence |
tag(String sentence)
Part-of-speech tags a sentence. |
static String |
tokenize(String s)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BrillTagger()
| Method Detail |
public void setup()
public void destroy()
public edu.mit.csail.brill.Sentence tag(String sentence)
sentence - the sentence to tag
public static String tokenize(String s)
public static void main(String[] arg)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||