Package opennlp.tools.langdetect
Class LanguageDetectorEventStream
java.lang.Object
opennlp.tools.util.AbstractEventStream<LanguageSample>
opennlp.tools.langdetect.LanguageDetectorEventStream
- All Implemented Interfaces:
AutoCloseable
,ObjectStream<Event>
Iterator-like class for modeling an event stream of
samples
.-
Constructor Summary
ConstructorDescriptionInitializes an instance via samples and feature generators. -
Method Summary
Methods inherited from class opennlp.tools.util.AbstractEventStream
close, read, reset
-
Constructor Details
-
LanguageDetectorEventStream
public LanguageDetectorEventStream(ObjectStream<LanguageSample> data, LanguageDetectorContextGenerator cg) Initializes an instance via samples and feature generators.- Parameters:
data
- AnObjectStream
ofsamples
as input data.cg
- ALanguageDetectorContextGenerator
used for the event streamdata
.
-