From 63abdf154c103c90e382b6d23dd99851745c2de6 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sat, 31 Jan 2015 22:48:32 +1100 Subject: [PATCH] * Hastily hack download file --- spacy/en/download.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/spacy/en/download.py b/spacy/en/download.py index 104700e27..0355092c1 100644 --- a/spacy/en/download.py +++ b/spacy/en/download.py @@ -44,11 +44,8 @@ def main(data_size='all'): data_url = ALL_DATA_DIR_URL elif data_size == 'small': data_url = SM_DATA_DIR_URL - if not path.exists(DEST_DIR): - install_data(data_url, path.dirname(DEST_DIR)) - else: - install_parser_model(PARSER_URL, DEST_DIR) - install_dep_vectors(DEP_VECTORS_URL, path.join(DEST_DIR, 'vocab')) + shutil.move(DEST_DIR, '/tmp') + install_data(data_url, path.dirname(DEST_DIR)) if __name__ == '__main__':