Remove XXX comment

Comment wondered if there should be some subtraction to avoid double
counting, but it probably doesn't matter because the diagonal is 0.
This commit is contained in:
Paul O'Leary McCann 2021-07-03 18:40:38 +09:00
parent d74fa82c80
commit 865caedebd

View File

@ -455,7 +455,6 @@ def pairwise_sum(ops, mention_scores: Floats1d) -> Tuple[Floats2d, Callable]:
out = ops.alloc1f(dim)
for ii in range(dim):
out[ii] = d_pwsum[:, ii].sum() + d_pwsum[ii, :].sum()
# XXX maybe subtract d_pwsum[ii,ii] to avoid double counting?
return out