Class LabeledUtterance
- java.lang.Object
-
- com.microsoft.azure.cognitiveservices.language.luis.authoring.models.LabeledUtterance
-
public class LabeledUtterance extends Object
A prediction and label pair of an example.
-
-
Constructor Summary
Constructors Constructor Description LabeledUtterance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 Detail
-
id
public Integer id()
Get the id value.- Returns:
- the id value
-
withId
public LabeledUtterance withId(Integer id)
Set the id value.- Parameters:
id
- the id value to set- Returns:
- the LabeledUtterance object itself.
-
text
public String text()
Get the text value.- Returns:
- the text value
-
withText
public LabeledUtterance withText(String text)
Set the text value.- Parameters:
text
- the text value to set- Returns:
- the LabeledUtterance object itself.
-
tokenizedText
public List<String> tokenizedText()
Get the tokenizedText value.- Returns:
- the tokenizedText value
-
withTokenizedText
public LabeledUtterance withTokenizedText(List<String> tokenizedText)
Set the tokenizedText value.- Parameters:
tokenizedText
- the tokenizedText value to set- Returns:
- the LabeledUtterance object itself.
-
intentLabel
public String intentLabel()
Get the intentLabel value.- Returns:
- the intentLabel value
-
withIntentLabel
public LabeledUtterance withIntentLabel(String intentLabel)
Set the intentLabel value.- Parameters:
intentLabel
- the intentLabel value to set- Returns:
- the LabeledUtterance object itself.
-
entityLabels
public List<EntityLabel> entityLabels()
Get the entityLabels value.- Returns:
- the entityLabels value
-
withEntityLabels
public LabeledUtterance withEntityLabels(List<EntityLabel> entityLabels)
Set the entityLabels value.- Parameters:
entityLabels
- the entityLabels value to set- Returns:
- the LabeledUtterance object itself.
-
intentPredictions
public List<IntentPrediction> intentPredictions()
Get the intentPredictions value.- Returns:
- the intentPredictions value
-
withIntentPredictions
public LabeledUtterance withIntentPredictions(List<IntentPrediction> intentPredictions)
Set the intentPredictions value.- Parameters:
intentPredictions
- the intentPredictions value to set- Returns:
- the LabeledUtterance object itself.
-
entityPredictions
public List<EntityPrediction> entityPredictions()
Get the entityPredictions value.- Returns:
- the entityPredictions value
-
withEntityPredictions
public LabeledUtterance withEntityPredictions(List<EntityPrediction> entityPredictions)
Set the entityPredictions value.- Parameters:
entityPredictions
- the entityPredictions value to set- Returns:
- the LabeledUtterance object itself.
-
-