edu.cmu.minorthird.text
Class MixupAnnotator

java.lang.Object
  extended by edu.cmu.minorthird.text.AbstractAnnotator
      extended by edu.cmu.minorthird.text.MixupAnnotator
All Implemented Interfaces:
Annotator, java.io.Serializable

public class MixupAnnotator
extends AbstractAnnotator
implements java.io.Serializable

Annotate labels using a mixup program.

Author:
William Cohen
See Also:
Serialized Form

Constructor Summary
MixupAnnotator(MixupProgram program)
           
 
Method Summary
protected  void doAnnotate(MonotonicTextLabels labels)
          Right now this method executes the mixup program associated with this annotator and the caller is expected to get the results directly out of the labels set that was passed in originally.
 java.lang.String explainAnnotation(TextLabels labels, Span documentSpan)
          The implementation for this method should explain how annotation would be added to some part of the text base.
 
Methods inherited from class edu.cmu.minorthird.text.AbstractAnnotator
annotate, annotatedCopy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MixupAnnotator

public MixupAnnotator(MixupProgram program)
Method Detail

doAnnotate

protected void doAnnotate(MonotonicTextLabels labels)
Right now this method executes the mixup program associated with this annotator and the caller is expected to get the results directly out of the labels set that was passed in originally. This means that if the program creates new levels, it should also populate any final results back to the root level using the importLabelsFromLevel method in MixupInterpreter. Otherwise these results will be lost.

Specified by:
doAnnotate in class AbstractAnnotator

explainAnnotation

public java.lang.String explainAnnotation(TextLabels labels,
                                          Span documentSpan)
Description copied from class: AbstractAnnotator
The implementation for this method should explain how annotation would be added to some part of the text base.

Specified by:
explainAnnotation in interface Annotator
Specified by:
explainAnnotation in class AbstractAnnotator