public class CoNLLUReader extends java.lang.Object implements DocumentReader
Constructor and Description |
---|
CoNLLUReader(java.io.File inCoNLL) |
CoNLLUReader(java.nio.file.Path inCoNLL) |
CoNLLUReader(java.io.Reader reader) |
CoNLLUReader(java.lang.String inCoNLL) |
Modifier and Type | Method and Description |
---|---|
Document |
readDocument()
Reads bundles into document.
|
void |
readInDocument(Document document)
Reads CoNLLU file into given document.
|
java.util.Optional<Root> |
readTree(java.io.BufferedReader bufferedReader,
Document document)
Reads tree into document and returns it.
|
java.util.Optional<Root> |
readTree(Document document)
Reads tree into document and returns it.
|
public CoNLLUReader(java.io.Reader reader)
public CoNLLUReader(java.lang.String inCoNLL)
public CoNLLUReader(java.nio.file.Path inCoNLL)
public CoNLLUReader(java.io.File inCoNLL)
public Document readDocument()
DocumentReader
readDocument
in interface DocumentReader
public void readInDocument(Document document) throws UdapiIOException
readInDocument
in interface DocumentReader
document
- document to read intoUdapiIOException
- If any IOException happenspublic java.util.Optional<Root> readTree(java.io.BufferedReader bufferedReader, Document document) throws UdapiIOException
readTree
in interface DocumentReader
bufferedReader
- reader to usedocument
- document to read intoUdapiIOException
- If any IOException happenspublic java.util.Optional<Root> readTree(Document document) throws UdapiIOException
readTree
in interface DocumentReader
document
- document to load intoUdapiIOException
- If any IOException happens