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 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