From 4286589cf676544a3af7019da3263797cdf71986 Mon Sep 17 00:00:00 2001 From: ontocord Date: Tue, 1 Nov 2022 19:38:11 -0700 Subject: [PATCH] Update preprocess.py --- preprocess.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)