Missing original answers in kilt-TriviaQA
MEMBER
That could be useful indeed! Feel free to open a PR on the dataset card if you already have some code that runs, otherwise we'll take care of it soon :) 
2021-05-21T15:32:37Z
https://github.com/huggingface/datasets/issues/2391#issuecomment-846037719
https://api.github.com/repos/huggingface/datasets/issues/2391
MDEyOklzc3VlQ29tbWVudDg0NjAzNzcxOQ==
https://api.github.com/repos/huggingface/datasets/issues/comments/846037719/reactions
2021-05-21T15:32:37Z
https://api.github.com/repos/huggingface/datasets/issues/comments/846037719
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
I can open a PR but there is 2 details to fix:
- the name for the corresponding key (e.g. `original_answer`)
- how to implement it: I’m not sure what happens when you map `lambda x: {'input': ...}` as it keeps the other keys (e.g. `output`) intact but here since we want to set a nested value (e.g. `x['output']['original_answer']`) I implemented it with a regular function (not lambda), see below

```py
def add_original_answer(x, trivia_qa, triviaqa_map):
    i = triviaqa_map[x['id']]
    x['output']['original_answer'] = trivia_qa['validation'][i]['answer']['value']
    return x
```
2021-05-25T14:32:38Z
https://github.com/huggingface/datasets/issues/2391#issuecomment-847921226
https://api.github.com/repos/huggingface/datasets/issues/2391
MDEyOklzc3VlQ29tbWVudDg0NzkyMTIyNg==
https://api.github.com/repos/huggingface/datasets/issues/comments/847921226/reactions
2021-05-25T14:32:57Z
https://api.github.com/repos/huggingface/datasets/issues/comments/847921226
https://avatars.githubusercontent.com/u/25532159?v=4
https://api.github.com/users/PaulLerner/events{/privacy}
https://api.github.com/users/PaulLerner/followers
https://api.github.com/users/PaulLerner/following{/other_user}
https://api.github.com/users/PaulLerner/gists{/gist_id}
https://github.com/PaulLerner
PaulLerner
MDQ6VXNlcjI1NTMyMTU5
https://api.github.com/users/PaulLerner/orgs
https://api.github.com/users/PaulLerner/received_events
https://api.github.com/users/PaulLerner/repos
https://api.github.com/users/PaulLerner/starred{/owner}{/repo}
https://api.github.com/users/PaulLerner/subscriptions
User
https://api.github.com/users/PaulLerner
public
I previously opened an issue at https://github.com/facebookresearch/KILT/issues/42 but from the answer of @fabiopetroni it seems that the problem comes from HF-datasets

## Describe the bug
The `answer` field in kilt-TriviaQA, e.g. `kilt_tasks['train_triviaqa'][0]['output']['answer']` contains a list of alternative answer which are accepted for the question.  
However it'd be nice to know the original answer to the question (the only fields in `output` are `'answer', 'meta', 'provenance'`)

## How to fix
It can be fixed by retrieving the original answer from the original TriviaQA (e.g. `trivia_qa['train'][0]['answer']['value']`), perhaps at the same place as here where one retrieves the questions https://github.com/huggingface/datasets/blob/master/datasets/kilt_tasks/README.md#loading-the-kilt-knowledge-source-and-task-data

cc @yjernite who previously answered to an issue about KILT and TriviaQA :)
