public class CorpusWriter extends AbstractCorpusWriter
commentPrefix. If
commentPrefix is null, then comments are not printed at all.AbstractCorpusWriter.ExBiConsumer<E,F>, AbstractCorpusWriter.ExConsumer<E>| Constructor and Description |
|---|
CorpusWriter(InterpretedTreeAutomaton irtg,
String comment,
String commentPrefix,
InterpretationPrintingPolicy printingPolicy,
Writer writer) |
CorpusWriter(InterpretedTreeAutomaton irtg,
String comment,
String commentPrefix,
Writer writer) |
CorpusWriter(InterpretedTreeAutomaton irtg,
String comment,
Writer writer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
setPrintSeparatorLines(boolean printSeparatorLines) |
void |
writeInstance(Instance inst) |
accept, isAnnotated, setAnnotated, writeCorpuspublic static final String NULL
public CorpusWriter(InterpretedTreeAutomaton irtg, String comment, String commentPrefix, Writer writer) throws IOException
IOExceptionpublic CorpusWriter(InterpretedTreeAutomaton irtg, String comment, String commentPrefix, InterpretationPrintingPolicy printingPolicy, Writer writer) throws IOException
comment - commentPrefix - - string with which each line of comments is
prefixed; set to null to suppress comments in outputprintingPolicy - writer - IOExceptionpublic CorpusWriter(InterpretedTreeAutomaton irtg, String comment, Writer writer) throws IOException
IOExceptionpublic void close()
throws IOException
close in class AbstractCorpusWriterIOExceptionpublic void writeInstance(Instance inst) throws IOException
writeInstance in class AbstractCorpusWriterIOExceptionpublic void setPrintSeparatorLines(boolean printSeparatorLines)
Copyright © 2017. All rights reserved.