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
SequenceClassifierwill 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|
This will be called immediately after construction.
This method prints the output of the classifier to a
void init(SeqClassifierFlags flags)
flags- Flags specifying behavior
void printAnswers(java.util.List<IN> doc, java.io.PrintWriter out)
doc- The document which has answers (it has been classified)
out- Where to send the output
Stanford NLP Group