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 setMaltChainedException
void open(java.io.OutputStream os, java.lang.String charsetName) throws MaltChainedException
os
- an output streamcharsetName
- the name of the character encoding setMaltChainedException
void writeProlog() throws MaltChainedException
MaltChainedException
void writeSentence(TokenStructure syntaxGraph) throws MaltChainedException
syntaxGraph
- a syntax graph (token structure, dependency structure or/and phrase structure)MaltChainedException
void writeEpilog() throws MaltChainedException
MaltChainedException
DataFormatInstance 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 optionsMaltChainedException
void close() throws MaltChainedException
MaltChainedException
Copyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.