|
|||||||||
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
public abstract class AnnotatorLearner
Learn an Annotator from AnnotationExample's.
Constructor Summary | |
---|---|
AnnotatorLearner()
|
Method Summary | |
---|---|
abstract java.lang.String |
getAnnotationType()
Get the label used for annotations produced by the learner. |
java.lang.String |
getAnnotationTypeHelp()
|
abstract Annotator |
getAnnotator()
Return the learned annotator |
abstract SpanFeatureExtractor |
getSpanFeatureExtractor()
Return the span feature extractor used by this annotator. |
java.lang.String |
getSpanFeatureExtractorHelp()
|
abstract boolean |
hasNextQuery()
Returns true if the learner has more queries to answer. |
abstract Span |
nextQuery()
Returns an Span which the learner would like labeled. |
abstract void |
reset()
|
abstract void |
setAnnotationType(java.lang.String s)
Set the label used for annotations produced by the learner. |
abstract void |
setAnswer(AnnotationExample answeredQuery)
Accept the answer to the last query. |
abstract void |
setDocumentPool(java.util.Iterator<Span> documents)
Accept a pool of documents. |
abstract void |
setSpanFeatureExtractor(SpanFeatureExtractor fe)
Set the feature extractor used by this annotator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnnotatorLearner()
Method Detail |
---|
public abstract void reset()
public abstract void setDocumentPool(java.util.Iterator<Span> documents)
public abstract boolean hasNextQuery()
public abstract Span nextQuery()
public abstract void setAnswer(AnnotationExample answeredQuery)
public abstract void setAnnotationType(java.lang.String s)
public abstract java.lang.String getAnnotationType()
public abstract Annotator getAnnotator()
public abstract SpanFeatureExtractor getSpanFeatureExtractor()
public abstract void setSpanFeatureExtractor(SpanFeatureExtractor fe)
public java.lang.String getAnnotationTypeHelp()
public java.lang.String getSpanFeatureExtractorHelp()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |