Same word but different entity mapping depending on intent


Let’s say I have two utterances with two different intents:

“I want to watch titanic” intent=“watch_movie”, entity={“entity”:“movie”,“value”:“titanic”}

“what is the size of the titanic” intent=“get_info”, entity={“entity”:“ship”,“value”:“titanic”}

How can I handle that in Rasa? Is there a way to specify that for a specific intent, a certain type of entity should be used? I thought initially that use_entities in the domain.yml was meant for that, but it only helps to predict next action, it’s not used at time of entity extraction.



1 Like