Fix vocab script

This commit is contained in:
Explosion Bot 2017-10-30 16:19:22 +01:00
parent b46bdce8d2
commit 05a1dd570e
1 changed files with 2 additions and 4 deletions

View File

@ -18,10 +18,8 @@ from spacy.util import ensure_path
vectors_loc=("location of vectors data, as numpy .npz (optional)",
"positional", None, str),
version=("Model version", "option", "V", str),
meta_path=("Optional path to meta.json. All relevant properties will be "
"overwritten.", "option", "m", Path))
def make_vocab(lang, output_dir, lexemes_loc, vectors_loc=None):
)
def make_vocab(lang, output_dir, lexemes_loc, vectors_loc=None, version=None):
out_dir = ensure_path(output_dir)
jsonl_loc = ensure_path(lexemes_loc)
nlp = spacy.blank(lang)