Freigeben über


LabeledUtterance Class

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

public class LabeledUtterance

A prediction and label pair of an example.

Method Summary

Modifier and Type Method and Description
List<EntityLabel> entityLabels()

Get the entityLabels value.

List<EntityPrediction> entityPredictions()

Get the entityPredictions value.

Integer id()

Get the id value.

String intentLabel()

Get the intentLabel value.

List<IntentPrediction> intentPredictions()

Get the intentPredictions value.

String text()

Get the text value.

List<String> tokenizedText()

Get the tokenizedText value.

LabeledUtterance withEntityLabels(List<EntityLabel> entityLabels)

Set the entityLabels value.

LabeledUtterance withEntityPredictions(List<EntityPrediction> entityPredictions)

Set the entityPredictions value.

LabeledUtterance withId(Integer id)

Set the id value.

LabeledUtterance withIntentLabel(String intentLabel)

Set the intentLabel value.

LabeledUtterance withIntentPredictions(List<IntentPrediction> intentPredictions)

Set the intentPredictions value.

LabeledUtterance withText(String text)

Set the text value.

LabeledUtterance withTokenizedText(List<String> tokenizedText)

Set the tokenizedText value.

Method Details

entityLabels

public List entityLabels()

Get the entityLabels value.

Returns:

the entityLabels value

entityPredictions

public List entityPredictions()

Get the entityPredictions value.

Returns:

the entityPredictions value

id

public Integer id()

Get the id value.

Returns:

the id value

intentLabel

public String intentLabel()

Get the intentLabel value.

Returns:

the intentLabel value

intentPredictions

public List intentPredictions()

Get the intentPredictions value.

Returns:

the intentPredictions value

text

public String text()

Get the text value.

Returns:

the text value

tokenizedText

public List tokenizedText()

Get the tokenizedText value.

Returns:

the tokenizedText value

withEntityLabels

public LabeledUtterance withEntityLabels(List entityLabels)

Set the entityLabels value.

Parameters:

entityLabels - the entityLabels value to set

Returns:

the LabeledUtterance object itself.

withEntityPredictions

public LabeledUtterance withEntityPredictions(List entityPredictions)

Set the entityPredictions value.

Parameters:

entityPredictions - the entityPredictions value to set

Returns:

the LabeledUtterance object itself.

withId

public LabeledUtterance withId(Integer id)

Set the id value.

Parameters:

id - the id value to set

Returns:

the LabeledUtterance object itself.

withIntentLabel

public LabeledUtterance withIntentLabel(String intentLabel)

Set the intentLabel value.

Parameters:

intentLabel - the intentLabel value to set

Returns:

the LabeledUtterance object itself.

withIntentPredictions

public LabeledUtterance withIntentPredictions(List intentPredictions)

Set the intentPredictions value.

Parameters:

intentPredictions - the intentPredictions value to set

Returns:

the LabeledUtterance object itself.

withText

public LabeledUtterance withText(String text)

Set the text value.

Parameters:

text - the text value to set

Returns:

the LabeledUtterance object itself.

withTokenizedText

public LabeledUtterance withTokenizedText(List tokenizedText)

Set the tokenizedText value.

Parameters:

tokenizedText - the tokenizedText value to set

Returns:

the LabeledUtterance object itself.

Applies to