|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.cmu.minorthird.text.learn.AnnotatorTeacher edu.cmu.minorthird.text.learn.TextLabelsAnnotatorTeacher
public class TextLabelsAnnotatorTeacher
Train an AnnotationExample from a previously annotated corpus (stored in a TextLabels).
Constructor Summary | |
---|---|
TextLabelsAnnotatorTeacher(TextLabels labels,
java.lang.String userLabelType)
|
|
TextLabelsAnnotatorTeacher(TextLabels labels,
java.lang.String userLabelType,
java.lang.String userLabelProp)
|
Method Summary | |
---|---|
TextLabels |
availableLabels()
Labels available for training, testing |
java.util.Iterator<Span> |
documentPool()
Unlabeled instances. |
boolean |
hasAnswers()
Return true if this teacher can answer more queries. |
AnnotationExample |
labelInstance(Span query)
Label an Span queried by the learner. |
Methods inherited from class edu.cmu.minorthird.text.learn.AnnotatorTeacher |
---|
train |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextLabelsAnnotatorTeacher(TextLabels labels, java.lang.String userLabelType)
public TextLabelsAnnotatorTeacher(TextLabels labels, java.lang.String userLabelType, java.lang.String userLabelProp)
Method Detail |
---|
public java.util.Iterator<Span> documentPool()
AnnotatorTeacher
documentPool
in class AnnotatorTeacher
public AnnotationExample labelInstance(Span query)
AnnotatorTeacher
labelInstance
in class AnnotatorTeacher
public boolean hasAnswers()
AnnotatorTeacher
hasAnswers
in class AnnotatorTeacher
public TextLabels availableLabels()
AnnotatorTeacher
availableLabels
in class AnnotatorTeacher
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |