|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJet.HMM.HMMTagger
a POS (part-of-speech) tagger using a bigram model. The tagger makes use of the generic HMM (Hidden Markov Model) mechanism.
Field Summary | |
static boolean |
trace
if true, use HMMannotator trace to write a one-line message about each part-of-speech assignment to Console. |
Constructor Summary | |
HMMTagger()
create a new HMM-based part-of-speech tagger. |
Method Summary | |
void |
annotate(Document doc,
Span span,
java.lang.String type)
tag 'span' of 'doc' according to the Penn Tree Bank tag set. |
void |
load(java.lang.String fileName)
load the HMM associated with this tagger from file 'fileName'. |
void |
prune(Document doc,
Span span)
prune existing 'constit' annotations on 'span' of 'doc' using information from a part-of-speech tagger. |
void |
score(Document doc,
Document key)
compare the 'constit' tags of Documents 'doc' and 'key', and report (to System.out) the agreement rate. |
void |
store(java.lang.String fileName)
store the HMM associated with this tagger to file 'fileName'. |
void |
tagJet(Document doc,
Span span)
tag 'span' of 'doc' according to the Jet part of speech set. |
void |
tagPenn(Document doc,
Span span)
tag 'span' of 'doc' according to the Penn Tree Bank tag set. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static boolean trace
Constructor Detail |
public HMMTagger()
Method Detail |
public void store(java.lang.String fileName) throws java.io.IOException
java.io.IOException
public void load(java.lang.String fileName) throws java.io.IOException
java.io.IOException
public void tagPenn(Document doc, Span span)
public void annotate(Document doc, Span span, java.lang.String type)
public void score(Document doc, Document key)
public void tagJet(Document doc, Span span)
public void prune(Document doc, Span span)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |