SDEventStream (Apache OpenNLP Tools 2.5.9 API)
Description: declaration: package: opennlp.tools.sentdetect, class: SDEventStream

# Class SDEventStream

java.lang.Object
opennlp.tools.util.AbstractEventStream<SentenceSample>
opennlp.tools.sentdetect.SDEventStream

All Implemented Interfaces:
  `AutoCloseable, ObjectStream<Event>`

public class SDEventStream extends AbstractEventStream<SentenceSample>

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `SDEventStream(ObjectStream<SentenceSample> samples, SDContextGenerator cg, EndOfSentenceScanner scanner)`
  Initializes the current instance.

- ## Method Summary

  ### Methods inherited from class AbstractEventStream

  `close, read, reset`

  ### Methods inherited from class Object

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

- ## Constructor Details

  - ### SDEventStream

    public SDEventStream(ObjectStream<SentenceSample> samples, SDContextGenerator cg, EndOfSentenceScanner scanner)
    Initializes the current instance.
    Parameters:
      `samples` - An `stream` of `samples`.
      `cg` - The `SDContextGenerator` to be used.
      `scanner` - The `scanner` to be used.