|
MaltParser 1.4.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.maltparser.core.syntaxgraph.writer.TabWriter
public class TabWriter
| Constructor Summary | |
|---|---|
TabWriter()
|
|
| Method Summary | |
|---|---|
void |
close()
Closes the file or the output stream. |
DataFormatInstance |
getDataFormatInstance()
Returns the output data format instance |
String |
getOptions()
Returns a string representation of the writer specific options. |
BufferedWriter |
getWriter()
|
void |
open(OutputStream os,
String charsetName)
Opens an output stream |
void |
open(String fileName,
String charsetName)
Opens a file for writing |
void |
setDataFormatInstance(DataFormatInstance dataFormatInstance)
Sets the output data format instance |
void |
setOptions(String optionString)
Sets the writer specific options. |
void |
setWriter(BufferedWriter writer)
|
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) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TabWriter()
| Method Detail |
|---|
public void open(String fileName,
String charsetName)
throws MaltChainedException
SyntaxGraphWriter
open in interface SyntaxGraphWriterfileName - the file name of the filecharsetName - the name of the character encoding set
MaltChainedException
public void open(OutputStream os,
String charsetName)
throws MaltChainedException
SyntaxGraphWriter
open in interface SyntaxGraphWriteros - an output streamcharsetName - the name of the character encoding set
MaltChainedException
public void writeProlog()
throws MaltChainedException
SyntaxGraphWriter
writeProlog in interface SyntaxGraphWriterMaltChainedException
public void writeSentence(TokenStructure syntaxGraph)
throws MaltChainedException
SyntaxGraphWriter
writeSentence in interface SyntaxGraphWritersyntaxGraph - a syntax graph (token structure, dependency structure or/and phrase structure)
MaltChainedException
public void writeEpilog()
throws MaltChainedException
SyntaxGraphWriter
writeEpilog in interface SyntaxGraphWriterMaltChainedExceptionpublic BufferedWriter getWriter()
public void setWriter(BufferedWriter writer)
throws MaltChainedException
MaltChainedExceptionpublic DataFormatInstance getDataFormatInstance()
SyntaxGraphWriter
getDataFormatInstance in interface SyntaxGraphWriterpublic void setDataFormatInstance(DataFormatInstance dataFormatInstance)
SyntaxGraphWriter
setDataFormatInstance in interface SyntaxGraphWriterdataFormatInstance - an output data format instancepublic String getOptions()
SyntaxGraphWriter
getOptions in interface SyntaxGraphWriter
public void setOptions(String optionString)
throws MaltChainedException
SyntaxGraphWriter
setOptions in interface SyntaxGraphWriteroptionString - a string representation of the writer specific options
MaltChainedException
public void close()
throws MaltChainedException
SyntaxGraphWriter
close in interface SyntaxGraphWriterMaltChainedException
|
MaltParser 1.4.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||