practical-pytorch icon indicating copy to clipboard operation
practical-pytorch copied to clipboard

unicode problem.

Open AlexanLee opened this issue 7 years ago • 1 comments

i have get the unicode problem: TypeError: normalize() argument 2 must be unicode, not str and i have solved this problem as this: in the data.py

-- coding: utf-8 --

from io import open open(filename,encoding='utf-8') in the train.py add from future import unicode_literals, print_function, division

AlexanLee avatar Jul 05 '17 10:07 AlexanLee

Thanks.

rk2900 avatar Dec 31 '17 16:12 rk2900