Skip to content

Commit

Permalink
installing spacy with conda
Browse files Browse the repository at this point in the history
  • Loading branch information
b08x committed Mar 30, 2024
1 parent 4a8c13a commit 1c911cd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nlp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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')"

Expand Down

0 comments on commit 1c911cd

Please sign in to comment.