From 1c911cd4f09d53b96eed6579518ac167c9a2fab2 Mon Sep 17 00:00:00 2001 From: b08x Date: Sat, 30 Mar 2024 18:31:25 -0400 Subject: [PATCH] installing spacy with conda --- nlp/Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nlp/Dockerfile b/nlp/Dockerfile index e3a261f..35c7484 100644 --- a/nlp/Dockerfile +++ b/nlp/Dockerfile @@ -34,9 +34,8 @@ ENV LC_ALL=C.UTF-8 ENV PATH $HOME/.local/share/gem/ruby/3.1.0/bin:$HOME/.local/bin:$PATH ENV BUNDLE_PATH $HOME/.local/share/gem -RUN pip install --no-cache-dir -U pip wheel setuptools && \ - pip install --no-cache-dir spacy && \ - python3 -m spacy download en_core_web_sm && \ +RUN conda install -c conda-forge spacy && \ + python3 -m spacy download en_core_web_trf && \ python3 -m spacy download en_core_web_lg && \ python -c "import sys, importlib.util as util; 1 if util.find_spec('nltk') else sys.exit(); import nltk; nltk.download('punkt')"