From e7414cd0649aba0a8ffa599157db2083d5d28b08 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 23 Oct 2016 19:46:28 +0200 Subject: [PATCH] Try to fix weird install glitch. --- spacy/en/download.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/spacy/en/download.py b/spacy/en/download.py index 064aaf2da..bf3815769 100644 --- a/spacy/en/download.py +++ b/spacy/en/download.py @@ -1,17 +1,23 @@ import plac +import sputnik + from ..download import download +from .. import about @plac.annotations( force=("Force overwrite", "flag", "f", bool), ) def main(data_size='all', force=False): + if force: + sputnik.purge(about.__title__, about.__version__) + if data_size in ('all', 'parser'): print("Downloading parsing model") - download('en', force) + download('en', False) if data_size in ('all', 'glove'): print("Downloading GloVe vectors") - download('en_glove_cc_300_1m_vectors', force) + download('en_glove_cc_300_1m_vectors', False) if __name__ == '__main__':