|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.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 AnnotatorLearnerpublic Extraction2TaggingReduction getTaggingReduction()
public void setTaggingReduction(Extraction2TaggingReduction reduction)
public java.lang.String getTaggingReductionHelp()
public SpanFeatureExtractor getSpanFeatureExtractor()
getSpanFeatureExtractor in class AnnotatorLearnerpublic void setSpanFeatureExtractor(SpanFeatureExtractor fe)
AnnotatorLearner
setSpanFeatureExtractor in class AnnotatorLearnerpublic void setAnnotationType(java.lang.String s)
setAnnotationType in class AnnotatorLearnerpublic java.lang.String getAnnotationType()
AnnotatorLearner
getAnnotationType in class AnnotatorLearnerpublic void setDocumentPool(java.util.Iterator<Span> documentLooper)
setDocumentPool in class AnnotatorLearnerpublic boolean hasNextQuery()
hasNextQuery in class AnnotatorLearnerpublic Span nextQuery()
nextQuery in class AnnotatorLearnerpublic void setAnswer(AnnotationExample answeredQuery)
setAnswer in class AnnotatorLearnerpublic abstract Annotator getAnnotator()
getAnnotator in class AnnotatorLearnerpublic SequenceDataset getSequenceDataset()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||