public class SentimentAnalyzer extends SemanticProcessor implements com.exalead.util.Checkable, java.io.Serializable
SemanticProcessor.FromDataModel, SemanticProcessor.Transformer<T>, SemanticProcessor.Visitor
Modifier and Type | Field and Description |
---|---|
boolean |
annotateGlobally |
boolean |
annotatePronouns |
static boolean |
DEFAULT_ANNOTATE_GLOBALLY |
static boolean |
DEFAULT_ANNOTATE_PRONOUNS |
static boolean |
DEFAULT_IGNORE_PART_OF_SPEECH |
static boolean |
DEFAULT_IGNORE_RELATED_TERMS |
static boolean |
DEFAULT_LEGACY_ANNOTATIONS |
static boolean |
DEFAULT_NORMALIZE_TRUST_LEVELS |
static boolean |
DEFAULT_NOT_APPLICABLE_ANNOTATIONS |
static boolean |
DEFAULT_NOUN_PACKAGE |
static boolean |
DEFAULT_PACKAGE_COUNT |
static boolean |
DEFAULT_SHOW_PACKAGE |
static boolean |
DEFAULT_SUGGEST |
static boolean |
DEFAULT_SUMMARIZE |
boolean |
ignorePartOfSpeech |
boolean |
ignoreRelatedTerms |
java.lang.String |
language |
boolean |
legacyAnnotations |
boolean |
normalizeTrustLevels |
boolean |
notApplicableAnnotations |
boolean |
nounPackage
Deprecated.
|
boolean |
packageCount |
java.lang.String |
resourceDir |
boolean |
showPackage |
boolean |
suggest |
java.lang.String |
suggestOutput |
boolean |
summarize |
contexts, dataModelClass, dataModelProperty, dataModelState, DEFAULT_DISABLED, disabled, fromDataModel, name
Constructor and Description |
---|
SentimentAnalyzer() |
SentimentAnalyzer(SentimentAnalyzer o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(SemanticProcessor.Transformer<T> transformer,
T[] t) |
void |
accept(SemanticProcessor.Visitor visitor) |
void |
check(boolean deep,
java.lang.String errorContext)
Checks this SentimentAnalyzer.
|
static SentimentAnalyzer |
fromString(java.lang.String s)
String representation of this SentimentAnalyzer.
|
java.lang.String |
getLanguage() |
java.lang.String |
getResourceDir()
URL for the resource (data://, file;// or resource://).
|
java.lang.String |
getSuggestOutput() |
boolean |
isAnnotateGlobally() |
boolean |
isAnnotatePronouns() |
boolean |
isIgnorePartOfSpeech() |
boolean |
isIgnoreRelatedTerms() |
boolean |
isLegacyAnnotations() |
boolean |
isNormalizeTrustLevels() |
boolean |
isNotApplicableAnnotations() |
boolean |
isNounPackage()
Deprecated.
|
boolean |
isPackageCount() |
boolean |
isShowPackage() |
boolean |
isSuggest() |
boolean |
isSummarize() |
SentimentAnalyzer |
makeCopy()
Creates and returns a deep copy of this SentimentAnalyzer.
|
static SentimentAnalyzer |
readFrom(java.io.InputStream is)
Read this SentimentAnalyzer from an XML fragment.
|
void |
setAnnotateGlobally(boolean annotateGlobally) |
void |
setAnnotatePronouns(boolean annotatePronouns) |
void |
setIgnorePartOfSpeech(boolean ignorePartOfSpeech) |
void |
setIgnoreRelatedTerms(boolean ignoreRelatedTerms) |
void |
setLanguage(java.lang.String language) |
void |
setLegacyAnnotations(boolean legacyAnnotations) |
void |
setNormalizeTrustLevels(boolean normalizeTrustLevels) |
void |
setNotApplicableAnnotations(boolean notApplicableAnnotations) |
void |
setNounPackage(boolean nounPackage)
Deprecated.
|
void |
setPackageCount(boolean packageCount) |
void |
setResourceDir(java.lang.String resourceDir)
URL for the resource (data://, file;// or resource://).
|
void |
setShowPackage(boolean showPackage) |
void |
setSuggest(boolean suggest) |
void |
setSuggestOutput(java.lang.String suggestOutput) |
void |
setSummarize(boolean summarize) |
java.lang.String |
toString()
String representation of this SentimentAnalyzer.
|
SentimentAnalyzer |
withAnnotateGlobally(boolean annotateGlobally) |
SentimentAnalyzer |
withAnnotateGlobally(java.lang.Boolean annotateGlobally) |
SentimentAnalyzer |
withAnnotatePronouns(boolean annotatePronouns) |
SentimentAnalyzer |
withAnnotatePronouns(java.lang.Boolean annotatePronouns) |
SentimentAnalyzer |
withContexts(java.lang.String contexts) |
SentimentAnalyzer |
withDataModelClass(java.lang.String dataModelClass) |
SentimentAnalyzer |
withDataModelProperty(java.lang.String dataModelProperty) |
SentimentAnalyzer |
withDataModelState(java.lang.String dataModelState) |
SentimentAnalyzer |
withDisabled(boolean disabled) |
SentimentAnalyzer |
withDisabled(java.lang.Boolean disabled) |
SentimentAnalyzer |
withFromDataModel(SemanticProcessor fromDataModel) |
SentimentAnalyzer |
withIgnorePartOfSpeech(boolean ignorePartOfSpeech) |
SentimentAnalyzer |
withIgnorePartOfSpeech(java.lang.Boolean ignorePartOfSpeech) |
SentimentAnalyzer |
withIgnoreRelatedTerms(boolean ignoreRelatedTerms) |
SentimentAnalyzer |
withIgnoreRelatedTerms(java.lang.Boolean ignoreRelatedTerms) |
SentimentAnalyzer |
withLanguage(java.lang.String language) |
SentimentAnalyzer |
withLegacyAnnotations(boolean legacyAnnotations) |
SentimentAnalyzer |
withLegacyAnnotations(java.lang.Boolean legacyAnnotations) |
SentimentAnalyzer |
withName(java.lang.String name) |
SentimentAnalyzer |
withNormalizeTrustLevels(boolean normalizeTrustLevels) |
SentimentAnalyzer |
withNormalizeTrustLevels(java.lang.Boolean normalizeTrustLevels) |
SentimentAnalyzer |
withNotApplicableAnnotations(boolean notApplicableAnnotations) |
SentimentAnalyzer |
withNotApplicableAnnotations(java.lang.Boolean notApplicableAnnotations) |
SentimentAnalyzer |
withNounPackage(boolean nounPackage)
Deprecated.
|
SentimentAnalyzer |
withNounPackage(java.lang.Boolean nounPackage)
Deprecated.
|
SentimentAnalyzer |
withPackageCount(boolean packageCount) |
SentimentAnalyzer |
withPackageCount(java.lang.Boolean packageCount) |
SentimentAnalyzer |
withResourceDir(java.lang.String resourceDir) |
SentimentAnalyzer |
withShowPackage(boolean showPackage) |
SentimentAnalyzer |
withShowPackage(java.lang.Boolean showPackage) |
SentimentAnalyzer |
withSuggest(boolean suggest) |
SentimentAnalyzer |
withSuggest(java.lang.Boolean suggest) |
SentimentAnalyzer |
withSuggestOutput(java.lang.String suggestOutput) |
SentimentAnalyzer |
withSummarize(boolean summarize) |
SentimentAnalyzer |
withSummarize(java.lang.Boolean summarize) |
void |
writeTo(java.io.OutputStream os)
Write this SentimentAnalyzer as an XML fragment
|
getContexts, getDataModelClass, getDataModelProperty, getDataModelState, getFromDataModel, getName, isDisabled, setContexts, setDataModelClass, setDataModelProperty, setDataModelState, setDisabled, setFromDataModel, setName
public java.lang.String resourceDir
public java.lang.String language
public boolean annotateGlobally
public static final boolean DEFAULT_ANNOTATE_GLOBALLY
public boolean annotatePronouns
public static final boolean DEFAULT_ANNOTATE_PRONOUNS
public boolean ignorePartOfSpeech
public static final boolean DEFAULT_IGNORE_PART_OF_SPEECH
public boolean ignoreRelatedTerms
public static final boolean DEFAULT_IGNORE_RELATED_TERMS
public boolean legacyAnnotations
public static final boolean DEFAULT_LEGACY_ANNOTATIONS
public boolean notApplicableAnnotations
public static final boolean DEFAULT_NOT_APPLICABLE_ANNOTATIONS
public boolean normalizeTrustLevels
public static final boolean DEFAULT_NORMALIZE_TRUST_LEVELS
@Deprecated public boolean nounPackage
public static final boolean DEFAULT_NOUN_PACKAGE
public boolean packageCount
public static final boolean DEFAULT_PACKAGE_COUNT
public boolean showPackage
public static final boolean DEFAULT_SHOW_PACKAGE
public boolean suggest
public static final boolean DEFAULT_SUGGEST
public boolean summarize
public static final boolean DEFAULT_SUMMARIZE
public java.lang.String suggestOutput
public SentimentAnalyzer()
public SentimentAnalyzer(SentimentAnalyzer o)
public SentimentAnalyzer withName(java.lang.String name)
withName
in class SemanticProcessor
public SentimentAnalyzer withContexts(java.lang.String contexts)
withContexts
in class SemanticProcessor
public SentimentAnalyzer withFromDataModel(SemanticProcessor fromDataModel)
public SentimentAnalyzer withDataModelState(java.lang.String dataModelState)
withDataModelState
in class SemanticProcessor
public SentimentAnalyzer withDataModelClass(java.lang.String dataModelClass)
withDataModelClass
in class SemanticProcessor
public SentimentAnalyzer withDataModelProperty(java.lang.String dataModelProperty)
withDataModelProperty
in class SemanticProcessor
public SentimentAnalyzer withDisabled(boolean disabled)
withDisabled
in class SemanticProcessor
public SentimentAnalyzer withDisabled(java.lang.Boolean disabled)
withDisabled
in class SemanticProcessor
public void setResourceDir(java.lang.String resourceDir)
public java.lang.String getResourceDir()
public SentimentAnalyzer withResourceDir(java.lang.String resourceDir)
public void setLanguage(java.lang.String language)
public java.lang.String getLanguage()
public SentimentAnalyzer withLanguage(java.lang.String language)
public void setAnnotateGlobally(boolean annotateGlobally)
public boolean isAnnotateGlobally()
public SentimentAnalyzer withAnnotateGlobally(boolean annotateGlobally)
public SentimentAnalyzer withAnnotateGlobally(java.lang.Boolean annotateGlobally)
public void setAnnotatePronouns(boolean annotatePronouns)
public boolean isAnnotatePronouns()
public SentimentAnalyzer withAnnotatePronouns(boolean annotatePronouns)
public SentimentAnalyzer withAnnotatePronouns(java.lang.Boolean annotatePronouns)
public void setIgnorePartOfSpeech(boolean ignorePartOfSpeech)
public boolean isIgnorePartOfSpeech()
public SentimentAnalyzer withIgnorePartOfSpeech(boolean ignorePartOfSpeech)
public SentimentAnalyzer withIgnorePartOfSpeech(java.lang.Boolean ignorePartOfSpeech)
public void setIgnoreRelatedTerms(boolean ignoreRelatedTerms)
public boolean isIgnoreRelatedTerms()
public SentimentAnalyzer withIgnoreRelatedTerms(boolean ignoreRelatedTerms)
public SentimentAnalyzer withIgnoreRelatedTerms(java.lang.Boolean ignoreRelatedTerms)
public void setLegacyAnnotations(boolean legacyAnnotations)
public boolean isLegacyAnnotations()
public SentimentAnalyzer withLegacyAnnotations(boolean legacyAnnotations)
public SentimentAnalyzer withLegacyAnnotations(java.lang.Boolean legacyAnnotations)
public void setNotApplicableAnnotations(boolean notApplicableAnnotations)
public boolean isNotApplicableAnnotations()
public SentimentAnalyzer withNotApplicableAnnotations(boolean notApplicableAnnotations)
public SentimentAnalyzer withNotApplicableAnnotations(java.lang.Boolean notApplicableAnnotations)
public void setNormalizeTrustLevels(boolean normalizeTrustLevels)
public boolean isNormalizeTrustLevels()
public SentimentAnalyzer withNormalizeTrustLevels(boolean normalizeTrustLevels)
public SentimentAnalyzer withNormalizeTrustLevels(java.lang.Boolean normalizeTrustLevels)
@Deprecated public void setNounPackage(boolean nounPackage)
@Deprecated public boolean isNounPackage()
@Deprecated public SentimentAnalyzer withNounPackage(boolean nounPackage)
@Deprecated public SentimentAnalyzer withNounPackage(java.lang.Boolean nounPackage)
public void setPackageCount(boolean packageCount)
public boolean isPackageCount()
public SentimentAnalyzer withPackageCount(boolean packageCount)
public SentimentAnalyzer withPackageCount(java.lang.Boolean packageCount)
public void setShowPackage(boolean showPackage)
public boolean isShowPackage()
public SentimentAnalyzer withShowPackage(boolean showPackage)
public SentimentAnalyzer withShowPackage(java.lang.Boolean showPackage)
public void setSuggest(boolean suggest)
public boolean isSuggest()
public SentimentAnalyzer withSuggest(boolean suggest)
public SentimentAnalyzer withSuggest(java.lang.Boolean suggest)
public void setSummarize(boolean summarize)
public boolean isSummarize()
public SentimentAnalyzer withSummarize(boolean summarize)
public SentimentAnalyzer withSummarize(java.lang.Boolean summarize)
public void setSuggestOutput(java.lang.String suggestOutput)
public java.lang.String getSuggestOutput()
public SentimentAnalyzer withSuggestOutput(java.lang.String suggestOutput)
public SentimentAnalyzer makeCopy()
makeCopy
in class SemanticProcessor
public static SentimentAnalyzer readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
writeTo
in class SemanticProcessor
javax.xml.bind.JAXBException
java.io.IOException
public static SentimentAnalyzer fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class SemanticProcessor
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class SemanticProcessor
com.exalead.util.TypedException
public void accept(SemanticProcessor.Visitor visitor) throws com.exalead.util.TypedException
accept
in class SemanticProcessor
com.exalead.util.TypedException
public <T> T accept(SemanticProcessor.Transformer<T> transformer, T[] t) throws com.exalead.util.TypedException
accept
in class SemanticProcessor
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.