Class TextSentiment
- java.lang.Object
-
- com.azure.core.util.ExpandableStringEnum<TextSentiment>
-
- com.azure.ai.textanalytics.models.TextSentiment
-
public final class TextSentiment extends com.azure.core.util.ExpandableStringEnum<TextSentiment>
Defines values forTextSentiment
.
-
-
Field Summary
Fields Modifier and Type Field Description static TextSentiment
MIXED
Static value Mixed forTextSentiment
.static TextSentiment
NEGATIVE
Static value Negative forTextSentiment
.static TextSentiment
NEUTRAL
Static value Neutral forTextSentiment
.static TextSentiment
POSITIVE
Static value Positive forTextSentiment
.
-
Constructor Summary
Constructors Constructor Description TextSentiment()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TextSentiment
fromString(String name)
Creates or finds aTextSentiment
from its string representation.
-
-
-
Field Detail
-
POSITIVE
public static final TextSentiment POSITIVE
Static value Positive forTextSentiment
.
-
NEUTRAL
public static final TextSentiment NEUTRAL
Static value Neutral forTextSentiment
.
-
NEGATIVE
public static final TextSentiment NEGATIVE
Static value Negative forTextSentiment
.
-
MIXED
public static final TextSentiment MIXED
Static value Mixed forTextSentiment
.
-
-
Method Detail
-
fromString
public static TextSentiment fromString(String name)
Creates or finds aTextSentiment
from its string representation.- Parameters:
name
- A name to look for.- Returns:
- The corresponding
TextSentiment
.
-
-