Skip to content

Commit

Permalink
Update preprocess.py
Browse files Browse the repository at this point in the history
  • Loading branch information
huu4ontocord authored Nov 2, 2022
1 parent d642f6a commit 4286589
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit 4286589

Please sign in to comment.