Better cached path
CONTRIBUTOR
I should have read this PR before doing my own: https://github.com/huggingface/nlp/pull/62 :D 
will close mine. Looks great :-) 
2020-05-08T09:45:23Z
https://github.com/huggingface/datasets/pull/57#issuecomment-625734992
https://api.github.com/repos/huggingface/datasets/issues/57
MDEyOklzc3VlQ29tbWVudDYyNTczNDk5Mg==
https://api.github.com/repos/huggingface/datasets/issues/comments/625734992/reactions
2020-05-08T09:45:23Z
https://api.github.com/repos/huggingface/datasets/issues/comments/625734992
https://avatars.githubusercontent.com/u/23423619?v=4
https://api.github.com/users/patrickvonplaten/events{/privacy}
https://api.github.com/users/patrickvonplaten/followers
https://api.github.com/users/patrickvonplaten/following{/other_user}
https://api.github.com/users/patrickvonplaten/gists{/gist_id}
https://github.com/patrickvonplaten
patrickvonplaten
MDQ6VXNlcjIzNDIzNjE5
https://api.github.com/users/patrickvonplaten/orgs
https://api.github.com/users/patrickvonplaten/received_events
https://api.github.com/users/patrickvonplaten/repos
https://api.github.com/users/patrickvonplaten/starred{/owner}{/repo}
https://api.github.com/users/patrickvonplaten/subscriptions
User
https://api.github.com/users/patrickvonplaten
public
CONTRIBUTOR
> Awesome, this is really nice!
> 
> By the way, we should improve the `cached_path` method of the `transformers` repo similarly, don't you think (@patrickvonplaten in particular).

Yeah, we should do the same in `transformers` I think - will note it down.
2020-05-08T09:46:13Z
https://github.com/huggingface/datasets/pull/57#issuecomment-625735293
https://api.github.com/repos/huggingface/datasets/issues/57
MDEyOklzc3VlQ29tbWVudDYyNTczNTI5Mw==
https://api.github.com/repos/huggingface/datasets/issues/comments/625735293/reactions
2020-05-08T09:46:13Z
https://api.github.com/repos/huggingface/datasets/issues/comments/625735293
https://avatars.githubusercontent.com/u/23423619?v=4
https://api.github.com/users/patrickvonplaten/events{/privacy}
https://api.github.com/users/patrickvonplaten/followers
https://api.github.com/users/patrickvonplaten/following{/other_user}
https://api.github.com/users/patrickvonplaten/gists{/gist_id}
https://github.com/patrickvonplaten
patrickvonplaten
MDQ6VXNlcjIzNDIzNjE5
https://api.github.com/users/patrickvonplaten/orgs
https://api.github.com/users/patrickvonplaten/received_events
https://api.github.com/users/patrickvonplaten/repos
https://api.github.com/users/patrickvonplaten/starred{/owner}{/repo}
https://api.github.com/users/patrickvonplaten/subscriptions
User
https://api.github.com/users/patrickvonplaten
public
### Changes:
- The `cached_path` no longer returns None if the file is missing/the url doesn't work. Instead, it can raise `FileNotFoundError` (missing file), `ConnectionError` (no cache and unreachable url) or `ValueError` (parsing error)
- Fix requests to firebase API that doesn't handle HEAD requests...
- Allow custom download in datasets script: it allows to use `tf.io.gfile.copy` for example, to download from google storage. I added an example: the `boolq` script