Skip to content

Commit

Permalink
Merge pull request Hironsan#99 from armanrahman22/load_glove_fix
Browse files Browse the repository at this point in the history
fixes load_glove on Windows
  • Loading branch information
Hironsan authored Feb 19, 2019
2 parents b9a6738 + 45e6319 commit 34b0b4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anago/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def load_glove(file):
dict: a dict of numpy arrays.
"""
model = {}
with open(file) as f:
with open(file, encoding="utf8", errors='ignore') as f:
for line in f:
line = line.split(' ')
word = line[0]
Expand Down

0 comments on commit 34b0b4c

Please sign in to comment.