CoolFace
Datasetpublic

alexandrainst/scandi-qa

ScandiQA is a dataset of questions and answers in the Danish, Norwegian, and Swedish languages. All samples come from the Natural Questions (NQ) dataset, which is a large question answering dataset from Google searches. The Scandinavian questions and answers come from the MKQA dataset, where 10,000 NQ samples were manually translated into, among others, Danish, Norwegian, and Swedish. However, this did not include a translated context, hindering the training of extractive question answering models. We merged the NQ dataset with the MKQA dataset, and extracted contexts as either "long answers" from the NQ dataset, being the paragraph in which the answer was found, or otherwise we extract the context by locating the paragraphs which have the largest cosine similarity to the question, and which contains the desired answer. Further, many answers in the MKQA dataset were "language normalised": for instance, all date answers were converted to the format "YYYY-MM-DD", meaning that in most cases these answers are not appearing in any paragraphs. We solve this by extending the MKQA answers with plausible "answer candidates", being slight perturbations or translations of the answer. With the contexts extracted, we translated these to Danish, Swedish and Norwegian using the DeepL translation service for Danish and Swedish, and the Google Translation service for Norwegian. After translation we ensured that the Scandinavian answers do indeed occur in the translated contexts. As we are filtering the MKQA samples at both the "merging stage" and the "translation stage", we are not able to fully convert the 10,000 samples to the Scandinavian languages, and instead get roughly 8,000 samples per language. These have further been split into a training, validation and test split, with the former two containing roughly 750 samples. The splits have been created in such a way that the proportion of samples without an answer is roughly the same in each split.

sourceHugging Facecc-by-sa-4.0updated 4y agoView on Hugging Face
8likes163downloads
26 commits on main
0bfc5264y ago

fix: Rename scandiqa.py to scandi-qa.py

saattrupdan
abce3974y ago

Merge branch 'main' of https://huggingface.co/datasets/alexandrainst/scandiqa

saattrupdan
a2e38264y ago

fix: Update dataset urls

saattrupdan
19279354y ago

fix: Set `id` column to string

saattrupdan
c0f82534y ago

Update README.md

saattrupdan
ec2531c4y ago

chore: Change "example_id" column to "id"

saattrupdan
8ad09d94y ago

feat: Update dataset with splits consistent across languages

saattrupdan
fd5fa614y ago

feat: Change val and test sizes to 500

saattrupdan
917b8894y ago

fix: Split names

saattrupdan
7147e8d4y ago

fix: Make answers plural

saattrupdan
b1660624y ago

fix: Typo in features

saattrupdan
d3614db4y ago

feat: Change the output format of the dataset to be in line with SQuAD

saattrupdan
3f2caa44y ago

fix: Split up `source_datasets` metadata

saattrupdan
b58d8564y ago

docs: Add links to DeepL and gTranslate, and fix a typo

saattrupdan
30f6ac64y ago

docs: Add readme

saattrupdan
bf50f5a4y ago

feat: Add builder script

saattrupdan
c627c074y ago

feat: Add symlink to scandiqa.py

saattrupdan
bd0a6eb4y ago

fix: Use integer indices instead of strings

saattrupdan
5a9eee54y ago

fix: Build splits properly

saattrupdan
376ac1a4y ago

fix: Add unused `split` argument to `_generate_examples`

saattrupdan
3fe1ead4y ago

fix: Change blob to resolve in urls

saattrupdan
fe407d84y ago

fix: Update urls

saattrupdan
3c432c74y ago

feat: Add loading script

saattrupdan
df59ccd4y ago

feat: Add datasets

saattrupdan
18fee954y ago

chore: Git-LFS track JSONL

saattrupdan
1508b3e4y ago

initial commit

saattrupdan