mirror of
https://github.com/explosion/spaCy.git
synced 2025-06-27 16:33:18 +03:00
Fix .entity_ typo in _add_activations() usage.
This commit is contained in:
parent
5a9d8ba73c
commit
a97ef65b33
|
@ -540,7 +540,7 @@ class EntityLinker(TrainablePipe):
|
||||||
doc_scores=doc_scores,
|
doc_scores=doc_scores,
|
||||||
doc_ents=doc_ents,
|
doc_ents=doc_ents,
|
||||||
scores=[1.0],
|
scores=[1.0],
|
||||||
ents=[candidates[0].entity_],
|
ents=[candidates[0].entity],
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
random.shuffle(candidates)
|
random.shuffle(candidates)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user