Package opennlp.tools.formats
Class SentimentSampleStreamFactory<P>
java.lang.Object
opennlp.tools.formats.AbstractSampleStreamFactory<SentimentSample,P>
opennlp.tools.formats.SentimentSampleStreamFactory<P>
- All Implemented Interfaces:
ObjectStreamFactory<SentimentSample,P>
Factory for creating a sample stream factory for sentiment analysis.
- See Also:
-
Field Summary
Fields inherited from class opennlp.tools.formats.AbstractSampleStreamFactory
params -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSentimentSampleStreamFactory(Class<P> params) Instantiates aSentimentSampleStreamFactoryobject. -
Method Summary
Modifier and TypeMethodDescriptionCreates a sentiment sample stream.static voidRegisters a SentimentSample stream factoryMethods inherited from class opennlp.tools.formats.AbstractSampleStreamFactory
getLang, getParameters, readData, validateBasicFormatParameters
-
Constructor Details
-
SentimentSampleStreamFactory
Instantiates aSentimentSampleStreamFactoryobject.- Parameters:
params- any given parameters
-
-
Method Details
-
create
Creates a sentiment sample stream.- Parameters:
args- the necessary arguments- Returns:
- A
SentimentSamplestream.
-
registerFactory
public static void registerFactory()Registers a SentimentSample stream factory
-