Fix test imports

This commit is contained in:
Ines Montani 2019-09-29 17:34:56 +02:00
parent 0a3c825c56
commit 0226b3bf0e
4 changed files with 11 additions and 12 deletions

View File

@ -1,12 +1,12 @@
# coding: utf-8
from __future__ import unicode_literals
from ...pipeline import EntityRecognizer
from ..util import get_doc
from ...tokens import Span
from spacy.pipeline import EntityRecognizer
from spacy.tokens import Span
import pytest
from ..util import get_doc
def test_doc_add_entities_set_ents_iob(en_vocab):
text = ["This", "is", "a", "lion"]

View File

@ -2,14 +2,13 @@
from __future__ import unicode_literals
import spacy
from spacy.pipeline import EntityRecognizer, EntityRuler
from spacy.lang.en import English
from spacy.tests.util import make_tempdir
from spacy.tokens import Span
from spacy.util import ensure_path
from ..util import make_tempdir
def test_issue4042():
"""Test that serialization of an EntityRuler before NER works fine."""

View File

@ -2,12 +2,12 @@
from __future__ import unicode_literals
from spacy.vocab import Vocab
import spacy
from spacy.lang.en import English
from spacy.tests.util import make_tempdir
from spacy.util import ensure_path
from ..util import make_tempdir
def test_issue4054(en_vocab):
"""Test that a new blank model can be made with a vocab from file,

View File

@ -1,11 +1,11 @@
# coding: utf-8
from __future__ import unicode_literals
from ..util import make_tempdir
from ...util import ensure_path
from spacy.util import ensure_path
from spacy.kb import KnowledgeBase
from ..util import make_tempdir
def test_serialize_kb_disk(en_vocab):
# baseline assertions