From 34c92dfe636fb586aab7a59992ab90a0883c2067 Mon Sep 17 00:00:00 2001 From: Adriane Boyd Date: Mon, 27 Jul 2020 15:08:51 +0200 Subject: [PATCH] Add missing Scorer imports --- spacy/pipeline/entityruler.py | 1 + spacy/pipeline/simple_ner.py | 1 + 2 files changed, 2 insertions(+) diff --git a/spacy/pipeline/entityruler.py b/spacy/pipeline/entityruler.py index dc6cf4359..f18cec472 100644 --- a/spacy/pipeline/entityruler.py +++ b/spacy/pipeline/entityruler.py @@ -8,6 +8,7 @@ from ..errors import Errors from ..util import ensure_path, to_disk, from_disk from ..tokens import Doc, Span from ..matcher import Matcher, PhraseMatcher +from ..scorer import Scorer DEFAULT_ENT_ID_SEP = "||" diff --git a/spacy/pipeline/simple_ner.py b/spacy/pipeline/simple_ner.py index ddb85fce0..ec7ab6b7a 100644 --- a/spacy/pipeline/simple_ner.py +++ b/spacy/pipeline/simple_ner.py @@ -8,6 +8,7 @@ from ..gold import Example, spans_from_biluo_tags, iob_to_biluo, biluo_to_iob from ..tokens import Doc from ..language import Language from ..vocab import Vocab +from ..scorer import Scorer from .. import util from .pipe import Pipe