CoolFace
Datasetpublic

JudSacr/mqa

MQA is a multilingual corpus of questions and answers parsed from the Common Crawl. Questions are divided between Frequently Asked Questions (FAQ) pages and Community Question Answering (CQA) pages.

sourceHugging Facecc0-1.0updated 4mo agoView on Hugging Face
0likes35downloads
Dataset Card

MQA

MQA is a Multilingual corpus of Questions and Answers (MQA) parsed from the Common Crawl. Questions are divided in two types: Frequently Asked Questions (FAQ) and Community Question Answering (CQA).

python
from datasets import load_dataset
all_data = load_dataset("clips/mqa", language="en")
{
  "name": "the title of the question (if any)",
  "text": "the body of the question (if any)",
  "answers": [{
    "text": "the text of the answer",
    "is_accepted": "true|false"
  }]
}
faq_data = load_dataset("clips/mqa", scope="faq", language="en")
cqa_data = load_dataset("clips/mqa", scope="cqa", language="en")

Languages

We collected around 234M pairs of questions and answers in 39 languages. To download a language specific subset you need to specify the language key as configuration. See below for an example.

python
load_dataset("clips/mqa", language="en") # replace "en" by any language listed below
LanguageFAQCQA
en174,696,41414,082,180
de17,796,9921,094,606
es14,967,582845,836
fr13,096,7271,299,359
ru12,435,0221,715,131
it6,850,573455,027
ja6,369,7062,089,952
zh5,940,796579,596
pt5,851,286373,982
nl4,882,511503,376
tr3,893,964370,975
pl3,766,53170,559
vi2,795,22796,528
id2,253,070200,441
ar2,211,795805,661
uk2,090,61127,260
el1,758,61817,167
no1,752,82011,786
sv1,733,58220,024
fi1,717,22141,371
ro1,689,47193,222
th1,685,46373,204
da1,554,58116,398
he1,422,44988,435
ko1,361,90149,061
cs1,224,312143,863
hu878,38527,639
fa787,420118,805
sk785,1014,615
lt672,105301
et547,208441
hi516,342205,645
hr458,95811,677
is437,74837
lv428,00288
ms230,5687,460
bg198,6715,320
sr110,2703,980
ca100,2011,914

FAQ vs. CQA

You can download the Frequently Asked Questions (FAQ) or the Community Question Answering (CQA) part of the dataset.

python
faq = load_dataset("clips/mqa", scope="faq")
cqa = load_dataset("clips/mqa", scope="cqa")
all = load_dataset("clips/mqa", scope="all")

Although FAQ and CQA questions share the same structure, CQA questions can have multiple answers for a given questions, while FAQ questions have a single answer. FAQ questions typically only have a title (name key), while CQA have a title and a body (name and text).

Nesting and Data Fields

You can specify three different nesting level: question, page and domain.

Question
python
load_dataset("clips/mqa", level="question") # default

The default level is the question object:

  • —name: the title of the question(if any) in markdown format
  • —text: the body of the question (if any) in markdown format
  • —answers: a list of answers
  • —text: the title of the answer (if any) in markdown format
  • —name: the body of the answer in markdown format
  • —is_accepted: true if the answer is selected.
Page

This level returns a list of questions present on the same page. This is mostly useful for FAQs since CQAs already have one question per page.

python
load_dataset("clips/mqa", level="page")
Domain

This level returns a list of pages present on the web domain. This is a good way to cope with FAQs duplication by sampling one page per domain at each epoch.

python
load_dataset("clips/mqa", level="domain")

Source Data

This section was adapted from the source data description of OSCAR

Common Crawl is a non-profit foundation which produces and maintains an open repository of web crawled data that is both accessible and analysable. Common Crawl's complete web archive consists of petabytes of data collected over 8 years of web crawling. The repository contains raw web page HTML data (WARC files), metdata extracts (WAT files) and plain text extracts (WET files). The organisation's crawlers has always respected nofollow and robots.txt policies.

To construct MQA, we used the WARC files of Common Crawl.

People

This model was developed by Maxime De Bruyn, Ehsan Lotfi, Jeska Buhmann and Walter Daelemans.

Licensing Information

These data are released under this licensing scheme.
We do not own any of the text from which these data has been extracted.
We license the actual packaging of these data under the Creative Commons CC0 license ("no rights reserved") http://creativecommons.org/publicdomain/zero/1.0/

Should you consider that our data contains material that is owned by you and should therefore not be reproduced here, please:
* Clearly identify yourself, with detailed contact data such as an address, telephone number or email address at which you can be contacted.
* Clearly identify the copyrighted work claimed to be infringed.
* Clearly identify the material that is claimed to be infringing and information reasonably sufficient to allow us to locate the material.

We will comply to legitimate requests by removing the affected sources from the next release of the corpus.

Citation information

@inproceedings{de-bruyn-etal-2021-mfaq,
    title = "{MFAQ}: a Multilingual {FAQ} Dataset",
    author = "De Bruyn, Maxime  and
      Lotfi, Ehsan  and
      Buhmann, Jeska  and
      Daelemans, Walter",
    booktitle = "Proceedings of the 3rd Workshop on Machine Reading for Question Answering",
    month = nov,
    year = "2021",
    address = "Punta Cana, Dominican Republic",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2021.mrqa-1.1",
    pages = "1--13",
}