Package opennlp.tools.formats.ontonotes
Class DocumentToLineStream
java.lang.Object
opennlp.tools.util.FilterObjectStream<S,T>
opennlp.tools.formats.brat.SegmenterObjectStream<String,String>
opennlp.tools.formats.ontonotes.DocumentToLineStream
- All Implemented Interfaces:
AutoCloseable
,ObjectStream<String>
Reads a plain text file and return each line as a
String
object.-
Constructor Summary
ConstructorDescriptionDocumentToLineStream
(ObjectStream<String> samples) Initializes aDocumentToLineStream
. -
Method Summary
Methods inherited from class opennlp.tools.formats.brat.SegmenterObjectStream
read
Methods inherited from class opennlp.tools.util.FilterObjectStream
close, reset
-
Constructor Details
-
DocumentToLineStream
Initializes aDocumentToLineStream
.- Parameters:
samples
- Thesamples
as input. Must not benull
.- Throws:
IllegalArgumentException
- Thrown if parameters are invalid.
-