hjptriplebee / Chinese_poem_generator

唐诗、宋词生成器,有详细说明
GNU General Public License v3.0
493 stars 181 forks source link

请问一下执行main.py出现错误 #8

Closed infiniteHY closed 5 years ago

infiniteHY commented 5 years ago

Traceback (most recent call last): File "main.py", line 22, in trainData = data.POEMS(trainPoems) File "D:\study\1.毕业设计\Chinese_poem_generator-master\data.py", line 17, in init for line in file: #every line is a poem UnicodeDecodeError: 'gbk' codec can't decode byte 0xaa in position 2: illegal multibyte sequence 我刚开始学照着网上帖子安装了环境Windows,python3.6,TensorFlow1.8-gpu,别的也不太会,不知道该看什么开始学起,想先运行出来你的。看你别的issues里删除poetrySong里的内容,但我又出错了 python main.py -train usage: main.py [-h] [-m {train,test,head}] main.py: error: unrecognized arguments: -train 我感觉我也不懂怎么运行,又不知道该怎么办,请求帮助,谢谢啦。

infiniteHY commented 5 years ago

编码问题,自己解决了