[06.03.20] nltk downloads

This commit is contained in:
andrewso 2020-03-06 11:33:58 +00:00
parent a1753fe8db
commit 9925db1925
2 changed files with 8 additions and 1 deletions

View File

@ -3,7 +3,8 @@ MAINTAINER Andrew Sotheran <cryptosky.user@gmail.com>
RUN apt update -y && \
apt install -y python3-pip && \
pip3 install nltk numpy sklearn flask pandas && \
rm -rf /var/lib/apt/lists/*
rm -rf /var/lib/apt/lists/* && \
COPY . /home/spam-filter/.
EXPOSE 9090
CMD ["python", "/home/spam-filter/configuration/scripts/nltk.py"]
CMD ["python", "/home/spam-filter/src/main.py"]

View File

@ -0,0 +1,6 @@
#!/usr/bin/env python
import nltk
nltk.download('pubkt')
nltk.download('stopwords')