-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
In DucklingPlugin, once self.activate_latent_entities is set True, there is no option to make it False in the consecutive turns/states where I don't want latent entities.
Following logic in DucklingPlugin contributes to this behavior.
self.activate_latent_entities = use_latent or self.activate_latent_entities
To Reproduce
Steps to reproduce the behavior:
- set activate_latent_entities=false , while defining DucklingPlugin inside processors.
- Set state wise latent_entities in Input Class. eg latent_entities=False for
capture_date_stateand latent_entities=True forcapture_time_state print(activate_latent_entities)variable inside Dialogy DucklingPlugin Base Class.- curl request slu with payload's
context['current_state']in the following sequencecapture_date_state->capture_time_state->capture_date_state - activate_latent_entities will be printed in this sequence
False->True->True
Expected behavior
Whereas it should have been:
False -> True -> False
Screenshots
Na
Desktop (please complete the following information):
- OS: Ubuntu
- Python version: 3.9
Additional context
Na
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working