Package opennlp.tools.sentdetect
Klasse EmptyLinePreprocessorStream
java.lang.Object
opennlp.tools.util.FilterObjectStream<String,String>
opennlp.tools.sentdetect.EmptyLinePreprocessorStream
- Alle implementierten Schnittstellen:
AutoCloseable
,ObjectStream<String>
ObjectStream
to clean up empty lines for empty line separated document streams.- Skips empty line at training data start
- Transforms multiple empty lines in a row into one
- Replaces white space lines with empty lines
- TODO: Terminates last document with empty line if it is missing
This stream should be used by the components that mark empty lines to mark document boundaries.
Note: This class is not thread safe.
Note: Do not use this class, internal use only!
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Von Klasse geerbte Methoden opennlp.tools.util.FilterObjectStream
close, reset
-
Konstruktordetails
-
EmptyLinePreprocessorStream
-
-
Methodendetails
-
read
Beschreibung aus Schnittstelle kopiert:ObjectStream
Returns the nextObjectStream
object. Calling this method repeatedly until it returnsnull
will return each object from the underlying source exactly once.- Gibt zurück:
- The next object or
null
to signal that the stream is exhausted. - Löst aus:
IOException
- Thrown if there is an error during reading.
-