How to build a bot which can answer this kind of question:
Human: What's the weather in London?
Bot: 33° Partly sunny and very hot; extreme heat can be dangerous for outdoor activities
Human: And what about Paris?
Bot: 33° Very warm with clouds and sunshine
Based on snips data we’ve created bot that returns below intents. For first sentence rasa returns GetWeather intent correctly. But for second it fails miserably…
what’s the weather in London?
{ "intent": { "name": "GetWeather", "confidence": 0.980739951133728 }, "entities": [ { "start": 22, "end": 28, "value": "London", "entity": "city", "confidence": 0.9554204616453795, "extractor": "CRFEntityExtractor" } ], "intent_ranking": [ { "name": "GetWeather", "confidence": 0.980739951133728 }, { "name": "SearchScreeningEvent", "confidence": 0.0 }, { "name": "PlayMusic", "confidence": 0.0 }, { "name": "AddToPlaylist", "confidence": 0.0 }, { "name": "SearchCreativeWork", "confidence": 0.0 }, { "name": "RateBook", "confidence": 0.0 }, { "name": "BookRestaurant", "confidence": 0.0 } ], "text": "what's the weather in London?" }
And what about Paris?
{ "intent": { "name": "SearchCreativeWork", "confidence": 0.7578651309013367 }, "entities": [ { "start": 15, "end": 20, "value": "Paris", "entity": "city", "confidence": 0.18767448527612474, "extractor": "CRFEntityExtractor" } ], "intent_ranking": [ { "name": "SearchCreativeWork", "confidence": 0.7578651309013367 }, { "name": "SearchScreeningEvent", "confidence": 0.4651528596878052 }, { "name": "BookRestaurant", "confidence": 0.03332594782114029 }, { "name": "RateBook", "confidence": 0.014989309012889862 }, { "name": "GetWeather", "confidence": 0.0 }, { "name": "PlayMusic", "confidence": 0.0 }, { "name": "AddToPlaylist", "confidence": 0.0 } ], "text": "And what about Paris?" }
Hope this topic will help.