[06.03.20] nltk downloads
This commit is contained in:
parent
a1753fe8db
commit
9925db1925
@ -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"]
|
||||
6
configuration/scripts/nltk.py
Normal file
6
configuration/scripts/nltk.py
Normal file
@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import nltk
|
||||
|
||||
nltk.download('pubkt')
|
||||
nltk.download('stopwords')
|
||||
Loading…
x
Reference in New Issue
Block a user