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 |
DocumentSentiment.getSentiment()
Get the text sentiment label: POSITIVE, NEGATIVE, NEUTRAL, or MIXED.
|
TextSentiment |
AssessmentSentiment.getSentiment()
Get the opinion text sentiment label: POSITIVE, NEGATIVE, MIXED.
|
TextSentiment |
TargetSentiment.getSentiment()
Get the target text sentiment label: POSITIVE, NEGATIVE, MIXED.
|
TextSentiment |
SentenceSentiment.getSentiment()
Get the text sentiment label: POSITIVE, NEGATIVE, or NEUTRAL.
|
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. |
Copyright © 2021 Microsoft Corporation. All rights reserved.