I have implemented slot and entity as it mentionn in rasa official repository
Also added lookup table of entity used in intent But slot stuck with same result all time for Example
nlu.md
## intent:location_ask
-What is your address in [california](location)?
-Do you know my address in [brazil](location)?
## lookup:california
- california
- brazil
- china
- NYC
- Florida
## synonym:california
- california
- brazil
- china
- NYC
- Florida
stories.md
path 1
* location_ask{"location":"california"}
-action_location
Domain.yml
intents :
- location_ask
entities:
-location
-california
slots:
-location:
type:text
actions:
- action_location
action.py
from typing import Any, Text, Dict, List,Optional,Iterator
from rasa_sdk import Action, Tracker
from rasa_core.events import SlotSet
from rasa_sdk.executor import CollectingDispatcher
class Location(Action):
def name(self) - Text:
return "action_location"
def run(self, dispatcher: CollectingDispatcher,tracker: Tracker,domain: Dict[Text, Any]) - List[Dict[Text, Any]]:
#locationEntity=next(tracker.get_latest_entity_values("location"), None)
address=tracker.get_slot("location")
dispatcher.utter_message(str(address))
return []
What error I am getting? If send
Case 1
user : What is your address in california
Bot response: california user : What is your address in brazil Bot response : brazil user : what is your address in china
Bot respnse : brazil user : what is your address in china
Bot respnse : braziluser : what is your address in california
Bot respnse : california
user : what is your address in china
Bot respnse : california
Case 2 Restart rasa shell
user : What is your address in china
Bot response: None
what i am expecting (with entity extraction as well as slot)
user : what is your location in china
bot response: china
user : what is your location in florida
bot response: florida
I want to know proper solution for entity extraction and slot if any example repo is there please let me know What should i mention on pipeline and policy please update Also mention rasa proper version to run this @Juste @juste_petr