spaCy/website/docs/usage
Robyn Speer d60b748e3c
Fix surprises when asking for the root of a git repo (#9074)
* Fix surprises when asking for the root of a git repo

In the case of the first asset I wanted to get from git, the data I
wanted was the entire repository. I tried leaving "path" blank, which
gave a less-than-helpful error, and then I tried `path: "/"`, which
started copying my entire filesystem into the project. The path I should
have used was "".

I've made two changes to make this smoother for others:

- The 'path' within a git clone defaults to ""
- If the path points outside of the tmpdir that the git clone goes
into, we fail with an error

Signed-off-by: Elia Robyn Speer <elia@explosion.ai>

* use a descriptive error instead of a default

plus some minor fixes from PR review

Signed-off-by: Elia Robyn Speer <elia@explosion.ai>

* check for None values in assets

Signed-off-by: Elia Robyn Speer <elia@explosion.ai>

Co-authored-by: Elia Robyn Speer <elia@explosion.ai>
2021-09-01 22:52:08 +02:00
..
101 Update _training.md - Fix broken link on backpropagation (#7431) 2021-03-15 09:21:35 +01:00
_benchmarks-models.md final 3.0 benchmark numbers 2021-02-09 21:28:33 +01:00
embeddings-transformers.md Fix pretraining objectives fragment (#8005) 2021-05-06 08:27:36 +02:00
facts-figures.md final 3.0 benchmark numbers 2021-02-09 21:28:33 +01:00
index.md Add support for CUDA 11.2 (#7583) 2021-03-30 09:47:33 +02:00
layers-architectures.md Resizable textcat (#7862) 2021-06-16 11:45:00 +02:00
linguistic-features.md Typo fixes 2021-07-07 16:53:04 -06:00
models.md Fix a command typo in models.md 2021-07-05 18:44:18 -07:00
processing-pipelines.md Fix silent evaluation (#8581) 2021-07-06 14:16:19 +02:00
projects.md Fix surprises when asking for the root of a git repo (#9074) 2021-09-01 22:52:08 +02:00
rule-based-matching.md Support list values and INTERSECTS in Matcher (#8784) 2021-08-02 19:39:26 +02:00
saving-loading.md Update saving/loading example 2021-03-18 16:56:10 +01:00
spacy-101.md Merge branch 'master' into develop 2020-12-11 13:44:41 +11:00
training.md Document use-case of freezing tok2vec (#8992) 2021-08-26 09:50:35 +02:00
v2-1.md Merge branch 'spacy.io' [ci skip] 2021-03-06 17:38:54 +11:00
v2-2.md Update v3 docs [ci skip] 2020-07-05 16:11:16 +02:00
v2-3.md Merge branch 'spacy.io' [ci skip] 2021-03-06 17:38:54 +11:00
v2.md Merge branch 'spacy.io' [ci skip] 2021-03-06 17:38:54 +11:00
v3-1.md Update v3.1 usage docs 2021-07-07 08:43:33 +02:00
v3.md Update website/docs/usage/v3.md 2021-07-29 14:56:56 +09:00
visualizers.md Proofread remarks 2020-10-19 11:11:32 +02:00