From aa4d964c1431b4ff2e633e1e55940733089c1a88 Mon Sep 17 00:00:00 2001 From: Henning Peters Date: Sat, 5 Mar 2016 17:51:32 +0100 Subject: [PATCH] cleanup api --- spacy/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spacy/__init__.py b/spacy/__init__.py index 191d5970c..ef9fb18cf 100644 --- a/spacy/__init__.py +++ b/spacy/__init__.py @@ -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))