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:
-
Method Summary
Modifier and TypeMethodDescriptionopennlp.tools.util.ObjectStream<opennlp.tools.sentiment.SentimentSample> Creates a sentiment sample stream.static voidRegisters a SentimentSample stream factoryMethods inherited from class AbstractSampleStreamFactory
getLang, getParameters
-
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
SentimentSamplestream.
-
registerFactory
public static void registerFactory()Registers a SentimentSample stream factory
-