Lookup table entity assignment not working

Hi Folks,

I have a quick question about lookup table entity assignments. I have the following code from nlu.yml:

  • Remove the [last one]{“entity”: “mention”, “value”: “LAST”}

Here is my config file: pipeline:

  • name: SpacyNLP model: “en_core_web_md”
  • name: SpacyTokenizer
  • name: RegexFeaturizer
  • name: SpacyFeaturizer
  • name: DIETClassifier
  • name: CRFEntityExtractor
  • name: SklearnIntentClassifier
  • name: ResponseSelector epochs: 100 retrieval_intent: faq
  • name: ResponseSelector epochs: 100 retrieval_intent: chitchat
  • name: ResponseSelector epochs: 100 retrieval_intent: ofs

policies:

  • name: MemoizationPolicy
  • name: TEDPolicy max_history: 10 epochs: 100 constrain_similarities: True
  • name: RulePolicy

Both CRFEntityExtractor and DIETClassifier catches the entity “mention” as with the value “last one”, instead of “LAST”.

Any idea what is missing?

Hi @endreb. You could include this as a synonym in your config file: NLU Training Data

Thank you for the reply. I have tried it, and still not worked. In the meantime I have found out the problem. I forget to add this to the config file:

  • name: EntitySynonymMapper

After adding the EntitySynonymMapper, it worked.

1 Like