LabeledUtterance Class

A prediction and label pair of an example.

Inheritance
LabeledUtterance

Constructor

LabeledUtterance(*, id: Optional[int] = None, text: Optional[str] = None, tokenized_text=None, intent_label: Optional[str] = None, entity_labels=None, intent_predictions=None, entity_predictions=None, **kwargs)

Parameters

id
int
Required

ID of Labeled Utterance.

text
str
Required

The utterance. For example, "What's the weather like in seattle?"

tokenized_text
list[str]
Required

The utterance tokenized.

intent_label
str
Required

The intent matching the example.

entity_labels
list[EntityLabel]
Required

The entities matching the example.

intent_predictions
list[IntentPrediction]
Required

List of suggested intents.

entity_predictions
list[EntityPrediction]
Required

List of suggested entities.