Skip to content

Commit

Permalink
change the way nltk downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
Fluder-Paradyne committed Jan 2, 2024
1 parent 4a4ae8e commit 9813183
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ ENV PATH="/opt/venv/bin:$PATH"

COPY requirements.txt .
RUN pip install --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
RUN python -m nltk.downloader averaged_perceptron_tagger punkt
pip install --no-cache-dir -r requirements.txt \

RUN python3.10 -c "import nltk; nltk.download('punkt')" && \
python3.10 -c "import nltk; nltk.download('averaged_perceptron_tagger')" \

COPY . .

Expand Down

0 comments on commit 9813183

Please sign in to comment.