mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
cleanup api
This commit is contained in:
parent
931c07a609
commit
aa4d964c14
|
@ -2,7 +2,7 @@ from . import util
|
|||
from .en import English
|
||||
|
||||
|
||||
def load(name, via=None, vectors_name=None):
|
||||
package = util.get_package_by_name(name, via=via)
|
||||
vectors_package = util.get_package_by_name(vectors_name, via=via)
|
||||
return English(package=package, vectors_package=vectors_package)
|
||||
def load(name, vectors=None, via=None):
|
||||
return English(
|
||||
package=util.get_package_by_name(name, via=via),
|
||||
vectors_package=util.get_package_by_name(vectors_name, via=via))
|
||||
|
|
Loading…
Reference in New Issue
Block a user