diff --git a/preprocess.py b/preprocess.py index da822a0..0c285c5 100644 --- a/preprocess.py +++ b/preprocess.py @@ -17,7 +17,8 @@ from .stopwords import all_stopwords import fasttext, langid -fasttext_model = "lid.176.ftz" +import os +fasttext_model = os.path.abspath(os.path.dirname(__file__))) +"/bin/lid.176.ftz" lang_model = fasttext.load_model(fasttext_model)