Skip to content

Commit

Permalink
Dockerfile properly uses nltk
Browse files Browse the repository at this point in the history
  • Loading branch information
sedv8808 committed Jan 20, 2021
1 parent 5072635 commit 605f717
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion ml.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ CMD ["python3", "/app/predicting/predict.py", "--input_name=/app/input/sentences
# docker run -it sedv8808/unacquired_sites_ml_app:latest bash

# pushing the image to the hub
#
# docker push sedv8808/unacquired_sites_ml_app:latest
2 changes: 0 additions & 2 deletions src/modules/predicting/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@

import nltk
from nltk.tokenize import sent_tokenize, word_tokenize
#nltk.download('stopwords')
from nltk.corpus import stopwords
from nltk.stem.snowball import SnowballStemmer
#nltk.download('punkt') # for Docker - comment when not building Docker

import time
import pickle
Expand Down

0 comments on commit 605f717

Please sign in to comment.