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

Commit

Permalink
fix for python 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
pratapbhanu committed Jul 10, 2017
1 parent ab98771 commit 78c396a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion seq2seq/data/embeddings.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def read_embeddings(embeddings_path, vocab_path):
"""
vocab_, _, _ = vocab.read_vocab(vocab_path)
word2vec = {}
with open(embeddings_path, 'rt', encoding='utf-8') as vec_file:
with open(embeddings_path, 'r') as vec_file:
for line in vec_file:
parts = line.split(' ')
word = parts[0]
Expand Down

0 comments on commit 78c396a

Please sign in to comment.