We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a0fa34e + 5dc7d98 commit 5d9ef6bCopy full SHA for 5d9ef6b
neuralcoref/data.py
@@ -335,7 +335,7 @@ def load_embeddings_from_file(name):
335
voc = {}
336
mat = np.load(name+"_embeddings.npy")
337
average_mean = np.average(mat, axis=0, weights=np.sum(mat, axis=1))
338
- with open(name+"_vocabulary.txt") as f:
+ with open(name+"_vocabulary.txt", encoding="utf8") as f:
339
for i, line in enumerate(f):
340
embeddings[line.strip()] = mat[i, :]
341
voc[line.strip()] = i
0 commit comments