Add FreebaseQA dataset
CONTRIBUTOR
@yjernite @lhoestq Any suggestions on how to get the dummy data generator to recognize the columns? The structure of the json is:
```
{
  "Dataset": "FreebaseQA-eval", 
  "Version": "1.0", 
  "Questions": [
    {
      "Question-ID": "FreebaseQA-eval-0", 
      "RawQuestion": "Who is the female presenter of the Channel 4 quiz show '1001 things you should know'?", 
      "ProcessedQuestion": "who is the female presenter of the channel 4 quiz show '1001 things you should know'", 
      "Parses": [
        {
          "Parse-Id": "FreebaseQA-eval-0.P0", 
          "PotentialTopicEntityMention": "1001 things you should know", 
          "TopicEntityName": "1001 things you should know", 
          "TopicEntityMid": "m.0nd3t34", 
          "InferentialChain": "tv.tv_program.regular_personal_appearances..tv.tv_regular_personal_appearance.person", 
          "Answers": [
            {
              "AnswersMid": "m.0216y_", 
              "AnswersName": [
                "sandi toksvig"
              ]
            }
          ]
        }
      ]
    }, 
   ...
  ]
}
```

Thanks!
2020-12-10T04:07:11Z
https://github.com/huggingface/datasets/pull/1435#issuecomment-742225443
https://api.github.com/repos/huggingface/datasets/issues/1435
MDEyOklzc3VlQ29tbWVudDc0MjIyNTQ0Mw==
https://api.github.com/repos/huggingface/datasets/issues/comments/742225443/reactions
2020-12-10T14:50:13Z
https://api.github.com/repos/huggingface/datasets/issues/comments/742225443
https://avatars.githubusercontent.com/u/3663322?v=4
https://api.github.com/users/anaerobeth/events{/privacy}
https://api.github.com/users/anaerobeth/followers
https://api.github.com/users/anaerobeth/following{/other_user}
https://api.github.com/users/anaerobeth/gists{/gist_id}
https://github.com/anaerobeth
anaerobeth
MDQ6VXNlcjM2NjMzMjI=
https://api.github.com/users/anaerobeth/orgs
https://api.github.com/users/anaerobeth/received_events
https://api.github.com/users/anaerobeth/repos
https://api.github.com/users/anaerobeth/starred{/owner}{/repo}
https://api.github.com/users/anaerobeth/subscriptions
User
https://api.github.com/users/anaerobeth
public
MEMBER
Unfortunately this json structure is not recognized by the auto-generation yet, so you'd have to create the dummy data manually. 
You can get some instructions on how to do that with: `python datasets-cli dummy_data datasets/freebase_qa`
We can definitely help you with that if there are too many files! 
2020-12-10T21:51:21Z
https://github.com/huggingface/datasets/pull/1435#issuecomment-742822557
https://api.github.com/repos/huggingface/datasets/issues/1435
MDEyOklzc3VlQ29tbWVudDc0MjgyMjU1Nw==
https://api.github.com/repos/huggingface/datasets/issues/comments/742822557/reactions
2020-12-10T21:51:21Z
https://api.github.com/repos/huggingface/datasets/issues/comments/742822557
https://avatars.githubusercontent.com/u/10469459?v=4
https://api.github.com/users/yjernite/events{/privacy}
https://api.github.com/users/yjernite/followers
https://api.github.com/users/yjernite/following{/other_user}
https://api.github.com/users/yjernite/gists{/gist_id}
https://github.com/yjernite
yjernite
MDQ6VXNlcjEwNDY5NDU5
https://api.github.com/users/yjernite/orgs
https://api.github.com/users/yjernite/received_events
https://api.github.com/users/yjernite/repos
https://api.github.com/users/yjernite/starred{/owner}{/repo}
https://api.github.com/users/yjernite/subscriptions
User
https://api.github.com/users/yjernite
public
CONTRIBUTOR
@yjernite Thanks for the instructions. I manually added dummy data and created the zip file but one of the splits seem to return an empty list.

```
tests/test_dataset_common.py F                        [100%]

========================= FAILURES ==========================
_ LocalDatasetTest.test_load_dataset_all_configs_freebase_qa _

self = <tests.test_dataset_common.LocalDatasetTest testMethod=test_load_dataset_all_configs_freebase_qa>
dataset_name = 'freebase_qa'

    @slow
    def test_load_dataset_all_configs(self, dataset_name):
        configs = self.dataset_tester.load_all_configs(dataset_name, is_local=True)
>       self.dataset_tester.check_load_dataset(dataset_name, configs, is_local=True)

tests/test_dataset_common.py:237:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/test_dataset_common.py:198: in check_load_dataset
    self.parent.assertTrue(len(dataset[split]) > 0)
E   AssertionError: False is not true
```

Note that the dataset has `train`, `eval`, and `dev` (no test split). I am not sure if I am mapping them correctly when I called the Split Generator.

2020-12-11T05:08:48Z
https://github.com/huggingface/datasets/pull/1435#issuecomment-742972281
https://api.github.com/repos/huggingface/datasets/issues/1435
MDEyOklzc3VlQ29tbWVudDc0Mjk3MjI4MQ==
https://api.github.com/repos/huggingface/datasets/issues/comments/742972281/reactions
2020-12-11T05:08:48Z
https://api.github.com/repos/huggingface/datasets/issues/comments/742972281
https://avatars.githubusercontent.com/u/3663322?v=4
https://api.github.com/users/anaerobeth/events{/privacy}
https://api.github.com/users/anaerobeth/followers
https://api.github.com/users/anaerobeth/following{/other_user}
https://api.github.com/users/anaerobeth/gists{/gist_id}
https://github.com/anaerobeth
anaerobeth
MDQ6VXNlcjM2NjMzMjI=
https://api.github.com/users/anaerobeth/orgs
https://api.github.com/users/anaerobeth/received_events
https://api.github.com/users/anaerobeth/repos
https://api.github.com/users/anaerobeth/starred{/owner}{/repo}
https://api.github.com/users/anaerobeth/subscriptions
User
https://api.github.com/users/anaerobeth
public
MEMBER
The dummy json files must follow the exact same structure as the original json files.

However it looks like the dummy json files you have in your dummy_data.zip file are not structured the same way.
For example the original json is a dict with a field "Questions" that is a list of items.
However your dummy json is simply a list of items.

Can you update your dummy json files to follow the same structure ?
2020-12-14T11:09:08Z
https://github.com/huggingface/datasets/pull/1435#issuecomment-744367611
https://api.github.com/repos/huggingface/datasets/issues/1435
MDEyOklzc3VlQ29tbWVudDc0NDM2NzYxMQ==
https://api.github.com/repos/huggingface/datasets/issues/comments/744367611/reactions
2020-12-14T11:09:08Z
https://api.github.com/repos/huggingface/datasets/issues/comments/744367611
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
MEMBER
And I'm pretty sure that this structure is supported by the dummy data auto-generation tool
```
python datasets-cli dummy_data ./datasets/freebase_qa --json_field "Questions"
```
2020-12-14T11:10:35Z
https://github.com/huggingface/datasets/pull/1435#issuecomment-744368368
https://api.github.com/repos/huggingface/datasets/issues/1435
MDEyOklzc3VlQ29tbWVudDc0NDM2ODM2OA==
https://api.github.com/repos/huggingface/datasets/issues/comments/744368368/reactions
2020-12-14T11:10:35Z
https://api.github.com/repos/huggingface/datasets/issues/comments/744368368
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
MEMBER
Hi @anaerobeth did you manage to get the dummy data right ?

Feel free to ping me if you have questions or when you're ready for a review
2020-12-17T09:50:08Z
https://github.com/huggingface/datasets/pull/1435#issuecomment-747332270
https://api.github.com/repos/huggingface/datasets/issues/1435
MDEyOklzc3VlQ29tbWVudDc0NzMzMjI3MA==
https://api.github.com/repos/huggingface/datasets/issues/comments/747332270/reactions
2020-12-17T09:50:08Z
https://api.github.com/repos/huggingface/datasets/issues/comments/747332270
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
CONTRIBUTOR
Thanks for your help! I am able to create the dummy data with the dict structure as suggested. I'll add the tags and update this PR shortly.
2020-12-30T05:09:17Z
https://github.com/huggingface/datasets/pull/1435#issuecomment-752329575
https://api.github.com/repos/huggingface/datasets/issues/1435
MDEyOklzc3VlQ29tbWVudDc1MjMyOTU3NQ==
https://api.github.com/repos/huggingface/datasets/issues/comments/752329575/reactions
2020-12-30T05:09:17Z
https://api.github.com/repos/huggingface/datasets/issues/comments/752329575
https://avatars.githubusercontent.com/u/3663322?v=4
https://api.github.com/users/anaerobeth/events{/privacy}
https://api.github.com/users/anaerobeth/followers
https://api.github.com/users/anaerobeth/following{/other_user}
https://api.github.com/users/anaerobeth/gists{/gist_id}
https://github.com/anaerobeth
anaerobeth
MDQ6VXNlcjM2NjMzMjI=
https://api.github.com/users/anaerobeth/orgs
https://api.github.com/users/anaerobeth/received_events
https://api.github.com/users/anaerobeth/repos
https://api.github.com/users/anaerobeth/starred{/owner}{/repo}
https://api.github.com/users/anaerobeth/subscriptions
User
https://api.github.com/users/anaerobeth
public
MEMBER
Also don't forget to run `make style` to fix the code formatting check in the CI :)
2020-12-30T11:03:22Z
https://github.com/huggingface/datasets/pull/1435#issuecomment-752417791
https://api.github.com/repos/huggingface/datasets/issues/1435
MDEyOklzc3VlQ29tbWVudDc1MjQxNzc5MQ==
https://api.github.com/repos/huggingface/datasets/issues/comments/752417791/reactions
2020-12-30T11:03:22Z
https://api.github.com/repos/huggingface/datasets/issues/comments/752417791
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
MEMBER
Hi @anaerobeth ! Have you had a chance to consider updating the dataset script to yield one example per question ?

Feel free to ping me if you have questions or if I can help :) 
2021-01-29T10:30:47Z
https://github.com/huggingface/datasets/pull/1435#issuecomment-769721577
https://api.github.com/repos/huggingface/datasets/issues/1435
MDEyOklzc3VlQ29tbWVudDc2OTcyMTU3Nw==
https://api.github.com/repos/huggingface/datasets/issues/comments/769721577/reactions
2021-01-29T10:30:47Z
https://api.github.com/repos/huggingface/datasets/issues/comments/769721577
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
CONTRIBUTOR
Hi @lhoestq,

I am willing to take this forward if you and @anaerobeth don't mind.

2021-02-01T06:32:12Z
https://github.com/huggingface/datasets/pull/1435#issuecomment-770607664
https://api.github.com/repos/huggingface/datasets/issues/1435
MDEyOklzc3VlQ29tbWVudDc3MDYwNzY2NA==
https://api.github.com/repos/huggingface/datasets/issues/comments/770607664/reactions
2021-02-01T06:32:12Z
https://api.github.com/repos/huggingface/datasets/issues/comments/770607664
https://avatars.githubusercontent.com/u/29076344?v=4
https://api.github.com/users/gchhablani/events{/privacy}
https://api.github.com/users/gchhablani/followers
https://api.github.com/users/gchhablani/following{/other_user}
https://api.github.com/users/gchhablani/gists{/gist_id}
https://github.com/gchhablani
gchhablani
MDQ6VXNlcjI5MDc2MzQ0
https://api.github.com/users/gchhablani/orgs
https://api.github.com/users/gchhablani/received_events
https://api.github.com/users/gchhablani/repos
https://api.github.com/users/gchhablani/starred{/owner}{/repo}
https://api.github.com/users/gchhablani/subscriptions
User
https://api.github.com/users/gchhablani
public
MEMBER
Hi @gchhablani thanks for proposing your help :) 
Sure if you want to take this forward feel free to do so.
Also pinging @anaerobeth to make sure that you both don't work on the same thing at the same time
2021-02-01T10:29:48Z
https://github.com/huggingface/datasets/pull/1435#issuecomment-770751620
https://api.github.com/repos/huggingface/datasets/issues/1435
MDEyOklzc3VlQ29tbWVudDc3MDc1MTYyMA==
https://api.github.com/repos/huggingface/datasets/issues/comments/770751620/reactions
2021-02-01T10:29:48Z
https://api.github.com/repos/huggingface/datasets/issues/comments/770751620
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
MEMBER
Hi ! Closing this one since the dataset was added in #1814 

Thanks you two @anaerobeth and @gchhablani for adding this dataset !
2021-02-05T09:47:30Z
https://github.com/huggingface/datasets/pull/1435#issuecomment-773922035
https://api.github.com/repos/huggingface/datasets/issues/1435
MDEyOklzc3VlQ29tbWVudDc3MzkyMjAzNQ==
https://api.github.com/repos/huggingface/datasets/issues/comments/773922035/reactions
2021-02-05T09:47:30Z
https://api.github.com/repos/huggingface/datasets/issues/comments/773922035
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
This PR adds the FreebaseQA dataset: A Trivia-type QA Data Set over the Freebase Knowledge Graph

Repo: https://github.com/kelvin-jiang/FreebaseQA

Paper: https://www.aclweb.org/anthology/N19-1028.pdf


## TODO: create dummy data

Error encountered when running `python datasets-cli dummy_data datasets/freebase_qa --auto_generate`
```
    f"Couldn't parse columns {list(json_data.keys())}. "
ValueError: Couldn't parse columns ['Dataset', 'Version', 'Questions']. Maybe specify which json field must be used to read the data with --json_field <my_field>.
```
