mirror of https://github.com/explosion/spaCy.git
Make deprecated disable_pipes call into select_pipes
This commit is contained in:
parent
15d73f4dc3
commit
e0b4984aa4
|
@ -938,7 +938,7 @@ class Language:
|
||||||
warnings.warn(Warnings.W096, DeprecationWarning)
|
warnings.warn(Warnings.W096, DeprecationWarning)
|
||||||
if len(names) == 1 and isinstance(names[0], (list, tuple)):
|
if len(names) == 1 and isinstance(names[0], (list, tuple)):
|
||||||
names = names[0] # support list of names instead of spread
|
names = names[0] # support list of names instead of spread
|
||||||
return DisabledPipes(self, names)
|
return self.select_pipes(disable=names)
|
||||||
|
|
||||||
def select_pipes(
|
def select_pipes(
|
||||||
self,
|
self,
|
||||||
|
|
Loading…
Reference in New Issue