mirror of
https://github.com/explosion/spaCy.git
synced 2025-05-02 23:03:41 +03:00
Try to fix weird install glitch.
This commit is contained in:
parent
90f7544edd
commit
e7414cd064
|
@ -1,17 +1,23 @@
|
||||||
import plac
|
import plac
|
||||||
|
import sputnik
|
||||||
|
|
||||||
from ..download import download
|
from ..download import download
|
||||||
|
from .. import about
|
||||||
|
|
||||||
|
|
||||||
@plac.annotations(
|
@plac.annotations(
|
||||||
force=("Force overwrite", "flag", "f", bool),
|
force=("Force overwrite", "flag", "f", bool),
|
||||||
)
|
)
|
||||||
def main(data_size='all', force=False):
|
def main(data_size='all', force=False):
|
||||||
|
if force:
|
||||||
|
sputnik.purge(about.__title__, about.__version__)
|
||||||
|
|
||||||
if data_size in ('all', 'parser'):
|
if data_size in ('all', 'parser'):
|
||||||
print("Downloading parsing model")
|
print("Downloading parsing model")
|
||||||
download('en', force)
|
download('en', False)
|
||||||
if data_size in ('all', 'glove'):
|
if data_size in ('all', 'glove'):
|
||||||
print("Downloading GloVe vectors")
|
print("Downloading GloVe vectors")
|
||||||
download('en_glove_cc_300_1m_vectors', force)
|
download('en_glove_cc_300_1m_vectors', False)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Reference in New Issue
Block a user