From a97ef65b33befd107f88a89716b3d4236799c67d Mon Sep 17 00:00:00 2001 From: Raphael Mitsch Date: Tue, 28 Feb 2023 14:22:27 +0100 Subject: [PATCH] Fix .entity_ typo in _add_activations() usage. --- spacy/pipeline/entity_linker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/pipeline/entity_linker.py b/spacy/pipeline/entity_linker.py index 63d5cccc2..907307056 100644 --- a/spacy/pipeline/entity_linker.py +++ b/spacy/pipeline/entity_linker.py @@ -540,7 +540,7 @@ class EntityLinker(TrainablePipe): doc_scores=doc_scores, doc_ents=doc_ents, scores=[1.0], - ents=[candidates[0].entity_], + ents=[candidates[0].entity], ) else: random.shuffle(candidates)