dialogy.types.entity.deserialize package

Module contents

class EntityDeserializer[source]

Bases: object

classmethod deserialize_duckling(duckling_entity_dict, alternative_index, reference_time=None, timezone='UTC', duration_cast_operator=None, constraints=None)[source]
Return type

Optional[BaseEntity]

entitiy_classes: Dict[str, dialogy.types.entity.base_entity.BaseEntity] = {'address': <class 'dialogy.types.entity.address.AddressEntity'>, 'amount-of-money': <class 'dialogy.types.entity.amount_of_money.CurrencyEntity'>, 'credit-card-number': <class 'dialogy.types.entity.credit_card_number.CreditCardNumberEntity'>, 'duration': <class 'dialogy.types.entity.duration.DurationEntity'>, 'number': <class 'dialogy.types.entity.numerical.NumericalEntity'>, 'people': <class 'dialogy.types.entity.people.PeopleEntity'>, 'pincode': <class 'dialogy.types.entity.pincode.PincodeEntity'>, 'time': <class 'dialogy.types.entity.time.TimeEntity'>, 'time_interval': <class 'dialogy.types.entity.time_interval.TimeIntervalEntity'>}
static get_dimension(duckling_entity_dict)[source]
Return type

str

classmethod get_entity_class_str(duckling_entity_dict)[source]
Return type

str

static get_keys_in_value_as_str(duckling_entity_dict)[source]
Return type

str

classmethod register(dim)[source]
Return type

Callable[[Any], Any]

classmethod validate(duckling_entity_dict)[source]
Return type

None