Package opennlp.tools.namefind
Klasse NameSampleDataStream
java.lang.Object
opennlp.tools.util.FilterObjectStream<String,NameSample>
opennlp.tools.namefind.NameSampleDataStream
- Alle implementierten Schnittstellen:
AutoCloseable
,ObjectStream<NameSample>
The
NameSampleDataStream
class converts tagged strings
provided by a DataStream
to NameSample
objects.
It uses text that is one-sentence per line and tokenized
with names identified by:
<START>
and <END>
tags.
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Von Klasse geerbte Methoden opennlp.tools.util.FilterObjectStream
close, reset
-
Felddetails
-
START_TAG_PREFIX
- Siehe auch:
-
START_TAG
- Siehe auch:
-
END_TAG
- Siehe auch:
-
-
Konstruktordetails
-
NameSampleDataStream
Initializes aNameSampleDataStream
with givenpsi
samples.- Parameter:
in
- Thestream
of data samples.
-
-
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.
-