Open DrappierTechnologies opened 5 years ago
Nevermind, installing Visual Studio C++ Build Tools 2015 and pip installing fasttext fixed this problem.
Alright, I take that back on windows there seems to be an issue specifying open() without the encoding type. PR not incoming. Please fix.
hi, I get same question with you ,but I used GloVe on windows 7,do you fix it ?,and follow is my error
UnicodeDecodeError Traceback (most recent call last)
@chuzhifeng Unfortunately, this repo isn't open for PRs so we can't really do much but workaround this issue. As a workaround I modified the models.py at line 109 & 122, both which read with open(self.w2v_path) as f:
, were changed to read with open(self.w2v_path, encoding="utf-8") as f:
.
yeah,when I changed this code,it can run,thanks
Are you using python3? The solution proposed by Drappier will be usable only for python3 users but it's the workaround indeed.
i already change the code but still error. any idea to fix it? thanks before
I'm receiving an error when following the encoder demo notebook
I'm using fastText instead of gLoVe on a Windows 10 machine.
UnicodeDecodeError Traceback (most recent call last)