Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit 78c396a

Browse files
committed
fix for python 2.7
1 parent ab98771 commit 78c396a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

seq2seq/data/embeddings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def read_embeddings(embeddings_path, vocab_path):
2525
"""
2626
vocab_, _, _ = vocab.read_vocab(vocab_path)
2727
word2vec = {}
28-
with open(embeddings_path, 'rt', encoding='utf-8') as vec_file:
28+
with open(embeddings_path, 'r') as vec_file:
2929
for line in vec_file:
3030
parts = line.split(' ')
3131
word = parts[0]

0 commit comments

Comments
 (0)