| Package | Description |
|---|---|
| com.azure.ai.textanalytics.models |
Package containing classes for TextAnalyticsClient.
|
| Modifier and Type | Field and Description |
|---|---|
static TextSentiment |
TextSentiment.MIXED
Static value Mixed for
TextSentiment. |
static TextSentiment |
TextSentiment.NEGATIVE
Static value Negative for
TextSentiment. |
static TextSentiment |
TextSentiment.NEUTRAL
Static value Neutral for
TextSentiment. |
static TextSentiment |
TextSentiment.POSITIVE
Static value Positive for
TextSentiment. |
| Modifier and Type | Method and Description |
|---|---|
static TextSentiment |
TextSentiment.fromString(String name)
Creates or finds a
TextSentiment from its string representation. |
TextSentiment |
AssessmentSentiment.getSentiment()
Gets the opinion text sentiment label: POSITIVE, NEGATIVE, MIXED.
|
TextSentiment |
TargetSentiment.getSentiment()
Gets the target text sentiment label: POSITIVE, NEGATIVE, MIXED.
|
TextSentiment |
SentenceSentiment.getSentiment()
Gets the text sentiment label: POSITIVE, NEGATIVE, or NEUTRAL.
|
TextSentiment |
DocumentSentiment.getSentiment()
Gets the text sentiment label: POSITIVE, NEGATIVE, NEUTRAL, or MIXED.
|
| Constructor and Description |
|---|
DocumentSentiment(TextSentiment sentiment,
SentimentConfidenceScores confidenceScores,
com.azure.core.util.IterableStream<SentenceSentiment> sentences,
com.azure.core.util.IterableStream<TextAnalyticsWarning> warnings)
Creates a
DocumentSentiment model that describes the sentiment of the document. |
SentenceSentiment(String text,
TextSentiment sentiment,
SentimentConfidenceScores confidenceScores)
Creates a
SentenceSentiment model that describes the sentiment analysis of sentence. |
Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.