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 streamrepresenting the input.
-
ConllXPOSSampleStream
Initializes aConllXPOSSampleStream.- Parameter:
in- TheInputStreamFactoryto use.charset- TheCharsetto interpret characters with.- Löst aus:
IOException- Thrown if IO errors occurred during initialization.
-
-
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.
-