Chinese_Coreference_Resolution
Chinese_Coreference_Resolution copied to clipboard
在训练时,验证的时候报错,我不知道基本流程是什么样的
tuple indices must be integers or slices, not tuple
我也遇到了这个问题,不知道您解决了没
我也遇到了这个问题,不知道您解决了没
这个代码我好像当时就直接没用了,因为我没运行起来,你也是做共指消解方向吗?
嗯,涉及到这个方向,那个问题我解决啦已经~
这个repo bug太多,requirement.txt都装不上去,你们是不是装了最新版本的sciki learn? 是的话改这里:
# Find the optimal assignment between the two sets of elements
matching = linear_sum_assignment(-scores)
# Convert the matching matrix to a matrix of integers
matching = matching.astype(int)
# Calculate the total similarity score
similarity = sum(scores[matching[:, 0], matching[:, 1]])