|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
---|
void addDocument(java.lang.String label, java.lang.String text)
TextClassifier getTextClassifier()
Classifier getClassifier()
void completeTraining()
void reset()
java.lang.String[] getTypes()
TextLabels annotatedCopy(TextLabels labels)
ClassifierAnnotator getAnnotator()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |