# Install Dutch spaCy model for MedCATtrainer

**URL:** <https://discourse.cogstack.org/t/install-dutch-spacy-model-for-medcattrainer/274>\
**Category:** MedCAT\
**Created:** [January 18, 2024, 10:30am UTC](https://discourse.cogstack.org/t/install-dutch-spacy-model-for-medcattrainer/274 "2024-01-18T10:30:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmmurphy](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@rmmurphy](https://discourse.cogstack.org/u/rmmurphy)\
**Post date:** [January 18, 2024, 10:30am UTC](https://discourse.cogstack.org/t/install-dutch-spacy-model-for-medcattrainer/274/1 "2024-01-18T10:30:28Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![sandertan](https://avatars.discourse-cdn.com/v4/letter/s/ecd19e/32.png) [@sandertan](https://discourse.cogstack.org/u/sandertan)\
**Post date:** [January 18, 2024, 10:54am UTC](https://discourse.cogstack.org/t/install-dutch-spacy-model-for-medcattrainer/274/2 "2024-01-18T10:54:14Z")

</div>

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:

> <https://github.com/CogStack/MedCATtrainer/blob/a74c7041841828f8d1ff3011779cb25b6d14181a/.env-example#L2>

and

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

---

<div class="post-metadata">

**Author:** ![rmmurphy](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@rmmurphy](https://discourse.cogstack.org/u/rmmurphy)\
**Post date:** [January 18, 2024, 11:03am UTC](https://discourse.cogstack.org/t/install-dutch-spacy-model-for-medcattrainer/274/3 "2024-01-18T11:03:13Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Tom](https://avatars.discourse-cdn.com/v4/letter/t/3d9bf3/32.png) [@Tom](https://discourse.cogstack.org/u/Tom)\
**Post date:** [January 18, 2024, 11:18am UTC](https://discourse.cogstack.org/t/install-dutch-spacy-model-for-medcattrainer/274/4 "2024-01-18T11:18:16Z")

</div>

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