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'>}¶