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
for entity in d:
e_start, e_end, e_type = entity[0], entity[1] + 1, entity[-1]
if e_end >= maxlen - 2:
continue
index = list(range(e_start, e_end))
for i in range(len(index)):
if i + 1 >= len(index):
break
_grid_labels[index[i], index[i + 1]] = 1
_grid_labels[index[-1], index[0]] = categories[e_type]
想问一下作者这样吧上三角设置为开始和结束位置设置为1,把下三角的对称位置却设置为类型对应的标签,这样做的目的是什么
The text was updated successfully, but these errors were encountered: