mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-18 20:22:25 +03:00
Remove end adjustment
The difference in environments was due to a change in Thinc, the code here is fine.
This commit is contained in:
parent
8181d4570c
commit
08729e0fbd
|
@ -561,9 +561,7 @@ class SpanPredictor(TrainablePipe):
|
||||||
if key.startswith(self.output_prefix):
|
if key.startswith(self.output_prefix):
|
||||||
for mention in sg:
|
for mention in sg:
|
||||||
starts.append(mention.start)
|
starts.append(mention.start)
|
||||||
# TODO check: Is the -1 here correct?
|
ends.append(mention.end)
|
||||||
# In Akos's env it works without, but in Paul's it doesn't.
|
|
||||||
ends.append(mention.end - 1)
|
|
||||||
|
|
||||||
starts = self.model.ops.xp.asarray(starts)
|
starts = self.model.ops.xp.asarray(starts)
|
||||||
ends = self.model.ops.xp.asarray(ends)
|
ends = self.model.ops.xp.asarray(ends)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user