IntentPrediction 类
- java.
lang. Object - com.
microsoft. azure. cognitiveservices. language. luis. authoring. models. IntentPrediction
- com.
public class IntentPrediction
建议的意向。
方法摘要
修饰符和类型 | 方法和描述 |
---|---|
String |
name()
获取名称值。 |
Double |
score()
获取分数值。 |
Intent |
withName(String name)
设置名称值。 |
Intent |
withScore(Double score)
设置分数值。 |
方法详细信息
name
public String name()
获取名称值。
Returns:
名称值
score
public Double score()
获取分数值。
Returns:
分数值
withName
public IntentPrediction withName(String name)
设置名称值。
Parameters:
name
- 要设置的名称值
Returns:
IntentPrediction 对象本身。
withScore
public IntentPrediction withScore(Double score)
设置分数值。
Parameters:
score
- 要设置的分数值
Returns:
IntentPrediction 对象本身。