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

LabeledUtterance 类

  • java.lang.Object
    • com.microsoft.azure.cognitiveservices.language.luis.authoring.models.LabeledUtterance

public class LabeledUtterance

示例的预测和标签对。

方法摘要

修饰符和类型 方法和描述
List<EntityLabel> entityLabels()

获取 entityLabels 值。

List<EntityPrediction> entityPredictions()

获取 entityPredictions 值。

Integer id()

获取 ID 值。

String intentLabel()

获取 intentLabel 值。

List<IntentPrediction> intentPredictions()

获取 intentPredictions 值。

String text()

获取文本值。

List<String> tokenizedText()

获取 tokenizedText 值。

LabeledUtterance withEntityLabels(List<EntityLabel> entityLabels)

设置 entityLabels 值。

LabeledUtterance withEntityPredictions(List<EntityPrediction> entityPredictions)

设置 entityPredictions 值。

LabeledUtterance withId(Integer id)

设置 ID 值。

LabeledUtterance withIntentLabel(String intentLabel)

设置 intentLabel 值。

LabeledUtterance withIntentPredictions(List<IntentPrediction> intentPredictions)

设置 intentPredictions 值。

LabeledUtterance withText(String text)

设置文本值。

LabeledUtterance withTokenizedText(List<String> tokenizedText)

设置 tokenizedText 值。

方法详细信息

entityLabels

public List entityLabels()

获取 entityLabels 值。

Returns:

entityLabels 值

entityPredictions

public List entityPredictions()

获取 entityPredictions 值。

Returns:

entityPredictions 值

id

public Integer id()

获取 ID 值。

Returns:

id 值

intentLabel

public String intentLabel()

获取 intentLabel 值。

Returns:

intentLabel 值

intentPredictions

public List intentPredictions()

获取 intentPredictions 值。

Returns:

intentPredictions 值

text

public String text()

获取文本值。

Returns:

文本值

tokenizedText

public List tokenizedText()

获取 tokenizedText 值。

Returns:

tokenizedText 值

withEntityLabels

public LabeledUtterance withEntityLabels(List entityLabels)

设置 entityLabels 值。

Parameters:

entityLabels - 要设置的 entityLabels 值

Returns:

LabeledUtterance 对象本身。

withEntityPredictions

public LabeledUtterance withEntityPredictions(List entityPredictions)

设置 entityPredictions 值。

Parameters:

entityPredictions - 要设置的 entityPredictions 值

Returns:

LabeledUtterance 对象本身。

withId

public LabeledUtterance withId(Integer id)

设置 ID 值。

Parameters:

id - 要设置的 id 值

Returns:

LabeledUtterance 对象本身。

withIntentLabel

public LabeledUtterance withIntentLabel(String intentLabel)

设置 intentLabel 值。

Parameters:

intentLabel - 要设置的 intentLabel 值

Returns:

LabeledUtterance 对象本身。

withIntentPredictions

public LabeledUtterance withIntentPredictions(List intentPredictions)

设置 intentPredictions 值。

Parameters:

intentPredictions - 要设置的 intentPredictions 值

Returns:

LabeledUtterance 对象本身。

withText

public LabeledUtterance withText(String text)

设置文本值。

Parameters:

text - 要设置的文本值

Returns:

LabeledUtterance 对象本身。

withTokenizedText

public LabeledUtterance withTokenizedText(List tokenizedText)

设置 tokenizedText 值。

Parameters:

tokenizedText - 要设置的 tokenizedText 值

Returns:

LabeledUtterance 对象本身。

适用于