Package opennlp.tools.formats

# Class SentimentSampleStreamFactory<P>

java.lang.Object
opennlp.tools.formats.AbstractSampleStreamFactory<opennlp.tools.sentiment.SentimentSample,P>
opennlp.tools.formats.SentimentSampleStreamFactory<P>

All Implemented Interfaces:
  `opennlp.tools.cmdline.ObjectStreamFactory<opennlp.tools.sentiment.SentimentSample,P>`

public class SentimentSampleStreamFactory<P> extends AbstractSampleStreamFactory<opennlp.tools.sentiment.SentimentSample,P>
Factory for creating a sample stream factory for sentiment analysis.

See Also:
  - `SentimentSample`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `opennlp.tools.util.ObjectStream<opennlp.tools.sentiment.SentimentSample>`
  `create(String[] args)`
  Creates a sentiment sample stream.
  `static void`
  `registerFactory()`
  Registers a SentimentSample stream factory

  ### Methods inherited from class opennlp.tools.formats.AbstractSampleStreamFactory

  `getLang, getParameters`

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

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

- ## Method Details

  - ### create

    public opennlp.tools.util.ObjectStream<opennlp.tools.sentiment.SentimentSample> create(String[] args)
    Creates a sentiment sample stream.
    Parameters:
      `args` - the necessary arguments
    Returns:
      A `SentimentSample` stream.

  - ### registerFactory

    public static void registerFactory()
    Registers a SentimentSample stream factory