public class CONLLWriter09 extends IOGenerals
| Modifier and Type | Field and Description |
|---|---|
static String |
DASH |
static boolean |
NO_ROOT |
static boolean |
ROOT |
protected BufferedWriter |
writer |
EMPTY_FEAT, F_CONLL09, F_ONE_LINE, NO_TYPE, NUM, NUMBER, PIPE, REGEX, ROOT_LEMMA, ROOT_POS, STRING, US| Constructor and Description |
|---|
CONLLWriter09() |
CONLLWriter09(String file) |
CONLLWriter09(String outfile,
int formatTask) |
CONLLWriter09(Writer writer) |
| Modifier and Type | Method and Description |
|---|---|
void |
finishWriting() |
static void |
main(String[] args) |
void |
setOutputFormat(int formatTask)
Sets the output format such as CoNLL or one line for the lemmata of the sentence (see F_xxxx constants).
|
void |
write(SentenceData09 inst) |
void |
write(SentenceData09 inst,
boolean root) |
public static final String DASH
public static final boolean NO_ROOT
public static final boolean ROOT
protected BufferedWriter writer
public CONLLWriter09()
public CONLLWriter09(String file)
public CONLLWriter09(Writer writer)
public CONLLWriter09(String outfile, int formatTask)
public static void main(String[] args) throws IOException
IOExceptionpublic void write(SentenceData09 inst) throws IOException
IOExceptionpublic void write(SentenceData09 inst, boolean root) throws IOException
inst - root - true: remove root nodeIOExceptionpublic void finishWriting()
throws IOException
IOExceptionpublic void setOutputFormat(int formatTask)
formatTask - Copyright © 2013. All rights reserved.