mirror of
https://github.com/explosion/spaCy.git
synced 2025-02-04 21:50:35 +03:00
Fix formatting
This commit is contained in:
parent
24e80c51b8
commit
5eaa61c2b8
|
@ -27,8 +27,10 @@ from ..util import prints, ensure_path, get_lang_class
|
||||||
"option", "V", int)
|
"option", "V", int)
|
||||||
)
|
)
|
||||||
def init_model(lang, output_dir, freqs_loc, clusters_loc=None, vectors_loc=None, prune_vectors=-1):
|
def init_model(lang, output_dir, freqs_loc, clusters_loc=None, vectors_loc=None, prune_vectors=-1):
|
||||||
"""Create a new model from raw data, like word frequencies, Brown clusters
|
"""
|
||||||
and word vectors."""
|
Create a new model from raw data, like word frequencies, Brown clusters
|
||||||
|
and word vectors.
|
||||||
|
"""
|
||||||
if not freqs_loc.exists():
|
if not freqs_loc.exists():
|
||||||
prints(freqs_loc, title="Can't find words frequencies file", exits=1)
|
prints(freqs_loc, title="Can't find words frequencies file", exits=1)
|
||||||
clusters_loc = ensure_path(clusters_loc)
|
clusters_loc = ensure_path(clusters_loc)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user