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