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