edu.cmu.minorthird.text.learn
Interface OnlineTextClassifierLearner

All Known Implementing Classes:
OnlineBinaryTextClassifierLearner

public interface OnlineTextClassifierLearner

Interface for OnlineLearner. Allows you to add to a learner by specifying a string rather than a Span. Can return a TextClassifier, which scores a String rather than a span.

Author:
Cameron Williams

Method Summary
 void addDocument(java.lang.String label, java.lang.String text)
          Provide document string with a label and add to the learner
 TextLabels annotatedCopy(TextLabels labels)
          Returns an annotated copy of TextLabels
 void completeTraining()
          Tells the learner that no more examples are coming
 ClassifierAnnotator getAnnotator()
           
 Classifier getClassifier()
          Returns the Classifier
 TextClassifier getTextClassifier()
          Returns the TextClassifier
 java.lang.String[] getTypes()
          Returns an array of spanTypes that can be added to the learner
 void reset()
          Erases all previous data from the learner
 

Method Detail

addDocument

void addDocument(java.lang.String label,
                 java.lang.String text)
Provide document string with a label and add to the learner


getTextClassifier

TextClassifier getTextClassifier()
Returns the TextClassifier


getClassifier

Classifier getClassifier()
Returns the Classifier


completeTraining

void completeTraining()
Tells the learner that no more examples are coming


reset

void reset()
Erases all previous data from the learner


getTypes

java.lang.String[] getTypes()
Returns an array of spanTypes that can be added to the learner


annotatedCopy

TextLabels annotatedCopy(TextLabels labels)
Returns an annotated copy of TextLabels


getAnnotator

ClassifierAnnotator getAnnotator()