Class SentenceOpinion
- java.lang.Object
-
- com.azure.ai.textanalytics.models.SentenceOpinion
-
public final class SentenceOpinion extends Object
TheSentenceOpinion
model.
-
-
Constructor Summary
Constructors Constructor Description SentenceOpinion()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.azure.core.util.IterableStream<AssessmentSentiment>
getAssessments()
Gets the assessments of target text.TargetSentiment
getTarget()
Gets the target sentiment in text, such as the attributes of products or services.
-
-
-
Method Detail
-
getTarget
public TargetSentiment getTarget()
Gets the target sentiment in text, such as the attributes of products or services. For example, if a customer leaves feedback about a hotel such as "the room was great, but the staff was unfriendly", opinion mining will locate target sentiments in the text. The "room" and "staff" are two target sentiments recognized.- Returns:
- The target in text.
-
getAssessments
public com.azure.core.util.IterableStream<AssessmentSentiment> getAssessments()
Gets the assessments of target text.- Returns:
- The assessments of target text.
-
-