InvalidConfigException: Can't load class for name 'HFTransformersNLP'. in rasa
This error could be due to the Rasa version you're using (output of rasa --version
). In the current versions (>2.1
), HFTransformersNLP
and LanguageModelTokenizer
are deprecated. Using a BERT model can be achieved with any tokenizer and
pipeline:
- name: LanguageModelFeaturizer
model_name: "bert"
model_weights: "rasa/LaBSE"
See the documentation for further details.