Package opennlp.tools.formats
Klasse ConllXPOSSampleStream
- Alle implementierten Schnittstellen:
AutoCloseable
,ObjectStream<POSSample>
Parses the data from the CONLL 06 shared task into POS Samples.
More information about the data format can be found here.
Note: Do not use this class, internal use only!
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungConllXPOSSampleStream
(InputStreamFactory in, Charset charset) Initializes aConllXPOSSampleStream
.ConllXPOSSampleStream
(ObjectStream<String> lineStream) Initializes aConllXPOSSampleStream
. -
Methodenübersicht
Von Klasse geerbte Methoden opennlp.tools.util.FilterObjectStream
close, reset
-
Konstruktordetails
-
ConllXPOSSampleStream
Initializes aConllXPOSSampleStream
.- Parameter:
lineStream
- Aline stream
representing the input.
-
ConllXPOSSampleStream
Initializes aConllXPOSSampleStream
.- Parameter:
in
- TheInputStreamFactory
to use.charset
- TheCharset
to interpret characters with.- Löst aus:
IOException
- Thrown if IO errors occurred during initialization.
-
-
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.
-