public class CoNLLUWriter extends java.lang.Object implements DocumentWriter
Constructor and Description |
---|
CoNLLUWriter() |
Modifier and Type | Method and Description |
---|---|
void |
processTree(java.io.BufferedWriter bufferedWriter,
Root tree)
Processes one sentence tree.
|
void |
writeDocument(Document document,
java.nio.file.Path path)
Serializes document into given path.
|
void |
writeDocument(Document document,
java.io.Writer writer)
Serializes document with given writer.
|
public void writeDocument(Document document, java.nio.file.Path path)
writeDocument
in interface DocumentWriter
document
- document to serializepath
- path where the document will be serializedpublic void writeDocument(Document document, java.io.Writer writer)
writeDocument
in interface DocumentWriter
document
- document to serializewriter
- writer to write withpublic void processTree(java.io.BufferedWriter bufferedWriter, Root tree) throws UdapiIOException
processTree
in interface DocumentWriter
bufferedWriter
- writer to write withtree
- tree to serializeUdapiIOException
- If any IOException happens