public interface SyntaxGraphWriter
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the file or the output stream.
|
DataFormatInstance |
getDataFormatInstance()
Returns the output data format instance
|
java.lang.String |
getOptions()
Returns a string representation of the writer specific options.
|
void |
open(java.io.OutputStream os,
java.lang.String charsetName)
Opens an output stream
|
void |
open(java.lang.String fileName,
java.lang.String charsetName)
Opens a file for writing
|
void |
setDataFormatInstance(DataFormatInstance dataFormatInstance)
Sets the output data format instance
|
void |
setOptions(java.lang.String optionString)
Sets the writer specific options.
|
void |
writeEpilog()
Writes the end of the file
|
void |
writeProlog()
Cause the syntax graph writer to write the beginning of the file (such as header information)
|
void |
writeSentence(TokenStructure syntaxGraph)
Writes a sentence (token structure, dependency structure or/and phrase structure)
|
void open(java.lang.String fileName, java.lang.String charsetName) throws MaltChainedException
fileName - the file name of the filecharsetName - the name of the character encoding setMaltChainedExceptionvoid open(java.io.OutputStream os, java.lang.String charsetName) throws MaltChainedException
os - an output streamcharsetName - the name of the character encoding setMaltChainedExceptionvoid writeProlog() throws MaltChainedException
MaltChainedExceptionvoid writeSentence(TokenStructure syntaxGraph) throws MaltChainedException
syntaxGraph - a syntax graph (token structure, dependency structure or/and phrase structure)MaltChainedExceptionvoid writeEpilog() throws MaltChainedException
MaltChainedExceptionDataFormatInstance getDataFormatInstance()
void setDataFormatInstance(DataFormatInstance dataFormatInstance)
dataFormatInstance - an output data format instancejava.lang.String getOptions()
void setOptions(java.lang.String optionString) throws MaltChainedException
optionString - a string representation of the writer specific optionsMaltChainedExceptionvoid close() throws MaltChainedException
MaltChainedExceptionCopyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.