Package opennlp.tools.formats.convert
Class POSToSentenceSampleStream
java.lang.Object
opennlp.tools.util.FilterObjectStream<T,SentenceSample>
opennlp.tools.formats.convert.AbstractToSentenceSampleStream<POSSample>
opennlp.tools.formats.convert.POSToSentenceSampleStream
- All Implemented Interfaces:
AutoCloseable
,ObjectStream<SentenceSample>
Note:
Do not use this class, internal use only!
-
Constructor Summary
ConstructorDescriptionPOSToSentenceSampleStream
(Detokenizer detokenizer, ObjectStream<POSSample> samples, int chunkSize) Initializes aPOSToSentenceSampleStream
. -
Method Summary
Methods inherited from class opennlp.tools.formats.convert.AbstractToSentenceSampleStream
read
Methods inherited from class opennlp.tools.util.FilterObjectStream
close, reset
-
Constructor Details
-
POSToSentenceSampleStream
public POSToSentenceSampleStream(Detokenizer detokenizer, ObjectStream<POSSample> samples, int chunkSize) Initializes aPOSToSentenceSampleStream
.- Parameters:
detokenizer
- TheDetokenizer
to use. Must not benull
.samples
- Thesamples
as input. Must not benull
.chunkSize
- The size of chunks. Must be equal to or greater than0
.- Throws:
IllegalArgumentException
- Thrown if parameters are invalid.
-