Install Dutch spaCy model for MedCATtrainer

How do I install the Dutch spaCy model for MedCATtrainer? I am using the UMCU Dutch model pack and get the error “Error: [E050] Can’t find model ‘nl_core_news_lg’. It doesn’t seem to be a Python package or a valid path to a data directory.”. It is not clear where or how I should install the Dutch spaCy model and whether I need to change the configuration to tell MedCATtrainer which model it should use. @sandertan Sander have you done this? Any advice or pointers would be greatly appreciated!

Hi @rmmurphy ; for the Dutch MedCAT model, you’ll need to configure the Dutch spacy models in an environment variable before building the Docker image. You can use the example env file, see:

and

https://medcattrainer.readthedocs.io/en/latest/installation.html#build-images-from-source

2 Likes

Thanks Sander. @Tom since you did not use docker, will this still apply?

It appears we DO use docker (must be my toothache acting up to forget that). I will look in to it.

1 Like