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, writeCorpus
public static final String NULL
public CorpusWriter(InterpretedTreeAutomaton irtg, String comment, String commentPrefix, Writer writer) throws IOException
IOException
public 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
- IOException
public CorpusWriter(InterpretedTreeAutomaton irtg, String comment, Writer writer) throws IOException
IOException
public void close() throws IOException
close
in class AbstractCorpusWriter
IOException
public void writeInstance(Instance inst) throws IOException
writeInstance
in class AbstractCorpusWriter
IOException
public void setPrintSeparatorLines(boolean printSeparatorLines)
Copyright © 2017. All rights reserved.