public interface DocumentReaderAndWriter<IN extends CoreMap> extends IteratorFromReaderFactory<java.util.List<IN>>, java.io.Serializable
SequenceClassifiers.
If you subclass this interface, all of the other
mechanisms necessary for getting your data into a
SequenceClassifier will be taken care of
for you. Subclasses MUST have an empty constructor as
they can be instantiated by reflection, and
there is a promise that the init method will
be called immediately after construction.| Modifier and Type | Method and Description |
|---|---|
void |
init(SeqClassifierFlags flags)
This will be called immediately after construction.
|
void |
printAnswers(java.util.List<IN> doc,
java.io.PrintWriter out)
This method prints the output of the classifier to a
PrintWriter. |
getIteratorvoid init(SeqClassifierFlags flags)
flags - Flags specifying behaviorvoid printAnswers(java.util.List<IN> doc, java.io.PrintWriter out)
PrintWriter.doc - The document which has answers (it has been classified)out - Where to send the output