edu.cmu.minorthird.text.learn
Class AnnotatorTeacher

java.lang.Object
  extended by edu.cmu.minorthird.text.learn.AnnotatorTeacher
Direct Known Subclasses:
TextLabelsAnnotatorTeacher

public abstract class AnnotatorTeacher
extends java.lang.Object

Train a AnnotatorLearner and return the learned Annotator, using some unspecified source of information to get AnnotationExample's to train the learner.

Author:
William Cohen

Constructor Summary
AnnotatorTeacher()
           
 
Method Summary
abstract  TextLabels availableLabels()
          Labels available for training, testing
abstract  java.util.Iterator<Span> documentPool()
          Unlabeled instances.
abstract  boolean hasAnswers()
          Return true if this teacher can answer more queries.
abstract  AnnotationExample labelInstance(Span query)
          Label an Span queried by the learner.
 Annotator train(AnnotatorLearner learner)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotatorTeacher

public AnnotatorTeacher()
Method Detail

train

public final Annotator train(AnnotatorLearner learner)

availableLabels

public abstract TextLabels availableLabels()
Labels available for training, testing


documentPool

public abstract java.util.Iterator<Span> documentPool()
Unlabeled instances.


labelInstance

public abstract AnnotationExample labelInstance(Span query)
Label an Span queried by the learner. Return null if the query can't be answered, otherwise return an AnnotationExample.


hasAnswers

public abstract boolean hasAnswers()
Return true if this teacher can answer more queries.