Rasa NLU Can't Find City Entities

I’m trying to use a bot to extract city names using Rasa NLU. I’m already giving it about 40 examples, and it finds the city names correctly for all the cities included in my examples, but it can’t find any city names that it hadn’t seen before. For example, even after providing it examples like Washington, DC, New York, Madrid, Tokyo, Boston, etc. it doesn’t recognize Atlanta. I thought that was what Spacy was for, and I am using the spacy_sklearn pipeline.

Is 40 examples really not enough, or is it more likely I’m doing something else wrong?


Here you can read that this config:

language: "en"

pipeline: "spacy_sklearn"

…is actually:

language: "en"

- name: "nlp_spacy"
- name: "tokenizer_spacy"
- name: "intent_entity_featurizer_regex"
- name: "intent_featurizer_spacy"
- name: "ner_crf"
- name: "ner_synonyms"
- name: "intent_classifier_sklearn"

So you have to add ner_spacy to this pipeline and it should work…


Thank you, it is working for me now!

1 Like