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, setWordAttributeNames
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOutputFileEncoding, getOutputFileName, setWordAttributeNames
public SimpleXMLAdornedWordOutputter()
public void createOutputFile(java.lang.String fileName, java.lang.String encoding, char separatorCharacter) throws java.io.IOException
createOutputFile
in interface AdornedWordOutputter
createOutputFile
in class PrintStreamAdornedWordOutputter
fileName
- Output file name.encoding
- Encoding for the output file.separatorCharacter
- Output separator character.java.io.IOException
public void outputWordAndAdornments(java.lang.String[] wordAndAdornments) throws java.io.IOException
outputWordAndAdornments
in interface AdornedWordOutputter
outputWordAndAdornments
in class PrintStreamAdornedWordOutputter
wordAndAdornments
- 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 AdornedWordOutputter
outputWordAndAdornments
in class PrintStreamAdornedWordOutputter
wordAndAdornments
- 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 AdornedWordOutputter
close
in class PrintStreamAdornedWordOutputter