Sentiment Class
- java.
lang. Object - com.
microsoft. azure. cognitiveservices. language. luis. runtime. models. Sentiment
- com.
public class Sentiment
Sentiment of the input utterance.
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
label()
Get the label value. |
Double |
score()
Get the score value. |
Sentiment |
withLabel(String label)
Set the label value. |
Sentiment |
withScore(Double score)
Set the score value. |
Method Details
label
public String label()
Get the label value.
Returns:
the label value
score
public Double score()
Get the score value.
Returns:
the score value
withLabel
public Sentiment withLabel(String label)
Set the label value.
Parameters:
label
- the label value to set
Returns:
the Sentiment object itself.
withScore
public Sentiment withScore(Double score)
Set the score value.
Parameters:
score
- the score value to set
Returns:
the Sentiment object itself.
Applies to
Совместная работа с нами на GitHub
Источник этого содержимого можно найти на GitHub, где также можно создавать и просматривать проблемы и запросы на вытягивание. Дополнительные сведения см. в нашем руководстве для участников.
Azure SDK for Java
Обратная связь
https://aka.ms/ContentUserFeedback.
Ожидается в ближайшее время: в течение 2024 года мы постепенно откажемся от GitHub Issues как механизма обратной связи для контента и заменим его новой системой обратной связи. Дополнительные сведения см. в разделеОтправить и просмотреть отзыв по