|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.sequences.ColumnDocumentReaderAndWriter
public class ColumnDocumentReaderAndWriter
DocumentReader for column format
Constructor Summary | |
---|---|
ColumnDocumentReaderAndWriter()
|
Method Summary | |
---|---|
Iterator<List<CoreLabel>> |
getIterator(Reader r)
Return an iterator over the contents read from r. |
void |
init(SeqClassifierFlags flags)
This will be called immediately after construction. |
void |
init(String map)
|
void |
printAnswers(List<CoreLabel> doc,
PrintWriter out)
This method prints the output of the classifier to a PrintWriter . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ColumnDocumentReaderAndWriter()
Method Detail |
---|
public void init(SeqClassifierFlags flags)
DocumentReaderAndWriter
init
in interface DocumentReaderAndWriter<CoreLabel>
flags
- Flags specifying behaviorpublic void init(String map)
public Iterator<List<CoreLabel>> getIterator(Reader r)
IteratorFromReaderFactory
getIterator
in interface IteratorFromReaderFactory<List<CoreLabel>>
r
- Where to read objects from
public void printAnswers(List<CoreLabel> doc, 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |