Datasets:

Languages:
French
Size Categories:
100K<n<1M
DOI:
License:
File size: 6,721 Bytes
351001a
 
 
 
 
 
 
6249cd5
351001a
 
6249cd5
f746c2a
1d3d410
 
 
fc6d7f5
e8ff77f
351001a
 
1d3d410
5602962
351001a
 
 
 
 
 
 
 
 
1d3d410
351001a
 
 
 
 
1d3d410
 
 
 
351001a
 
 
5602962
94cde0c
 
 
 
 
 
 
 
1d3d410
94cde0c
 
 
 
 
 
 
351001a
 
 
 
 
 
 
 
 
 
 
 
6249cd5
 
 
 
 
351001a
 
94cde0c
6249cd5
1d3d410
351001a
6249cd5
94cde0c
6249cd5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5602962
 
 
f3a1f22
f0f9924
 
 
 
 
 
 
 
5602962
f3a1f22
719f5c5
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
---
task_categories:
- question-answering
language:
- fr
size_categories:
- 100K<n<1M
license: cc-by-4.0
---

# Dataset information 
**Dataset concatenating QA datasets with context available in French and open-source.**  
In addition, an augmented version of these datasets has been added (same context but different questions to create data in SQuAD 2.0 format).  
In total, there are 221,348 training data, **910** validation data and 6,376 test data.   
In practice, due to the restrictive license for the FQUAD 1.0 dataset, we can only share **200,617** rows of the 221,348 training data and **3,188** rows of the 6,376 test data.  
So to obtain the complete dataset, the user will have to concatenate this dataset with the fquad dataset available [here](https://fquad.illuin.tech/).  
Our methodology is described in a blog post available in [English](https://blog.vaniila.ai/en/QA_en/) or [French](https://blog.vaniila.ai/QA/).



#  Usage
```
from datasets import load_dataset
dataset = load_dataset("CATIE-AQ/frenchQA",sep=";")
```
```
dataset
DatasetDict({
    train: Dataset({
        features: ['context', 'question', 'answer', 'answer_start', 'dataset'],
        num_rows: 200617
    })
    validation: Dataset({
        features: ['context', 'question', 'answer', 'answer_start', 'dataset'],
        num_rows: 910
    })
    test: Dataset({
        features: ['id', 'title', 'context', 'question', 'answers'],
        num_rows: 3188
    })
})
```


# Dataset
## Dataset details

| Dataset     | Format      | Train split | Dev split   | Test split  | Available in frenchQA |
| ----------- | ----------- | ----------- | ----------- | ----------- | ------------------------ |
| [piaf](https://www.data.gouv.fr/en/datasets/piaf-le-dataset-francophone-de-questions-reponses/)| SQuAD 1.0    | 9 224 Q & A  | X  | X  |  Yes |
| piaf_v2| SQuAD 2.0    | 9 224 Q & A  | X  | X  | Yes |        
| [fquad](https://fquad.illuin.tech/)| SQuAD 1.0    | 20 731 Q & A | 3 188 Q & A  (is not used for training, but as a test dataset) | 2 189 Q & A (not freely available)| No due to the license |        
| fquad_v2 | SQuAD 2.0    | 20 731 Q & A | 3 188 Q & A  (is not used for training, but as a test dataset) | X | Yes |         
| [lincoln/newsquadfr](https://huggingface.co/datasets/lincoln/newsquadfr) | SQuAD 1.0    | 1 650 Q & A  | 455 Q & A | X |   Yes |          
| lincoln/newsquadfr_v2 | SQuAD 2.0   | 1 650 Q & A  | 455 Q & A | X |  Yes |         
| [pragnakalp/squad_v2_french_translated](https://huggingface.co/datasets/pragnakalp/squad_v2_french_translated)| SQuAD 2.0    | 79 069 Q & A  | X  | X  |  Yes |         
| pragnakalp/squad_v2_french_translated_v2| SQuAD 2.0    | 79 069 Q & A  | X  | X  |  Yes |


## Columns
```
dataset_train = dataset['train'].to_pandas()
dataset_train.head()

   	context 	                                        question 	                                        answer 	                    answer_start 	dataset
0 	Beyoncé Giselle Knowles-Carter (/ biːˈjɒnseɪ /... 	Quand Beyonce a-t-elle commencé à devenir popu... 	à la fin des années 1990 	269 	        pragnakalp/squad_v2_french_translated
1 	Beyoncé Giselle Knowles-Carter (/ biːˈjɒnseɪ /... 	Quand Beyonce a-t-elle quitté Destiny's Child ... 	2003 	                    549 	        pragnakalp/squad_v2_french_translated
2 	Beyoncé Giselle Knowles-Carter (/ biːˈjɒnseɪ /... 	Qui a dirigé le groupe Destiny's Child ? 	        Mathew Knowles 	            376 	        pragnakalp/squad_v2_french_translated
3 	Beyoncé Giselle Knowles-Carter (/ biːˈjɒnseɪ /... 	Quand Beyoncé a-t-elle sorti Dangerously in Lo... 	2003 	                    549 	        pragnakalp/squad_v2_french_translated
4 	Beyoncé Giselle Knowles-Carter (/ biːˈjɒnseɪ /... 	Combien de Grammy Awards Beyoncé a-t-elle gagn... 	cinq 	                    629 	        pragnakalp/squad_v2_french_translated
```

- the `context` column contains the context
- the `question` column contains the question
- the `answer` column contains the answer (has been replaced by `no_answer` for rows in SQuAD v2 format)
- the `answer_start` column contains the start position of the answer in the context (has been replaced by `-1` for rows in SQuAD v2 format)
- the `dataset` column identifies the row's original dataset (if you wish to apply filters to it, rows in SQuAD v2 format are indicated with the suffix `_v2` in the dataset name)

## Split
- `train` corresponds to the concatenation of the training dataset from `pragnakalp/squad_v2_english_translated` + `lincoln/newsquadfr` + `PIAFv1.2` + the augmented version of each dataset in SQuADv2 format (no shuffle has been performed)
- `validation` corresponds to the concatenation of the newsquadfr validation dataset + this same dataset expanded in SQuAD v2 format (= newsquadfr_v2) (no shuffle performed)
- `test` corresponds to the concatenation of the fquad dataset SQuAD v1 in SQuAD v2 format (here we can only share the SQuAD v2 format)


# Question type statistics

The question type distribution is as follows:

| Type of question | Frequency in percent |
| -----------      | ----------- |
|What (que)        |55.02|
|Who (qui)         |15.96|
|How much (combien)|7.92|
|When (quand)      |6.90|
|Where (où)        |3.15|
|How (comment)     |3.76|
|What (quoi)       |2.60|
|Why (pourquoi)    |1.25|
|Other             |3.44|

The number of questions containing a negation, e.g. "What was the name of Chopin's first music teacher who was not an amateur musician?", is estimated at 3.55% of the total questions.


For information, the distribution of the complete dataset (containing FQUAD 1.0 and FQUAD 1.0 data in SQUAD 2.0 format) is as follows:

| Type of question | Frequency in percent |
| -----------      | ----------- |
|What (que)        |55.12|
|Who (qui)         |16.24|
|How much (combien)|7.56|
|When (quand)      |6.85|
|Where (où)        |3.98|
|How (comment)     |3.76|
|What (quoi)       |2.94|
|Why (pourquoi)    |1.41|
|Other             |2.14|

The number of questions containing a negation, e.g. "What was the name of Chopin's first music teacher who was not an amateur musician?", is estimated at 3.07% of the total questions.


# Citation
```
@misc {frenchQA2023,  
    author       = { {ALBAR, Boris and BEDU, Pierre and BOURDOIS, Loïck} },  
    organization  = { {Centre Aquitain des Technologies de l'Information et Electroniques} },  
    title        = { frenchQA (Revision 6249cd5) },  
    year         = 2023,  
    url          = { https://huggingface.co/CATIE-AQ/frenchQA },  
    doi          = { 10.57967/hf/0862 },  
    publisher    = { Hugging Face }  
}
```

# License
[cc-by-4.0](https://creativecommons.org/licenses/by/4.0/deed.en)