Package opennlp.tools.langdetect

# Class LanguageDetectorEventStream

java.lang.Object
opennlp.tools.util.AbstractEventStream<opennlp.tools.langdetect.LanguageSample>
opennlp.tools.langdetect.LanguageDetectorEventStream

All Implemented Interfaces:
  `AutoCloseable`, `opennlp.tools.util.ObjectStream<opennlp.tools.ml.model.Event>`

public class LanguageDetectorEventStream extends AbstractEventStream<opennlp.tools.langdetect.LanguageSample>
Iterator-like class for modeling an event stream of `samples`.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `LanguageDetectorEventStream(opennlp.tools.util.ObjectStream<opennlp.tools.langdetect.LanguageSample> data, opennlp.tools.langdetect.LanguageDetectorContextGenerator cg)`
  Initializes an instance via samples and feature generators.

- ## Method Summary

  ### Methods inherited from class opennlp.tools.util.AbstractEventStream

  `close, read, reset`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### LanguageDetectorEventStream

    public LanguageDetectorEventStream(opennlp.tools.util.ObjectStream<opennlp.tools.langdetect.LanguageSample> data, opennlp.tools.langdetect.LanguageDetectorContextGenerator cg)
    Initializes an instance via samples and feature generators.
    Parameters:
      `data` - An `ObjectStream` of `samples` as input data.
      `cg` - A `LanguageDetectorContextGenerator` used for the event stream `data`.