Hi, My use case is that I want user to provide start and end date so I can fetch transactions that happened during that date range. I first tried without duckling with the following config:
- name: WhitespaceTokenizer
- name: RegexFeaturizer
- name: LexicalSyntacticFeaturizer
- name: CountVectorsFeaturizer
- name: CountVectorsFeaturizer
analyzer: char_wb
min_ngram: 1
max_ngram: 4
- name: DIETClassifier
epochs: 100
constrain_similarities: true
- name: EntitySynonymMapper
- name: ResponseSelector
epochs: 100
constrain_similarities: true
- name: FallbackClassifier
threshold: 0.8
ambiguity_threshold: 0.1
and by annotating the nlu examples for this intent with start_date and end_date. So my nlu example would look like : Fetch transactions that happened between [20/02/2020]{“entity”: “date”, “role”: “start_date”} and [01/02/2021]{“entity”: “date”, “role”: “end_date”}. I was using forms to collect start date and end date from the user. Every time the bot asks for start date, it actually stored it in end date slot.
I also came across duckling and tried that out with the same setup but just changing the config to include duckling config also. But there is still no difference and the bot stores the start date given by user in the end date slot.
Idk if this is the right way of going about, I just tried out something I learnt from those docs. If someone is aware of how to handle this situation, it would be of great help to me if you could share your approach. Thanks in advance!