Adding entity synonyms

Hi team,

I have defined my nlu.md file as below

intent:support

lookup:appliance

  • washer

synonym:washer

  • washing machine

If I input “how to operate washing machine”, it doesn’t identify the entity appliance:washer

I’m using pipeline: supervised_embeddings

Please help me in handling synonyms effectively.

Thanks and regards

Anjaly

Hey @anjaly, have you added the CRFEntityExtractor component in the pipeline?

1 Like

Hi @JiteshGaikwad,

Does supervised_embeddings pipline includes CRFEntityExtractor?

No

I think that CRFEntityExtractor is included.

Does supervised_embeddings pipline includes CRFEntityExtractor?

@Krogsager, it’s the default components that makes up the supervised_embeddings pipeline but it’s not included within the supervised_embeddibgs

I had problems understing the pipeline/policy setup, but I was told that you don’t need to add it. (the github issue shows my misake. ESM is not a policy)

Error: Module for policy 'EntitySynonymMapper' could not be loaded. · Issue #4819 · RasaHQ/rasa · GitHub

Ella Rohm-Ensing @Krogsager EntitySynonymMapper is part of the NLU pipeline, not a policy. It is actually already part of the supervised_embeddings pipeline, so you don’t need to add it. Simply remove it from the policies list and it should work.

1 Like