spaCy/website/api
Ines Montani d4cc736b7c 💫 Improve model downloads: check for existing install, customise pip and use requests library again (#2346)
* Go back to using requests instead of urllib (closes #2320)

Fewer dependencies are good, but this one was simply causing too many other problems around SSL verification and Python 2/3 compatibility. requests is a popular enough package that it's okay for spaCy to depend on it – and this will hopefully make model downloads less flakey.

* Only download model if not installed (see #1456)

Use #egg=model==version to allow pip to check for existing installations. The download is only started if no installation matching the package/version is found. Fixes a long-standing inconvenience.

* Pass additional options to pip when installing model (resolves #1456)

Treat all additional arguments passed to the download command as pip options to allow user to customise the command. For example:

python -m spacy download en --user

* Add CLI option to enable installing model package dependencies

* Revert "Add CLI option to enable installing model package dependencies"

This reverts commit 9336ffe695.

* Update documentation
2018-05-20 20:26:56 +02:00
..
_annotation Fix the code for FACILITIY entities (#2324) 2018-05-12 15:19:17 +02:00
_architecture 💫 Interactive code examples, spaCy Universe and various docs improvements (#2274) 2018-04-29 02:06:46 +02:00
_top-level Remove upcoming option from docs for now 2018-04-28 23:32:18 +02:00
_data.json Update and simplify other annotation scheme data 2017-11-05 16:09:48 +01:00
annotation.jade Update and simplify other annotation scheme data 2017-11-05 16:09:48 +01:00
cli.jade 💫 Improve model downloads: check for existing install, customise pip and use requests library again (#2346) 2018-05-20 20:26:56 +02:00
dependencyparser.jade Add notes on pipe template inheritance in docs 2017-10-26 12:57:32 +02:00
doc.jade Fix code sample for Doc.set_extension (#2282) 2018-05-02 10:16:05 +02:00
entityrecognizer.jade Add notes on pipe template inheritance in docs 2017-10-26 12:57:32 +02:00
goldcorpus.jade Port over docs changes [ci skip] 2018-03-24 17:12:48 +01:00
goldparse.jade Update goldparse.jade 2018-01-03 17:25:21 +05:30
index.jade Update API documentation 2017-10-03 14:27:22 +02:00
language.jade Get docs ready for v2.0.0 2017-11-07 12:00:43 +01:00
lemmatizer.jade Document lemmatizer 2017-10-24 16:00:56 +02:00
lexeme.jade Port over docs changes [ci skip] 2018-03-24 17:12:48 +01:00
matcher.jade Port over docs changes [ci skip] 2018-03-24 17:12:48 +01:00
phrasematcher.jade Fixes typo in PhraseMatcher API docs 2018-01-11 17:35:59 +01:00
pipe.jade Port over docs changes [ci skip] 2018-03-24 17:12:48 +01:00
span.jade Fix code sample for span.set_extension (#2286) 2018-05-03 00:39:22 +02:00
stringstore.jade Update API documentation 2017-10-03 14:27:22 +02:00
tagger.jade Add notes on pipe template inheritance in docs 2017-10-26 12:57:32 +02:00
textcategorizer.jade Don't document the tensorizer for now 2017-11-01 19:49:04 +01:00
token.jade Port over docs changes [ci skip] 2018-03-24 17:12:48 +01:00
tokenizer.jade Update API documentation 2017-10-03 14:27:22 +02:00
top-level.jade Move CLI docs to own page 2017-10-30 19:39:26 +01:00
vectors.jade Document Vectors.resize() and update v2 incompatibilities (resolves #1514) 2017-11-08 17:11:11 +01:00
vocab.jade Change clear_vectors to reset_vectors (resolves #1516) 2017-11-08 18:11:23 +01:00