edu.stanford.nlp.sequences
Class TrueCasingDocumentReaderAndWriter

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

public class TrueCasingDocumentReaderAndWriter
extends Object
implements DocumentReaderAndWriter

Author:
Jenny Finkel
See Also:
Serialized Form

Field Summary
static Set<String> knownWords
           
 
Constructor Summary
TrueCasingDocumentReaderAndWriter()
           
 
Method Summary
 Iterator<List<CoreLabel>> getIterator(Reader r)
           
 void init(SeqClassifierFlags flags)
          Will be called immediately after construction.
static boolean known(String s)
           
 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
 

Field Detail

knownWords

public static Set<String> knownWords
Constructor Detail

TrueCasingDocumentReaderAndWriter

public TrueCasingDocumentReaderAndWriter()
Method Detail

init

public void init(SeqClassifierFlags flags)
Description copied from interface: DocumentReaderAndWriter
Will be called immediately after construction. It's easier having an init() method because DocumentReaderAndWriter objects are usually created using reflection.

Specified by:
init in interface DocumentReaderAndWriter
Parameters:
flags - Flags specifying behavior

known

public static boolean known(String s)

getIterator

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

printAnswers

public void printAnswers(List<CoreLabel> 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
Parameters:
doc - The document which has answers (it has been classified)
out - Where to send the output


Stanford NLP Group