Skip to content

Commit

Permalink
Update spacy/pipeline/entity_linker.py
Browse files Browse the repository at this point in the history
Co-authored-by: Raphael Mitsch <r.mitsch@outlook.com>
  • Loading branch information
svlandeg and rmitsch authored Apr 2, 2024
1 parent a1cde9d commit ce7b51e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spacy/pipeline/entity_linker.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def __init__(
if candidates_batch_size < 1:
raise ValueError(Errors.E1044)

def _score_augmented(examples, **kwargs):
def _score_augmented(examples: Iterable[Example], **kwargs):
# Because of how spaCy works, we can't just score immediately, because Language.evaluate
# calls pipe() on the predicted docs, which won't have entities if there is no NER in the pipeline.
if not self.use_gold_ents:
Expand Down

0 comments on commit ce7b51e

Please sign in to comment.