SentimentSkillV3 Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. SearchIndexerSkill - com.
azure. search. documents. indexes. models. SentimentSkillV3
- com.
- com.
public final class SentimentSkillV3
extends SearchIndexerSkill
Using the Text Analytics API, evaluates unstructured text and for each record, provides sentiment labels (such as "negative", "neutral" and "positive") based on the highest confidence score found by the service at a sentence and document-level.
Constructor Summary
| Constructor | Description |
|---|---|
| SentimentSkillV3(List<InputFieldMappingEntry> inputs, List<OutputFieldMappingEntry> outputs) |
Creates an instance of Sentiment |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Sentiment |
fromJson(JsonReader jsonReader)
Reads an instance of Sentiment |
|
Sentiment |
getDefaultLanguageCode()
Get the default |
| String |
getModelVersion()
Get the model |
| String |
getOdataType()
Get the odata |
| Boolean |
isIncludeOpinionMining()
Get the include |
|
Sentiment |
setContext(String context)
Set the context property: Represents the level at which operations take place, such as the document root or document content (for example, /document or /document/content). |
|
Sentiment |
setDefaultLanguageCode(SentimentSkillLanguage defaultLanguageCode)
Set the default |
|
Sentiment |
setDescription(String description)
Set the description property: The description of the skill which describes the inputs, outputs, and usage of the skill. |
|
Sentiment |
setIncludeOpinionMining(Boolean includeOpinionMining)
Set the include |
|
Sentiment |
setModelVersion(String modelVersion)
Set the model |
|
Sentiment |
setName(String name)
Set the name property: The name of the skill which uniquely identifies it within the skillset. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from SearchIndexerSkill
Methods inherited from java.lang.Object
Constructor Details
SentimentSkillV3
public SentimentSkillV3(List<InputFieldMappingEntry> inputs, List<OutputFieldMappingEntry> outputs)
Creates an instance of SentimentSkillV3 class.
Parameters:
Method Details
fromJson
public static SentimentSkillV3 fromJson(JsonReader jsonReader)
Reads an instance of SentimentSkillV3 from the JsonReader.
Parameters:
Returns:
Throws:
getDefaultLanguageCode
public SentimentSkillLanguage getDefaultLanguageCode()
Get the defaultLanguageCode property: A value indicating which language code to use. Default is `en`.
Returns:
getModelVersion
public String getModelVersion()
Get the modelVersion property: The version of the model to use when calling the Text Analytics service. It will default to the latest available when not specified. We recommend you do not specify this value unless absolutely necessary.
Returns:
getOdataType
public String getOdataType()
Get the odataType property: The discriminator for derived types.
Overrides:
SentimentSkillV3.getOdataType()Returns:
isIncludeOpinionMining
public Boolean isIncludeOpinionMining()
Get the includeOpinionMining property: If set to true, the skill output will include information from Text Analytics for opinion mining, namely targets (nouns or verbs) and their associated assessment (adjective) in the text. Default is false.
Returns:
setContext
public SentimentSkillV3 setContext(String context)
Set the context property: Represents the level at which operations take place, such as the document root or document content (for example, /document or /document/content). The default is /document.
Overrides:
SentimentSkillV3.setContext(String context)Parameters:
setDefaultLanguageCode
public SentimentSkillV3 setDefaultLanguageCode(SentimentSkillLanguage defaultLanguageCode)
Set the defaultLanguageCode property: A value indicating which language code to use. Default is `en`.
Parameters:
Returns:
setDescription
public SentimentSkillV3 setDescription(String description)
Set the description property: The description of the skill which describes the inputs, outputs, and usage of the skill.
Overrides:
SentimentSkillV3.setDescription(String description)Parameters:
setIncludeOpinionMining
public SentimentSkillV3 setIncludeOpinionMining(Boolean includeOpinionMining)
Set the includeOpinionMining property: If set to true, the skill output will include information from Text Analytics for opinion mining, namely targets (nouns or verbs) and their associated assessment (adjective) in the text. Default is false.
Parameters:
Returns:
setModelVersion
public SentimentSkillV3 setModelVersion(String modelVersion)
Set the modelVersion property: The version of the model to use when calling the Text Analytics service. It will default to the latest available when not specified. We recommend you do not specify this value unless absolutely necessary.
Parameters:
Returns:
setName
public SentimentSkillV3 setName(String name)
Set the name property: The name of the skill which uniquely identifies it within the skillset. A skill with no name defined will be given a default name of its 1-based index in the skills array, prefixed with the character '#'.
Overrides:
SentimentSkillV3.setName(String name)Parameters:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
SentimentSkillV3.toJson(JsonWriter jsonWriter)Parameters:
Throws: