Skip to content

Commit

Permalink
encoding update, bugfix in notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
aparrish committed Aug 21, 2019
1 parent eea1fc9 commit 8421204
Show file tree
Hide file tree
Showing 2 changed files with 150 additions and 150 deletions.
2 changes: 1 addition & 1 deletion data/text_data.py
Expand Up @@ -86,7 +86,7 @@ def _read_corpus(self, fname, label, max_length, vocab):

# if it looks like a gzip file, use gzip.open
if fname.endswith('.gz'):
opener = lambda x: gzip.open(fname, 'rt')
opener = lambda x: gzip.open(fname, 'rt', encoding='utf8')
else:
opener = lambda x: open(x)

Expand Down

0 comments on commit 8421204

Please sign in to comment.