edu.stanford.nlp.sequences
Class PlainTextDocumentReaderAndWriter
java.lang.Object
edu.stanford.nlp.sequences.PlainTextDocumentReaderAndWriter
- All Implemented Interfaces:
- IteratorFromReaderFactory<List<FeatureLabel>>, DocumentReaderAndWriter, Serializable
public class PlainTextDocumentReaderAndWriter
- extends Object
- implements DocumentReaderAndWriter
- Author:
- Jenny Finkel
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlainTextDocumentReaderAndWriter
public PlainTextDocumentReaderAndWriter()
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>>
getAnswers
public static String getAnswers(List<FeatureLabel> l)
printAnswers
public void printAnswers(List<FeatureLabel> l)
printAnswers
public void printAnswers(List<FeatureLabel> l,
PrintWriter out)
- Description copied from interface:
DocumentReaderAndWriter
- This method prints the output of the classifier to a
PrintWriter
.
- Specified by:
printAnswers
in interface DocumentReaderAndWriter
getAnswersXML
public static String getAnswersXML(List<FeatureLabel> l)
printAnswersXML
public static void printAnswersXML(List<FeatureLabel> l)
printAnswersXML
public static void printAnswersXML(List<FeatureLabel> doc,
PrintWriter out)
getAnswersInlineXML
public static String getAnswersInlineXML(List<FeatureLabel> l)
printAnswersInlineXML
public void printAnswersInlineXML(List<FeatureLabel> l)
printAnswersInlineXML
public static void printAnswersInlineXML(List<FeatureLabel> doc,
PrintWriter out)
Stanford NLP Group