Class ConlluStream
java.lang.Object
opennlp.tools.formats.conllu.ConlluStream
- All Implemented Interfaces:
AutoCloseable, opennlp.tools.util.ObjectStream<ConlluSentence>
The CoNNL-U Format is specified
here.
-
Constructor Summary
ConstructorsConstructorDescriptionConlluStream(opennlp.tools.util.InputStreamFactory in) Initializes aConlluStream. -
Method Summary
-
Constructor Details
-
ConlluStream
Initializes aConlluStream.- Parameters:
in- TheInputStreamFactoryto use. Characters will be interpreted in UTF-8.- Throws:
IOException- Thrown if IO errors occurred during initialization.
-
-
Method Details
-
read
- Specified by:
readin interfaceopennlp.tools.util.ObjectStream<ConlluSentence>- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceopennlp.tools.util.ObjectStream<ConlluSentence>- Throws:
IOException
-
reset
- Specified by:
resetin interfaceopennlp.tools.util.ObjectStream<ConlluSentence>- Throws:
IOExceptionUnsupportedOperationException
-