DIET breaks with empty spaCy model #5638
Labels
area:rasa-oss 🎡
Anything related to the open source Rasa framework
type:bug 🐛
Inconsistencies or issues which will cause an issue or problem for users or implementors.
In spaCy it is possible to create a model to detect entities, without the model outputting any vectors. If the model is then included as a featurizer in the pipeline by accident then it currently breaks the DIET classifier.
Issue:
basic-rules.jsonl
mkmodel.py
config.yml that does cause the error
config.yml that does not cause error
Error (including full traceback):
I first run the command to generate the spaCy model.
And then it all breaks after passing a command into rasa.
Now the interesting thing here is that this error goes away once we stop using
English()
and start usingnlp.load("en_core_web_md")
inmkmodel.py
.@tabergma we've discussed this over a zoom call, this indicates that the DIET classifier is probably picking up an empty element from the spaCyfeaturizer.
The text was updated successfully, but these errors were encountered: