|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.cmu.minorthird.text.learn.AnnotatorLearner edu.cmu.minorthird.text.learn.AbstractBatchAnnotatorLearner
public abstract class AbstractBatchAnnotatorLearner
Learn an annotation model using a sequence dataset and some sort of batch learner.
Field Summary | |
---|---|
protected java.lang.String |
annotationType
|
protected SpanFeatureExtractor |
fe
|
protected Extraction2TaggingReduction |
reduction
|
protected SequenceDataset |
seqData
|
Constructor Summary | |
---|---|
AbstractBatchAnnotatorLearner()
|
|
AbstractBatchAnnotatorLearner(SpanFeatureExtractor fe,
Extraction2TaggingReduction reduction)
|
Method Summary | |
---|---|
java.lang.String |
getAnnotationType()
Get the label used for annotations produced by the learner. |
abstract Annotator |
getAnnotator()
Return the learned annotator. |
SequenceDataset |
getSequenceDataset()
Get the constructed sequence data. |
SpanFeatureExtractor |
getSpanFeatureExtractor()
Feature extractor used for tokens |
Extraction2TaggingReduction |
getTaggingReduction()
Scheme for reducing extraction to a token-classification problem |
java.lang.String |
getTaggingReductionHelp()
|
boolean |
hasNextQuery()
Ask for labels on every document. |
Span |
nextQuery()
Return the next unlabeled document. |
void |
reset()
|
void |
setAnnotationType(java.lang.String s)
The spanType of the annotation produced by the learned annotator. |
void |
setAnswer(AnnotationExample answeredQuery)
Accept the answer to the last query. |
void |
setDocumentPool(java.util.Iterator<Span> documentLooper)
Accept the pool of unlabeled documents. |
void |
setSpanFeatureExtractor(SpanFeatureExtractor fe)
Set the feature extractor used by this annotator. |
void |
setTaggingReduction(Extraction2TaggingReduction reduction)
|
Methods inherited from class edu.cmu.minorthird.text.learn.AnnotatorLearner |
---|
getAnnotationTypeHelp, getSpanFeatureExtractorHelp |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected SpanFeatureExtractor fe
protected java.lang.String annotationType
protected SequenceDataset seqData
protected Extraction2TaggingReduction reduction
Constructor Detail |
---|
public AbstractBatchAnnotatorLearner()
public AbstractBatchAnnotatorLearner(SpanFeatureExtractor fe, Extraction2TaggingReduction reduction)
Method Detail |
---|
public void reset()
reset
in class AnnotatorLearner
public Extraction2TaggingReduction getTaggingReduction()
public void setTaggingReduction(Extraction2TaggingReduction reduction)
public java.lang.String getTaggingReductionHelp()
public SpanFeatureExtractor getSpanFeatureExtractor()
getSpanFeatureExtractor
in class AnnotatorLearner
public void setSpanFeatureExtractor(SpanFeatureExtractor fe)
AnnotatorLearner
setSpanFeatureExtractor
in class AnnotatorLearner
public void setAnnotationType(java.lang.String s)
setAnnotationType
in class AnnotatorLearner
public java.lang.String getAnnotationType()
AnnotatorLearner
getAnnotationType
in class AnnotatorLearner
public void setDocumentPool(java.util.Iterator<Span> documentLooper)
setDocumentPool
in class AnnotatorLearner
public boolean hasNextQuery()
hasNextQuery
in class AnnotatorLearner
public Span nextQuery()
nextQuery
in class AnnotatorLearner
public void setAnswer(AnnotationExample answeredQuery)
setAnswer
in class AnnotatorLearner
public abstract Annotator getAnnotator()
getAnnotator
in class AnnotatorLearner
public SequenceDataset getSequenceDataset()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |