赞
踩
RuntimeError: cuda runtime error (710) : device-side assert triggered at /pytorch/aten/src/THC/generic/THCTensorMath.cu:29
target_names = ['__label__1', '__label__2', '__label__3', '__label__4', '__label__5']
for i in range(len(questlist)):
if i < len(questlist):
for j in range(len(attrlist)):
if j < len(attrlist):
if attr_names[j] in attrlist[i]:
label = target_names[j]
line = " ".join(jieba.cut(questlist[i])) + "\t" + str(int(label[-1])-1) ## 标签值减1
linelist.append(line)
break
line = " ".join(jieba.cut(questlist[i])) + "\t" + str(int(label[-1])-1) ## 标签值减1
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。