Package opennlp.tools.sentdetect
Class SDEventStream
- All Implemented Interfaces:
AutoCloseable
,ObjectStream<Event>
-
Constructor Summary
ConstructorDescriptionSDEventStream
(ObjectStream<SentenceSample> samples, SDContextGenerator cg, EndOfSentenceScanner scanner) Initializes the current instance. -
Method Summary
Methods inherited from class opennlp.tools.util.AbstractEventStream
close, read, reset
-
Constructor Details
-
SDEventStream
public SDEventStream(ObjectStream<SentenceSample> samples, SDContextGenerator cg, EndOfSentenceScanner scanner) Initializes the current instance.- Parameters:
samples
- Anstream
ofsamples
.cg
- TheSDContextGenerator
to be used.scanner
- Thescanner
to be used.
-