You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
的这一步时,由于原本的x数组为int类型,我的数据里面是str类型的会出现错误
File "/usr/local/lib/python3.7/site-packages/tflearn/data_utils.py", line 92, in pad_sequences
x[idx, :len(trunc)] = trunc
ValueError: invalid literal for int() with base 10: '公诉'
The text was updated successfully, but these errors were encountered:
对于pad_seq = pad_sequences(data.tokenindex, maxlen=pad_seq_len, value=0.)这一步函数
我在运行的时候为了补全将数据中不足的 pad_seq 词语长度的 doc 补齐至 pad_seq 长度。但是
在图中
的这一步时,由于原本的x数组为int类型,我的数据里面是str类型的会出现错误
File "/usr/local/lib/python3.7/site-packages/tflearn/data_utils.py", line 92, in pad_sequences
x[idx, :len(trunc)] = trunc
ValueError: invalid literal for int() with base 10: '公诉'
The text was updated successfully, but these errors were encountered: