edu.stanford.nlp.sequences
Class ColumnDocumentReaderAndWriter

java.lang.Object
  extended by edu.stanford.nlp.sequences.ColumnDocumentReaderAndWriter
All Implemented Interfaces:
IteratorFromReaderFactory<List<FeatureLabel>>, DocumentReaderAndWriter, Serializable

public class ColumnDocumentReaderAndWriter
extends Object
implements DocumentReaderAndWriter

DocumentReader for column format

Author:
Jenny Finkel
See Also:
Serialized Form

Constructor Summary
ColumnDocumentReaderAndWriter()
           
 
Method Summary
 Iterator<List<FeatureLabel>> getIterator(Reader r)
           
 void init(SeqClassifierFlags flags)
          Will be called immediately after construction.
 void printAnswers(List<FeatureLabel> 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

ColumnDocumentReaderAndWriter

public ColumnDocumentReaderAndWriter()
Method Detail

init

public void init(SeqClassifierFlags flags)
Description copied from interface: DocumentReaderAndWriter
Will be called immediately after construction. Needed because of reflection.

Specified by:
init in interface DocumentReaderAndWriter

getIterator

public Iterator<List<FeatureLabel>> getIterator(Reader r)
Specified by:
getIterator in interface IteratorFromReaderFactory<List<FeatureLabel>>

printAnswers

public void printAnswers(List<FeatureLabel> doc,
                         PrintWriter out)
Description copied from interface: DocumentReaderAndWriter
This method prints the output of the classifier to a PrintWriter.

Specified by:
printAnswers in interface DocumentReaderAndWriter


Stanford NLP Group