mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 17:06:29 +03:00
Fix whitespace
This commit is contained in:
parent
e1efd589c3
commit
35fb4febe2
|
@ -18,7 +18,6 @@ def info(model=None, markdown=False):
|
|||
else:
|
||||
data['source'] = str(model_path)
|
||||
print_info(data, "model " + model, markdown)
|
||||
|
||||
else:
|
||||
data = get_spacy_data()
|
||||
print_info(data, "spaCy", markdown)
|
||||
|
@ -26,10 +25,8 @@ def info(model=None, markdown=False):
|
|||
|
||||
def print_info(data, title, markdown):
|
||||
title = "Info about {title}".format(title=title)
|
||||
|
||||
if markdown:
|
||||
util.print_markdown(data, title=title)
|
||||
|
||||
else:
|
||||
util.print_table(data, title=title)
|
||||
|
||||
|
|
|
@ -21,7 +21,6 @@ def link_package(package_name, link_name, force=False):
|
|||
# Python's installation and import rules are very complicated.
|
||||
pkg = importlib.import_module(package_name)
|
||||
package_path = Path(pkg.__file__).parent.parent
|
||||
|
||||
meta = get_meta(package_path, package_name)
|
||||
model_name = package_name + '-' + meta['version']
|
||||
model_path = package_path / package_name / model_name
|
||||
|
|
Loading…
Reference in New Issue
Block a user