Skip to content

Commit

Permalink
encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
Nils Reimers committed Jul 11, 2017
1 parent cd78a2d commit 37bf65d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def getCasing(word, caseLookup):
exit()



# :: Load the pre-trained embeddings file ::
fEmbeddings = gzip.open(embeddingsPath, "r") if embeddingsPath.endswith('.gz') else open(embeddingsPath, encoding="utf8")

for line in fEmbeddings:
Expand Down

0 comments on commit 37bf65d

Please sign in to comment.