From 7b7d46b64e7d693eabc8951eaefb3ecdeafcc3f3 Mon Sep 17 00:00:00 2001 From: ines Date: Sun, 4 Jun 2017 13:45:50 +0200 Subject: [PATCH] Fix typo and success message --- spacy/cli/link.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/cli/link.py b/spacy/cli/link.py index 66824c042..a8ee01565 100644 --- a/spacy/cli/link.py +++ b/spacy/cli/link.py @@ -21,7 +21,7 @@ def link(cmd, origin, link_name, force=False): directory. Linking models allows loading them via spacy.load(link_name). """ if util.is_package(origin): - model_path = util.get_package_path(model) + model_path = util.get_package_path(origin) else: model_path = Path(origin) if not model_path.exists(): @@ -45,5 +45,5 @@ def link(cmd, origin, link_name, force=False): title="Error: Couldn't link model to '%s'" % link_name) raise prints("%s --> %s" % (path2str(model_path), path2str(link_path)), - "You can now load the model via spacy.load('%s')." % link_name, + "You can now load the model via spacy.load('%s')" % link_name, title="Linking successful")