EntityLabel Class

Defines the entity type and position of the extracted entity within the example.

All required parameters must be populated in order to send to Azure.

Inheritance
EntityLabel

Constructor

EntityLabel(*, entity_name: str, start_token_index: int, end_token_index: int, role: Optional[str] = None, role_id: Optional[str] = None, children=None, **kwargs)

Parameters

entity_name
str
Required

Required. The entity type.

start_token_index
int
Required

Required. The index within the utterance where the extracted entity starts.

end_token_index
int
Required

Required. The index within the utterance where the extracted entity ends.

role
str
Required

The role of the predicted entity.

role_id
str
Required

The role id for the predicted entity.

children
list[EntityLabel]
Required