Package opennlp.tools.sentiment
Class SentimentFactory
java.lang.Object
opennlp.tools.util.BaseToolFactory
opennlp.tools.sentiment.SentimentFactory
- Direct Known Subclasses:
EmojiSentimentFactory
Class for creating sentiment factories for training.
-
Field Summary
FieldsFields inherited from class opennlp.tools.util.BaseToolFactory
artifactProvider -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a newcontext generator.voidValidates the artifact map --> nothing to validate.Methods inherited from class opennlp.tools.util.BaseToolFactory
create, create, createArtifactMap, createArtifactSerializersMap, createManifestEntries, init
-
Field Details
-
TOKENIZER_NAME
- See Also:
-
tokenizer
-
-
Constructor Details
-
SentimentFactory
public SentimentFactory()
-
-
Method Details
-
validateArtifactMap
Validates the artifact map --> nothing to validate.- Specified by:
validateArtifactMapin classBaseToolFactory- Throws:
InvalidFormatException- Thrown if validation found invalid states.
-
createContextGenerator
Creates a newcontext generator.- Returns:
- a context generator for Sentiment Analysis
-
getTokenizer
- Returns:
- Retrieves the
Tokenizer.
-