SentenceOpinion Class
- java.
lang. Object - com.
azure. ai. textanalytics. models. SentenceOpinion
- com.
public final class SentenceOpinion
The SentenceOpinion model.
Constructor Summary
| Constructor | Description |
|---|---|
| SentenceOpinion() |
Constructs a |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Iterable |
getAssessments()
Gets the assessments of target text. |
|
Target |
getTarget()
Gets the target sentiment in text, such as the attributes of products or services. |
Methods inherited from java.lang.Object
Constructor Details
SentenceOpinion
public SentenceOpinion()
Constructs a SentenceOpinion model.
Method Details
getAssessments
public IterableStream<AssessmentSentiment> getAssessments()
Gets the assessments of target text.
Returns:
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: