Error: embedding_intent_classifier - Rasa Open Source - Rasa Community Forum
👋 Introducing the Rasa Playground
Error: embedding_intent_classifier
You have selected 0 posts.
1.5k views
post by sten on Nov 1, 2019
pipeline:
# "supervised_embeddings"
- name: "WhitespaceTokenizer"
intent_tokenization_flag: true
intent_split_symbol: "+"
- name: "RegexFeaturizer"
- name: "CRFEntityExtractor"
- name: "EntitySynonymMapper"
- name: "CountVectorsFeaturizer"
- name: "CountVectorsFeaturizer"
analyzer: "char_wb"
min_ngram: 1
max_ngram: 4
- name: "EmbeddingIntentClassifier"
- name: ResponseSelector
policies:
- name: MemoizationPolicy
- name: KerasPolicy
- name: MappingPolicy
Why I’m getting the following error, what I’m doing wrong :
2019-11-01 14:38:36 INFO rasa.nlu.model - Starting to train component ResponseSelector
2019-11-01 14:38:36 ERROR rasa.nlu.classifiers.embedding_intent_classifier - Can not train a classifier. Need at least 2 different classes. Skipping training of classifier.
2019-11-01 14:38:36 INFO rasa.nlu.model - Finished training component.
2019-11-01 14:38:36 INFO rasa.nlu.model - Successfully saved model into '/tmp/tmpm1pb9sq0/nlu'
NLU model training completed.
post by JulianGerhard on Nov 2, 2019
Hi @sten,
as the error you posted shows:
you don’t seem to have at least two different intents. Can you copy/paste your nlu.md content?
Regards Julian
post by sten on Nov 2, 2019
nlu.md (2.6 KB)
post by JulianGerhard on Nov 2, 2019
Hi @sten,
could you please remove the ResponseSelector and try to train again?
Regards Julian
post by sten on Nov 2, 2019
that was it , btw i would need it for FAQ handling
quick question :
if I have multiple *.md files in /data, does rasa train pick them up … or there is some way to point them
post by JulianGerhard on Nov 2, 2019
Hi @sten,
glad that I could help. You actually didnt define any response intents (they need to be provided in a special way) but used their classifier which would not work.
Jeah - rasa picks those files together.
Regards Julian
post by sten on Nov 2, 2019
i have responses.md file
how do i make it work with ResponseSelector ? I followed :
post by sten on Nov 3, 2019
i made it work
1 month later
post by chriswangweb on Dec 9, 2019
I have same question ,can you tell me how to make it work?
post by sten on Dec 10, 2019
as far as I can remember you probably have #intent which have only one item …
#intent: abc
- abcd
should have more than one :
#intent: abc
- abcd
- defg