I have installed duckling on my machine and added pipeline in my config file but after that too I am unable to get numerals from alphabets on my chatbot. Like if I write One it sends me One and not 1.
But when I type it on terminal using curl it sends me value as 1, Can anyone help me with this issue?
Can you send me an example what you send to Rasa NLU along with the request format, I will try to recreate your config and test because it all seems alright
Sorry for late reply, My duckling is working but I am unable to extract values from duckling. e.g. When entering values like ten it is setting values as ten but I want to set it as 10 in my slots. Can you help me with that?
Like i said before,
you have annotated your training examples with amount but you want a number from duckling
the amount slot is set using ner_crf and not using duckling because the entity provided by duckling is called number and not amount which is why you get fifty and not 50 .
First remove annotations of your NLU training data for amount entity(this entity is getting trained using crf)
retrain your NLU, make sure there is no entity named amount
add a new slot of type float called number the same as the entity name duckling is setting,
use a custom action to SlotSet(amount, number)
If I don’t defined number in my custom action file will it not show number not defined error when I execute my custom action or else I didn’t get you point can you explain a bit more.
you should have a slot named number in domain.yml file
and in your story, the state where the number is caught, you will call the custom action to extract the number slot and use the value to fill the amount slot
when you debug do you see the entity number being set? Maybe change the slot value type to “text”. i guess because the slot type is float, it isn’t getting picked as a slot, since duckling slot type could be integer or text
my mistake, i assumed it should pick up float in the slot itself