mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 09:26:27 +03:00
Fix imports and CLI in init-model
This commit is contained in:
parent
82e80ff928
commit
c91f451b0f
|
@ -9,20 +9,20 @@ from ast import literal_eval
|
|||
from pathlib import Path
|
||||
from preshed.counter import PreshCounter
|
||||
|
||||
from ...compat import fix_text
|
||||
from ...vectors import Vectors
|
||||
from ...util import prints, ensure_path, get_lang_class
|
||||
from ..compat import fix_text
|
||||
from ..vectors import Vectors
|
||||
from ..util import prints, ensure_path, get_lang_class
|
||||
|
||||
|
||||
@plac.annotations(
|
||||
lang=("model language", "positional", None, str),
|
||||
output_dir=("model output directory", "positional", None, Path),
|
||||
freqs_loc=("location of words frequencies file", "positional",
|
||||
None, Path),
|
||||
"f", Path),
|
||||
clusters_loc=("optional: location of brown clusters data",
|
||||
"option", None, str),
|
||||
"option", "c", str),
|
||||
vectors_loc=("optional: location of vectors file in GenSim text format",
|
||||
"option", None, str),
|
||||
"option", "v", str),
|
||||
prune_vectors=("optional: number of vectors to prune to",
|
||||
"option", "V", int)
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user