Package opennlp.tools.util
Klasse ParagraphStream
- Alle implementierten Schnittstellen:
AutoCloseable,ObjectStream<String>
A
FilterObjectStream which merges text lines into paragraphs.
The boundary of paragraph is defined by an empty text line. If the last paragraph in the stream is not terminated by an empty line the left over is assumed to be a paragraph.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungParagraphStream(ObjectStream<String> lineStream) Initializes anFilterObjectStream. -
Methodenübersicht
Von Klasse geerbte Methoden opennlp.tools.util.FilterObjectStream
close, reset
-
Konstruktordetails
-
ParagraphStream
Initializes anFilterObjectStream.- Parameter:
lineStream- Thestreamof samples.
-
-
Methodendetails
-
read
Beschreibung aus Schnittstelle kopiert:ObjectStreamReturns the nextObjectStreamobject. Calling this method repeatedly until it returnsnullwill return each object from the underlying source exactly once.- Gibt zurück:
- The next object or
nullto signal that the stream is exhausted. - Löst aus:
IOException- Thrown if there is an error during reading.
-