spaCy/spacy/en/download.py

16 lines
375 B
Python
Raw Normal View History

2015-11-15 14:58:21 +00:00
import plac
from ..download import download
@plac.annotations(
force=("Force overwrite", "flag", "f", bool),
2016-10-18 22:41:14 +00:00
ignore_glove=("Don't install the GloVe vectors", "flag", "g", bool),
)
2016-10-18 22:41:14 +00:00
def main(data_size='all', force=False, ignore_glove=False):
download('en', force)
2016-10-18 22:41:14 +00:00
download('en_glove_cc_300_1m_vectors', force)
2015-01-02 10:44:41 +00:00
if __name__ == '__main__':
2015-01-31 02:51:56 +00:00
plac.call(main)