你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Sentiment 类

  • java.lang.Object
    • com.microsoft.azure.cognitiveservices.language.luis.runtime.models.Sentiment

public class Sentiment

输入话语的情绪。

方法摘要

修饰符和类型 方法和描述
String label()

获取标签值。

Double score()

获取分数值。

Sentiment withLabel(String label)

设置标签值。

Sentiment withScore(Double score)

设置分数值。

方法详细信息

label

public String label()

获取标签值。

Returns:

标签值

score

public Double score()

获取分数值。

Returns:

分数值

withLabel

public Sentiment withLabel(String label)

设置标签值。

Parameters:

label - 要设置的标签值

Returns:

Sentiment 对象本身。

withScore

public Sentiment withScore(Double score)

设置分数值。

Parameters:

score - 要设置的分数值

Returns:

Sentiment 对象本身。

适用于