public class TrueCasingForNISTDocumentReaderAndWriter extends java.lang.Object implements DocumentReaderAndWriter<CoreLabel>
| Modifier and Type | Class and Description |
|---|---|
static class |
TrueCasingForNISTDocumentReaderAndWriter.LineToTrueCasesParser |
| Modifier and Type | Field and Description |
|---|---|
static java.util.Set |
knownWords |
static boolean |
THREE_CLASSES |
static java.lang.String |
THREE_CLASSES_PROPERTY |
| Constructor and Description |
|---|
TrueCasingForNISTDocumentReaderAndWriter() |
| 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.
|
static boolean |
known(java.lang.String s) |
static void |
main(java.lang.String[] args)
for test only
|
void |
printAnswers(java.util.List<CoreLabel> doc,
java.io.PrintWriter out)
This method prints the output of the classifier to a
PrintWriter. |
public static final java.lang.String THREE_CLASSES_PROPERTY
public static final boolean THREE_CLASSES
public static java.util.Set knownWords
public TrueCasingForNISTDocumentReaderAndWriter()
public static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOExceptionpublic void init(SeqClassifierFlags flags)
DocumentReaderAndWriterinit in interface DocumentReaderAndWriter<CoreLabel>flags - Flags specifying behaviorpublic static boolean known(java.lang.String s)
public java.util.Iterator<java.util.List<CoreLabel>> getIterator(java.io.Reader r)
IteratorFromReaderFactorygetIterator in interface IteratorFromReaderFactory<java.util.List<CoreLabel>>r - Where to read objects frompublic void printAnswers(java.util.List<CoreLabel> doc, java.io.PrintWriter out)
DocumentReaderAndWriterPrintWriter.printAnswers in interface DocumentReaderAndWriter<CoreLabel>doc - The document which has answers (it has been classified)out - Where to send the output