mirror of
https://github.com/explosion/spaCy.git
synced 2025-09-20 19:12:36 +03:00
Remove old comment
This commit is contained in:
parent
4a4ef72191
commit
18444fccd9
|
@ -176,8 +176,6 @@ def span_embeddings_forward(
|
||||||
|
|
||||||
# first and last token embeds
|
# first and last token embeds
|
||||||
# XXX probably would be faster to get these at once
|
# XXX probably would be faster to get these at once
|
||||||
# starts = [tokvecs[ii] for ii in mentions[:, 0]]
|
|
||||||
# ends = [tokvecs[jj] for jj in mentions[:, 1]]
|
|
||||||
starts, ends = zip(*[(tokvecs[ii], tokvecs[jj]) for ii, jj in mentions])
|
starts, ends = zip(*[(tokvecs[ii], tokvecs[jj]) for ii, jj in mentions])
|
||||||
|
|
||||||
starts = ops.asarray2f(starts)
|
starts = ops.asarray2f(starts)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user