From eb7ae61b1c6cafadc55743cfc733c73c73c0fa3f Mon Sep 17 00:00:00 2001 From: Henning Peters Date: Tue, 8 Mar 2016 12:59:18 +0100 Subject: [PATCH] cleanup api --- spacy/__init__.py | 2 +- spacy/util.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spacy/__init__.py b/spacy/__init__.py index ef9fb18cf..70e72b7a1 100644 --- a/spacy/__init__.py +++ b/spacy/__init__.py @@ -5,4 +5,4 @@ from .en import English 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)) + vectors_package=util.get_package_by_name(vectors, via=via)) diff --git a/spacy/util.py b/spacy/util.py index 7a5a1aa0c..bcc55c656 100644 --- a/spacy/util.py +++ b/spacy/util.py @@ -25,9 +25,9 @@ def get_package_by_name(name=None, via=None): return sputnik.package(about.__title__, about.__version__, name or about.__default_model__, data_path=via) except PackageNotFoundException as e: - raise RuntimeError("Model not installed. Please run 'python -m " + raise RuntimeError("Model %s not installed. Please run 'python -m " "spacy.en.download' to install latest compatible " - "model.") + "model." % name) except CompatiblePackageNotFoundException as e: raise RuntimeError("Installed model is not compatible with spaCy " "version. Please run 'python -m spacy.en.download "