Class SentimentSampleStreamFactory<P>

java.lang.Object
opennlp.tools.formats.AbstractSampleStreamFactory<SentimentSample,P>
opennlp.tools.formats.SentimentSampleStreamFactory<P>
All Implemented Interfaces:
ObjectStreamFactory<SentimentSample,P>

public class SentimentSampleStreamFactory<P> extends AbstractSampleStreamFactory<SentimentSample,P>
Factory for creating a sample stream factory for sentiment analysis.
See Also:
  • Constructor Details

    • SentimentSampleStreamFactory

      protected SentimentSampleStreamFactory(Class<P> params)
      Instantiates a SentimentSampleStreamFactory object.
      Parameters:
      params - any given parameters
  • Method Details

    • create

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