mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +03:00
19 lines
453 B
Python
19 lines
453 B
Python
import plac
|
|
from ..download import download
|
|
|
|
|
|
@plac.annotations(
|
|
force=("Force overwrite", "flag", "f", bool),
|
|
)
|
|
def main(data_size='all', force=False):
|
|
if data_size in ('all', 'parser'):
|
|
print("Downloading parsing model")
|
|
download('en', force)
|
|
if data_size in ('all', 'glove'):
|
|
print("Downloading GloVe vectors")
|
|
download('en_glove_cc_300_1m_vectors', force)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
plac.call(main)
|