Update to simplify some datasets conversion
CONTRIBUTOR
Awesome! 
2020-05-08T09:32:09Z
https://github.com/huggingface/datasets/pull/60#issuecomment-625730016
https://api.github.com/repos/huggingface/datasets/issues/60
MDEyOklzc3VlQ29tbWVudDYyNTczMDAxNg==
https://api.github.com/repos/huggingface/datasets/issues/comments/625730016/reactions
2020-05-08T09:32:09Z
https://api.github.com/repos/huggingface/datasets/issues/comments/625730016
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
Also we should convert `tf.io.gfile.exists` into `os.path.exists` , `tf.io.gfile.listdir`into `os.listdir` and `tf.io.gfile.glob`  into `glob.glob` (will need to add `import glob`)
2020-05-08T09:55:13Z
https://github.com/huggingface/datasets/pull/60#issuecomment-625738556
https://api.github.com/repos/huggingface/datasets/issues/60
MDEyOklzc3VlQ29tbWVudDYyNTczODU1Ng==
https://api.github.com/repos/huggingface/datasets/issues/comments/625738556/reactions
2020-05-08T09:55:13Z
https://api.github.com/repos/huggingface/datasets/issues/comments/625738556
https://avatars.githubusercontent.com/u/38249783?v=4
https://api.github.com/users/mariamabarham/events{/privacy}
https://api.github.com/users/mariamabarham/followers
https://api.github.com/users/mariamabarham/following{/other_user}
https://api.github.com/users/mariamabarham/gists{/gist_id}
https://github.com/mariamabarham
mariamabarham
MDQ6VXNlcjM4MjQ5Nzgz
https://api.github.com/users/mariamabarham/orgs
https://api.github.com/users/mariamabarham/received_events
https://api.github.com/users/mariamabarham/repos
https://api.github.com/users/mariamabarham/starred{/owner}{/repo}
https://api.github.com/users/mariamabarham/subscriptions
User
https://api.github.com/users/mariamabarham
public
CONTRIBUTOR
> Also we should convert `tf.io.gfile.exists` into `os.path.exists` , `tf.io.gfile.listdir`into `os.listdir` and `tf.io.gfile.glob` into `glob.glob` (will need to add `import glob`)

We should probably open a new PR about this
2020-05-08T10:18:44Z
https://github.com/huggingface/datasets/pull/60#issuecomment-625747106
https://api.github.com/repos/huggingface/datasets/issues/60
MDEyOklzc3VlQ29tbWVudDYyNTc0NzEwNg==
https://api.github.com/repos/huggingface/datasets/issues/comments/625747106/reactions
2020-05-08T10:18:44Z
https://api.github.com/repos/huggingface/datasets/issues/comments/625747106
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
I think it might be a good idea to both change the supervised keys to a named tuple and also handle the translation features specifically.
2020-05-08T10:33:34Z
https://github.com/huggingface/datasets/pull/60#issuecomment-625752474
https://api.github.com/repos/huggingface/datasets/issues/60
MDEyOklzc3VlQ29tbWVudDYyNTc1MjQ3NA==
https://api.github.com/repos/huggingface/datasets/issues/comments/625752474/reactions
2020-05-08T10:33:34Z
https://api.github.com/repos/huggingface/datasets/issues/comments/625752474
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
Just noticed that `pyarrow` apparently does not have a `is_boolean` function. Or do I have the wrong `pyarrow` version? 
2020-05-08T10:36:56Z
https://github.com/huggingface/datasets/pull/60#issuecomment-625753647
https://api.github.com/repos/huggingface/datasets/issues/60
MDEyOklzc3VlQ29tbWVudDYyNTc1MzY0Nw==
https://api.github.com/repos/huggingface/datasets/issues/comments/625753647/reactions
2020-05-08T10:36:56Z
https://api.github.com/repos/huggingface/datasets/issues/comments/625753647
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
Ah, it was a typo `pa.types.is_boolean` is the correct name. Will fix in: https://github.com/huggingface/nlp/pull/59
2020-05-08T10:38:31Z
https://github.com/huggingface/datasets/pull/60#issuecomment-625754153
https://api.github.com/repos/huggingface/datasets/issues/60
MDEyOklzc3VlQ29tbWVudDYyNTc1NDE1Mw==
https://api.github.com/repos/huggingface/datasets/issues/comments/625754153/reactions
2020-05-08T10:38:31Z
https://api.github.com/repos/huggingface/datasets/issues/comments/625754153
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
This PR updates the encoding of `Values` like `integers`, `boolean` and `float` to use python casting and avoid having to cast in the dataset scripts, as mentioned here: https://github.com/huggingface/nlp/pull/37#discussion_r420176626

We could also change (not included in this PR yet):
- `supervized_keys` to make them a NamedTuple instead of a dataclass, and
- handle specifically the `Translation` features.
as mentioned here: https://github.com/huggingface/nlp/pull/37#discussion_r421740236

@patrickvonplaten @mariamabarham tell me if you want these two last changes as well.