How to integrate french spaCy pipeline in config.yml

Hi everyone !

I’m new to rasa.

I’m developping a bot in french and was wondering how to integrate the french spaCy core module inside my config.yml ?

here is the link to the french core module:

Thanks in advance for your returns !


Hi :wink:

Download the model of Spacy you need with python -m spacy download fr_core_news_md

The top language should be set to “fr”. Then, in the pipeline specify.

  • name: “SpacyNLP” model: “fr_core_news_md”

If you don’t want to specify the model name in the configuration, after installing the French Spacy model, you can like it to name “fr” (python -m spacy link fr_core_news_md fr ) then, the "spacy_model_name" configuration value can be omitted.


Thank you so much ! It runs but I get a conda error preventing me to train de model ;(

AttributeError: ‘Stream’ object has no attribute ‘ptr’

cupy.cuda.runtime.CUDARuntimeError: cudaErrorUnknown: unknown error

CUDA is using GPU right ? I’m not using it personally but I know there could be issues because all GPU or GPU drivers aren’t usable with CUDA. Maybye checking versions of CUDA, drivers, etc. could be a good idea to begin.

1 Like

Yes you are right, the problem is that i’m coding on an Azure virtual machine meaning I can’t update the graphic card driver.

Sorry, but I can’t help you on that.

It’s may be good to close this subject (by mark it as solved) because the original problem was solved and create a new one with the CUDA problem in order to bring in people who use CUDA.

1 Like