Package opennlp.tools.langdetect
Class LanguageDetectorEventStream
- java.lang.Object
-
- opennlp.tools.util.AbstractEventStream<LanguageSample>
-
- opennlp.tools.langdetect.LanguageDetectorEventStream
-
- All Implemented Interfaces:
AutoCloseable
,ObjectStream<Event>
public class LanguageDetectorEventStream extends AbstractEventStream<LanguageSample>
Iterator-like class for modeling an event stream ofsamples
.
-
-
Constructor Summary
Constructors Constructor Description LanguageDetectorEventStream(ObjectStream<LanguageSample> data, LanguageDetectorContextGenerator cg)
Initializes an instance via samples and feature generators.
-
-
-
Constructor Detail
-
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
.
-
-