public class ColumnDocumentReaderAndWriter extends java.lang.Object implements DocumentReaderAndWriter<CoreLabel>
Constructor and Description |
---|
ColumnDocumentReaderAndWriter() |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<java.util.List<CoreLabel>> |
getIterator(java.io.Reader r)
Return an iterator over the contents read from r.
|
void |
init(SeqClassifierFlags flags)
This will be called immediately after construction.
|
void |
init(java.lang.String map) |
void |
printAnswers(java.util.List<CoreLabel> doc,
java.io.PrintWriter out)
This method prints the output of the classifier to a
PrintWriter . |
public void init(SeqClassifierFlags flags)
DocumentReaderAndWriter
init
in interface DocumentReaderAndWriter<CoreLabel>
flags
- Flags specifying behaviorpublic void init(java.lang.String map)
public java.util.Iterator<java.util.List<CoreLabel>> getIterator(java.io.Reader r)
IteratorFromReaderFactory
getIterator
in interface IteratorFromReaderFactory<java.util.List<CoreLabel>>
r
- Where to read objects frompublic void printAnswers(java.util.List<CoreLabel> doc, java.io.PrintWriter out)
DocumentReaderAndWriter
PrintWriter
.printAnswers
in interface DocumentReaderAndWriter<CoreLabel>
doc
- The document which has answers (it has been classified)out
- Where to send the output