TextSentiment Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. ai. textanalytics. models. TextSentiment
- com.
- com.
public final class TextSentiment
extends ExpandableStringEnum<TextSentiment>
Defines values for TextSentiment.
Field Summary
| Modifier and Type | Field and Description |
|---|---|
|
static final
Text |
MIXED
Static value Mixed for TextSentiment. |
|
static final
Text |
NEGATIVE
Static value Negative for TextSentiment. |
|
static final
Text |
NEUTRAL
Static value Neutral for TextSentiment. |
|
static final
Text |
POSITIVE
Static value Positive for TextSentiment. |
Constructor Summary
| Constructor | Description |
|---|---|
| TextSentiment() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Text |
fromString(String name)
Creates or finds a |
|
static
Collection<Text |
values()
All known Text |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
MIXED
public static final TextSentiment MIXED
Static value Mixed for TextSentiment.
NEGATIVE
public static final TextSentiment NEGATIVE
Static value Negative for TextSentiment.
NEUTRAL
public static final TextSentiment NEUTRAL
Static value Neutral for TextSentiment.
POSITIVE
public static final TextSentiment POSITIVE
Static value Positive for TextSentiment.
Constructor Details
TextSentiment
@Deprecated
public TextSentiment()
Deprecated
Creates a new instance of TextSentiment value.
Method Details
fromString
public static TextSentiment fromString(String name)
Creates or finds a TextSentiment from its string representation.
Parameters:
Returns:
TextSentiment.values
public static Collection<TextSentiment> values()
All known TextSentiment values.
Returns: