Package opennlp.tools.formats.convert
Class NameToSentenceSampleStream
java.lang.Object
opennlp.tools.util.FilterObjectStream<T,SentenceSample>
opennlp.tools.formats.convert.AbstractToSentenceSampleStream<NameSample>
opennlp.tools.formats.convert.NameToSentenceSampleStream
- All Implemented Interfaces:
AutoCloseable
,ObjectStream<SentenceSample>
@Internal
public class NameToSentenceSampleStream
extends AbstractToSentenceSampleStream<NameSample>
Note:
Do not use this class, internal use only!
-
Constructor Summary
ConstructorDescriptionNameToSentenceSampleStream
(Detokenizer detokenizer, ObjectStream<NameSample> samples, int chunkSize) Initializes aNameToSentenceSampleStream
. -
Method Summary
Methods inherited from class opennlp.tools.formats.convert.AbstractToSentenceSampleStream
read
Methods inherited from class opennlp.tools.util.FilterObjectStream
close, reset
-
Constructor Details
-
NameToSentenceSampleStream
public NameToSentenceSampleStream(Detokenizer detokenizer, ObjectStream<NameSample> samples, int chunkSize) Initializes aNameToSentenceSampleStream
.- 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.
-