chainer-char-rnn
chainer-char-rnn copied to clipboard
Use unicode in load_data function
The following command doesn't read all the characters in the text files that I am testing
words = open('%s/input.txt' % args.data_dir, 'rb').read()
instead it would better to read files as:
words = open('%s/input.txt' % args.data_dir, 'r', encoding='utf-8').read()
Thanks.