From 0299d5fac82cf1fb8f8d1caaa4d6fb5048bb5520 Mon Sep 17 00:00:00 2001 From: ines Date: Tue, 10 Apr 2018 21:45:11 +0200 Subject: [PATCH] Update argument annotations and formatting --- spacy/cli/init_model.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/spacy/cli/init_model.py b/spacy/cli/init_model.py index 8fc4c5645..87c3033ad 100644 --- a/spacy/cli/init_model.py +++ b/spacy/cli/init_model.py @@ -29,12 +29,14 @@ except ImportError: freqs_loc=("location of words frequencies file", "positional", None, Path), clusters_loc=("optional: location of brown clusters data", "option", "c", str), - vectors_loc=("optional: location of vectors file in GenSim text format", - "option", "v", str), + vectors_loc=("optional: location of vectors file in Word2Vec format " + "(either as .txt or zipped as .zip or .tar.gz)", "option", + "v", str), prune_vectors=("optional: number of vectors to prune to", "option", "V", int) ) -def init_model(lang, output_dir, freqs_loc=None, clusters_loc=None, vectors_loc=None, prune_vectors=-1): +def init_model(lang, output_dir, freqs_loc=None, clusters_loc=None, + vectors_loc=None, prune_vectors=-1): """ Create a new model from raw data, like word frequencies, Brown clusters and word vectors.