From 75a637fa439893d4d60e23a9aa3e2af241faf84a Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Fri, 27 Oct 2017 10:19:56 +0000 Subject: [PATCH] Remove redundant imports from _ml --- spacy/pipeline.pyx | 2 +- spacy/syntax/nn_parser.pyx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/pipeline.pyx b/spacy/pipeline.pyx index 7c1976dfa..685c8ee00 100644 --- a/spacy/pipeline.pyx +++ b/spacy/pipeline.pyx @@ -42,7 +42,7 @@ from .syntax import nonproj from .compat import json_dumps from .attrs import ID, LOWER, PREFIX, SUFFIX, SHAPE, TAG, DEP, POS -from ._ml import rebatch, Tok2Vec, flatten +from ._ml import Tok2Vec, flatten from ._ml import build_text_classifier, build_tagger_model from ._ml import link_vectors_to_models from .parts_of_speech import X diff --git a/spacy/syntax/nn_parser.pyx b/spacy/syntax/nn_parser.pyx index 96fdbab6d..773ab4e63 100644 --- a/spacy/syntax/nn_parser.pyx +++ b/spacy/syntax/nn_parser.pyx @@ -47,7 +47,7 @@ from thinc.neural.util import get_array_module from .. import util from ..util import get_async, get_cuda_stream from .._ml import zero_init, PrecomputableAffine -from .._ml import Tok2Vec, doc2feats, rebatch +from .._ml import Tok2Vec, doc2feats from .._ml import Residual, drop_layer, flatten from .._ml import link_vectors_to_models from .._ml import HistoryFeatures