diff --git a/setup.py b/setup.py index ea98f0b54..47c82b014 100755 --- a/setup.py +++ b/setup.py @@ -41,8 +41,8 @@ MOD_NAMES = [ "spacy.vocab", "spacy.attrs", "spacy.morphology", - "spacy._morphologizer", "spacy.pipeline.pipes", + "spacy.pipelines.morphologizer", "spacy.syntax.stateclass", "spacy.syntax._state", "spacy.tokenizer", diff --git a/spacy/language.py b/spacy/language.py index ed6dc64dc..b90fa8486 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -18,7 +18,7 @@ from .pipeline import DependencyParser, Tensorizer, Tagger, EntityRecognizer from .pipeline import SimilarityHook, TextCategorizer, SentenceSegmenter from .pipeline import merge_noun_chunks, merge_entities, merge_subtokens from .pipeline import EntityRuler -from ._morphologizer import Morphologizer +from .pipeline import Morphologizer from .compat import izip, basestring_ from .gold import GoldParse from .scorer import Scorer diff --git a/spacy/pipeline/__init__.py b/spacy/pipeline/__init__.py index d683cc989..36b9b8d46 100644 --- a/spacy/pipeline/__init__.py +++ b/spacy/pipeline/__init__.py @@ -3,6 +3,7 @@ from __future__ import unicode_literals from .pipes import Tagger, DependencyParser, EntityRecognizer # noqa from .pipes import TextCategorizer, Tensorizer, Pipe # noqa +from .morphologizer import Morphologizer from .entityruler import EntityRuler # noqa from .hooks import SentenceSegmenter, SimilarityHook # noqa from .functions import merge_entities, merge_noun_chunks, merge_subtokens # noqa