thank you! i have solved it. Only 1 important problem remains, that is to match the user’s speech with the address to be queried.
ex: i want to see a image of iromman
so my bot has to understand it is ironman. Maybe I will write more statements using fuzzywuzzy. hope it works.
@longnguyenQB Yes, for your case you need to write more statements based on address, age, and name.
@longnguyenQB Speech or Text. Yes, you spot the point, you need to provide a set of variation of question for the answers in your training example such as
question | answer
I want to see Iron man image | url link
can you show me Ironman pic | url link
show me ironman photo | url link
etc etc
or change the ratio value such as 80 or 85 to match the exact sentence of words.
@longnguyenQB do remember to follow same for others, the data should be balance with the values, else it will throw errors. No NULL value.
wait a minute!!
the problem is that the user misspelled, and the entities received by the chatbot are ‘iromman’, not ironman. The query in the database would be:
SELECT link FROM document WHERE name = ‘iromman’
chatbot will not return the result expected by the user. Because in my database there is no entity named iromman.
looks like it’s going to be difficult, but I’m hoping for a method that doesn’t use fallback.My idea is like this: “i want to see an image of Irommman” . Entities that I get “irommman”. I will match this entity with all the places in the database, for example: “wonderwoman”, “hulk”, “thor”, “supperman”, “flash”, “batman”, “captainmarvel”, “spiderman”, “ironman”. the result I would expect would be “irommman” = “ironman” . let’s say fuzzywuzzy score > 80 for example. I will try and let you know later. hope it works.
@longnguyenQB you can see synonyms or lookuptabla in this case.
@longnguyenQB as you are using SQL, in my case I am using EXCEL and its working fine with the wrong spelling.
@longnguyenQB You can either use dispatcher if you are using custom action in actions.py or responses in domain.yml, with the values, as I can’t see the actual code; so I can’t tell you exact format.