From c91f451b0f262a3592d88ab5cd5950dcd0283bfc Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Thu, 7 Dec 2017 10:03:07 +0100 Subject: [PATCH] Fix imports and CLI in init-model --- spacy/cli/init_model.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/spacy/cli/init_model.py b/spacy/cli/init_model.py index 3770357d1..e124b6926 100644 --- a/spacy/cli/init_model.py +++ b/spacy/cli/init_model.py @@ -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) )