mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 17:06:29 +03:00
Fix typo and success message
This commit is contained in:
parent
586e901143
commit
7b7d46b64e
|
@ -21,7 +21,7 @@ def link(cmd, origin, link_name, force=False):
|
||||||
directory. Linking models allows loading them via spacy.load(link_name).
|
directory. Linking models allows loading them via spacy.load(link_name).
|
||||||
"""
|
"""
|
||||||
if util.is_package(origin):
|
if util.is_package(origin):
|
||||||
model_path = util.get_package_path(model)
|
model_path = util.get_package_path(origin)
|
||||||
else:
|
else:
|
||||||
model_path = Path(origin)
|
model_path = Path(origin)
|
||||||
if not model_path.exists():
|
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)
|
title="Error: Couldn't link model to '%s'" % link_name)
|
||||||
raise
|
raise
|
||||||
prints("%s --> %s" % (path2str(model_path), path2str(link_path)),
|
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")
|
title="Linking successful")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user