mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-19 20:52:23 +03:00
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:
parent
d74fa82c80
commit
865caedebd
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user