Synonym not found

Hi people , i’m using rasa 1.2.3 and not detected entity when i use synonymous.

My config.yml is:

Configuration for Rasa NLU.

language: es pipeline:

  • name: “SpacyNLP”
  • name: “SpacyTokenizer”
  • name: “SpacyFeaturizer”
  • name: “RegexFeaturizer”
  • name: “CRFEntityExtractor”
  • name: “EntitySynonymMapper”
  • name: “SklearnIntentClassifier”

Configuration for Rasa Core.

policies:

  • name: MemoizationPolicy
  • name: KerasPolicy
  • name: MappingPolicy

Can you share your nlu data file?

This is nlu data file:

nlu.md (4.0 KB)

1 Like

From:

Please note that adding synonyms using the above format does not improve the model’s classification of those entities. Entities must be properly classified before they can be replaced with the synonym value.

You didn’t provide examples for all the synonyms, so the entity extractor fails to identify them. Create lookup tables with all the entities and their synonyms. Something like this:

lookup:<slot_name>

  • value1
  • value1_synonym1
  • value1_synonym2
  • value1_synonym3
  • value2
  • value2_synonym1

PS: I think the lookup table you put at the end should also be a synonym table.