maximedb commited on
Commit
430b20d
1 Parent(s): 7240ce7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +6 -6
README.md CHANGED
@@ -60,7 +60,7 @@ task_ids:
60
  ---
61
  # MQA
62
  MQA is a Multilingual corpus of Questions and Answers (MQA) parsed from the [Common Crawl](https://commoncrawl.org/). Questions are divided in two types: *Frequently Asked Questions (FAQ)* and *Community Question Answering (CQA)*.
63
- ```
64
  from datasets import load_dataset
65
  all = load_dataset("clips/mqa", language="en")
66
  {
@@ -77,7 +77,7 @@ cqa = load_dataset("clips/mqa", scope="cqa", language="en")
77
 
78
  ## Languages
79
  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.
80
- ```
81
  load_dataset("clips/mqa", language="en") # replace "en" by any language listed below
82
  ```
83
 
@@ -126,7 +126,7 @@ load_dataset("clips/mqa", language="en") # replace "en" by any language listed b
126
  ## FAQ vs. CQA
127
  You can download the *Frequently Asked Questions* (FAQ) or the *Community Question Answering* (CQA) part of the dataset.
128
 
129
- ```
130
  faq = load_dataset("clips/mqa", scope="faq")
131
  cqa = load_dataset("clips/mqa", scope="cqa")
132
  all = load_dataset("clips/mqa", scope="all")
@@ -136,7 +136,7 @@ Although FAQ and CQA questions share the same structure, CQA questions can have
136
  ## Nesting and Data Fields
137
  You can specify three different nesting level: `question`, `page` and `domain`.
138
  #### Question
139
- ```
140
  load_dataset("clips/mqa", level="question") # default
141
  ```
142
  The default level is the question object:
@@ -149,14 +149,14 @@ The default level is the question object:
149
 
150
  #### Page
151
  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.
152
- ```
153
  load_dataset("clips/mqa", level="page")
154
  ```
155
 
156
  #### Domain
157
  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.
158
 
159
- ```
160
  load_dataset("clips/mqa", level="domain")
161
  ```
162
 
 
60
  ---
61
  # MQA
62
  MQA is a Multilingual corpus of Questions and Answers (MQA) parsed from the [Common Crawl](https://commoncrawl.org/). Questions are divided in two types: *Frequently Asked Questions (FAQ)* and *Community Question Answering (CQA)*.
63
+ ```python
64
  from datasets import load_dataset
65
  all = load_dataset("clips/mqa", language="en")
66
  {
 
77
 
78
  ## Languages
79
  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.
80
+ ```python
81
  load_dataset("clips/mqa", language="en") # replace "en" by any language listed below
82
  ```
83
 
 
126
  ## FAQ vs. CQA
127
  You can download the *Frequently Asked Questions* (FAQ) or the *Community Question Answering* (CQA) part of the dataset.
128
 
129
+ ```python
130
  faq = load_dataset("clips/mqa", scope="faq")
131
  cqa = load_dataset("clips/mqa", scope="cqa")
132
  all = load_dataset("clips/mqa", scope="all")
 
136
  ## Nesting and Data Fields
137
  You can specify three different nesting level: `question`, `page` and `domain`.
138
  #### Question
139
+ ```python
140
  load_dataset("clips/mqa", level="question") # default
141
  ```
142
  The default level is the question object:
 
149
 
150
  #### Page
151
  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.
152
+ ```python
153
  load_dataset("clips/mqa", level="page")
154
  ```
155
 
156
  #### Domain
157
  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.
158
 
159
+ ```python
160
  load_dataset("clips/mqa", level="domain")
161
  ```
162