public class SimpleXMLAdornedWordOutputter extends PrintStreamAdornedWordOutputter implements AdornedWordOutputter
The output format is as follows.
There may be more or fewer word level children depending upon which output options are chosen.
| Modifier and Type | Field and Description |
|---|---|
protected int |
id
Word ID.
|
fileEncoding, fileName, printStream, separatorCharacter, wordAttributeNames| Constructor and Description |
|---|
SimpleXMLAdornedWordOutputter()
Create outputter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close outputter.
|
void |
createOutputFile(java.lang.String fileName,
java.lang.String encoding,
char separatorCharacter)
Create output file.
|
void |
outputWordAndAdornments(java.util.List<java.lang.String> wordAndAdornments)
Outputs a word and its adornments (part of speech, lemmata, etc).
|
void |
outputWordAndAdornments(java.lang.String[] wordAndAdornments)
Outputs a word and its adornments (part of speech, lemmata, etc).
|
getOutputFileEncoding, getOutputFileName, setWordAttributeNamesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOutputFileEncoding, getOutputFileName, setWordAttributeNamespublic SimpleXMLAdornedWordOutputter()
public void createOutputFile(java.lang.String fileName,
java.lang.String encoding,
char separatorCharacter)
throws java.io.IOException
createOutputFile in interface AdornedWordOutputtercreateOutputFile in class PrintStreamAdornedWordOutputterfileName - Output file name.encoding - Encoding for the output file.separatorCharacter - Output separator character.java.io.IOExceptionpublic void outputWordAndAdornments(java.lang.String[] wordAndAdornments)
throws java.io.IOException
outputWordAndAdornments in interface AdornedWordOutputteroutputWordAndAdornments in class PrintStreamAdornedWordOutputterwordAndAdornments - Word and its adornments as an
array of string.java.io.IOException - If an output error occurs.
Outputs word and adornments as a tab-separated text line to a print stream.
public void outputWordAndAdornments(java.util.List<java.lang.String> wordAndAdornments)
throws java.io.IOException
outputWordAndAdornments in interface AdornedWordOutputteroutputWordAndAdornments in class PrintStreamAdornedWordOutputterwordAndAdornments - Word and its adornments as a list
of strings.java.io.IOException - If an output error occurs.
Outputs word and adornments as a tab-separated text line to a print stream.
public void close()
close in interface AdornedWordOutputterclose in class PrintStreamAdornedWordOutputter