Class SentimentFactory
java.lang.Object
opennlp.tools.util.BaseToolFactory
opennlp.tools.sentiment.SentimentFactory
Class for creating sentiment factories for training.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a newcontext generator.opennlp.tools.tokenize.TokenizervoidValidates the artifact map --> nothing to validate.Methods inherited from class BaseToolFactory
create, create, createArtifactMap, createArtifactSerializersMap, createManifestEntries
-
Constructor Details
-
SentimentFactory
public SentimentFactory()
-
-
Method Details
-
validateArtifactMap
public void validateArtifactMap() throws opennlp.tools.util.InvalidFormatExceptionValidates the artifact map --> nothing to validate.- Specified by:
validateArtifactMapin classBaseToolFactory- Throws:
opennlp.tools.util.InvalidFormatException- Thrown if validation found invalid states.
-
createContextGenerator
Creates a newcontext generator.- Returns:
- a context generator for Sentiment Analysis
-
getTokenizer
public opennlp.tools.tokenize.Tokenizer getTokenizer()- Returns:
- Retrieves the
Tokenizer.
-