The same synonym for different entities

Is it possible to use the same synonym for different entities in Rasa NLU training? Here’s an example:

  • “I want to go to Manchester.” (City)
  • “Tell me the ranking of Manchester.” (Football)

Above, we can have two entities, “location” and “footballClub”, that can have the same synonyms for different entity values.

But it seems that Rasa NLU can’t handle this, because in the file “entity_synonyms.json” of the trained data, we have “synonym”:“value” as key/value (ex: “Manchester”:“Manchester City Football Club”), which means that the same synonym will only return one value (the others are ignored).

Am I missing something or is this working as intended?

Thank you for your help.

3 Likes