Chinese_Coreference_Resolution icon indicating copy to clipboard operation
Chinese_Coreference_Resolution copied to clipboard

在训练时,验证的时候报错,我不知道基本流程是什么样的

Open tengda1 opened this issue 3 years ago • 5 comments

tengda1 avatar Nov 04 '22 05:11 tengda1

tuple indices must be integers or slices, not tuple

tengda1 avatar Nov 04 '22 05:11 tengda1

我也遇到了这个问题,不知道您解决了没

chaoaibeidanci avatar Oct 17 '23 03:10 chaoaibeidanci

我也遇到了这个问题,不知道您解决了没

这个代码我好像当时就直接没用了,因为我没运行起来,你也是做共指消解方向吗?

tengda1 avatar Oct 17 '23 03:10 tengda1

嗯,涉及到这个方向,那个问题我解决啦已经~

chaoaibeidanci avatar Nov 03 '23 05:11 chaoaibeidanci

这个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]])

Jeru2023 avatar Mar 12 '24 12:03 Jeru2023