CoolFace
Datasetpublic

clips/mfaq

We present the first multilingual FAQ dataset publicly available. We collected around 6M FAQ pairs from the web, in 21 different languages.

sourceHugging Facecc0-1.0updated 4y agoView on Hugging Face
37likes1.3kdownloads
Dataset Card

MFAQ

๐Ÿšจ See MQA or MFAQ Light for an updated version of the dataset.

MFAQ is a multilingual corpus of Frequently Asked Questions parsed from the Common Crawl.

from datasets import load_dataset
load_dataset("clips/mfaq", "en")
{
  "qa_pairs": [
    {
      "question": "Do  I need a rental Car in Cork?",
      "answer": "If you plan on travelling outside of Cork City, for instance to  Kinsale [...]"
    },
    ...
  ]
}

Languages

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

load_dataset("clips/mfaq", "en") # replace "en" by any language listed below
LanguageKeyPairsPages
Allall6,346,6931,035,649
Englishen3,719,484608,796
Germande829,098111,618
Spanishes482,81875,489
Frenchfr351,45856,317
Italianit155,29624,562
Dutchnl150,81932,574
Portuguesept138,77826,169
Turkishtr102,37319,002
Russianru91,77122,643
Polishpl65,18210,695
Indonesianid45,8397,910
Norwegianno37,7115,143
Swedishsv37,0035,270
Danishda32,6555,279
Vietnamesevi27,1575,261
Finnishfi20,4852,795
Romanianro17,0663,554
Czechcs16,6752,568
Hebrewhe11,2121,921
Hungarianhu8,5981,264
Croatianhr5,215819

Data Fields

Nested (per page - default)

The data is organized by page. Each page contains a list of questions and answers.

  • โ€”id
  • โ€”language
  • โ€”num_pairs: the number of FAQs on the page
  • โ€”domain: source web domain of the FAQs
  • โ€”qa_pairs: a list of questions and answers
  • โ€”question
  • โ€”answer
  • โ€”language
Flattened

The data is organized by pair (i.e. pages are flattened). You can access the flat version of any language by appending _flat to the configuration (e.g. en_flat). The data will be returned pair-by-pair instead of page-by-page.

  • โ€”domain_id
  • โ€”pair_id
  • โ€”language
  • โ€”domain: source web domain of the FAQs
  • โ€”question
  • โ€”answer

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 MFAQ, the WARC files of Common Crawl were used. We looked for FAQPage markup in the HTML and subsequently parsed the FAQItem from the page.

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

@misc{debruyn2021mfaq,
      title={MFAQ: a Multilingual FAQ Dataset}, 
      author={Maxime {De Bruyn} and Ehsan Lotfi and Jeska Buhmann and Walter Daelemans},
      year={2021},
      eprint={2109.12870},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}