From 0f123af35ed98da23b279df5a55c521a2f7cbe69 Mon Sep 17 00:00:00 2001 From: svlandeg Date: Wed, 17 Jun 2020 21:13:38 +0200 Subject: [PATCH] ensure test keeps working with non-linked entities --- spacy/tests/pipeline/test_entity_linker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/tests/pipeline/test_entity_linker.py b/spacy/tests/pipeline/test_entity_linker.py index 79cf9dc29..37dddc63e 100644 --- a/spacy/tests/pipeline/test_entity_linker.py +++ b/spacy/tests/pipeline/test_entity_linker.py @@ -263,7 +263,7 @@ TRAIN_DATA = [ "entities": [(0, 12, "PERSON")]}), ("Russ Cochran was a member of University of Kentucky's golf team.", {"links": {(0, 12): {"Q7381115": 0.0, "Q2146908": 1.0}}, - "entities": [(0, 12, "PERSON")]}), + "entities": [(0, 12, "PERSON"), (43, 51, "LOC")]}), ] GOLD_entities = ["Q2146908", "Q7381115", "Q7381115", "Q2146908"] # fmt: on