Francois Vieille commited on
Commit
93a5f5a
1 Parent(s): 85e4468

add exemple and update files to load

Browse files
README.md CHANGED
@@ -59,6 +59,25 @@ paperswithcode_id: null
59
 
60
  newsquadfr is a small dataset created for Question Answering task. Contexts are paragraphs of articles extracted from nine online french newspaper during year 2020/2021. newsquadfr stands for Newspaper question answering dataset in french. inspired by Piaf and Squad dataset. 2 520 triplets context - question - answer.
61
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
62
  (train set)
63
 
64
  | website | Nb |
@@ -128,7 +147,7 @@ Fr-fr
128
  |-------|----|
129
  | train |1650|
130
  | test |415 |
131
- | val |455 |
132
 
133
  ## Dataset Creation
134
 
 
59
 
60
  newsquadfr is a small dataset created for Question Answering task. Contexts are paragraphs of articles extracted from nine online french newspaper during year 2020/2021. newsquadfr stands for Newspaper question answering dataset in french. inspired by Piaf and Squad dataset. 2 520 triplets context - question - answer.
61
 
62
+ ```py
63
+ from dataset import load_dataset
64
+
65
+ ds_name = 'lincoln/newsquadfr'
66
+
67
+ # exemple 1
68
+ ds_newsquad = load_dataset(ds_name)
69
+
70
+ # exemple 2
71
+ ds_newsquad = load_dataset(ds_name, split="test+valid")
72
+
73
+ # exemple 3
74
+ data_files = {'train': 'train.json', 'test': 'test.json', 'valid': 'valid.json'}
75
+ ds_newsquad = load_dataset(ds_name, data_files=data_files)
76
+
77
+ # exemple 3
78
+ ds_newsquad = load_dataset(ds_name, data_files=data_files, split="train")
79
+ ```
80
+
81
  (train set)
82
 
83
  | website | Nb |
 
147
  |-------|----|
148
  | train |1650|
149
  | test |415 |
150
+ | valid |455 |
151
 
152
  ## Dataset Creation
153
 
dataset_dict.json DELETED
@@ -1 +0,0 @@
1
- {"splits": ["train", "test", "val"]}
 
 
test.json ADDED
The diff for this file is too large to render. See raw diff
 
test/dataset.arrow DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:6389065ec9332daf32c1ef201e1ae835d5045289a66ccaa1091381b735aa0b78
3
- size 305584
 
 
 
 
test/dataset_info.json DELETED
@@ -1,82 +0,0 @@
1
- {
2
- "builder_name": null,
3
- "citation": "",
4
- "config_name": null,
5
- "dataset_size": null,
6
- "description": "",
7
- "download_checksums": null,
8
- "download_size": null,
9
- "features": {
10
- "id": {
11
- "dtype": "string",
12
- "id": null,
13
- "_type": "Value"
14
- },
15
- "paragraph_id": {
16
- "dtype": "int64",
17
- "id": null,
18
- "_type": "Value"
19
- },
20
- "context": {
21
- "dtype": "string",
22
- "id": null,
23
- "_type": "Value"
24
- },
25
- "question": {
26
- "dtype": "string",
27
- "id": null,
28
- "_type": "Value"
29
- },
30
- "answers": {
31
- "answer_start": {
32
- "feature": {
33
- "dtype": "int64",
34
- "id": null,
35
- "_type": "Value"
36
- },
37
- "length": -1,
38
- "id": null,
39
- "_type": "Sequence"
40
- },
41
- "text": {
42
- "feature": {
43
- "dtype": "string",
44
- "id": null,
45
- "_type": "Value"
46
- },
47
- "length": -1,
48
- "id": null,
49
- "_type": "Sequence"
50
- }
51
- },
52
- "website": {
53
- "dtype": "string",
54
- "id": null,
55
- "_type": "Value"
56
- },
57
- "article_id": {
58
- "dtype": "int64",
59
- "id": null,
60
- "_type": "Value"
61
- },
62
- "article_url": {
63
- "dtype": "string",
64
- "id": null,
65
- "_type": "Value"
66
- },
67
- "article_title": {
68
- "dtype": "string",
69
- "id": null,
70
- "_type": "Value"
71
- }
72
- },
73
- "homepage": "",
74
- "license": "",
75
- "post_processed": null,
76
- "post_processing_size": null,
77
- "size_in_bytes": null,
78
- "splits": null,
79
- "supervised_keys": null,
80
- "task_templates": null,
81
- "version": null
82
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
test/state.json DELETED
@@ -1,15 +0,0 @@
1
- {
2
- "_data_files": [
3
- {
4
- "filename": "dataset.arrow"
5
- }
6
- ],
7
- "_fingerprint": "7b3e9806f68b0d56",
8
- "_format_columns": null,
9
- "_format_kwargs": {},
10
- "_format_type": null,
11
- "_indexes": {},
12
- "_indices_data_files": null,
13
- "_output_all_columns": false,
14
- "_split": null
15
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
train.json ADDED
The diff for this file is too large to render. See raw diff
 
train/dataset.arrow DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:8f44fa7493246c091ca2d852dccd9c1077cdbd26534e7aa9084f1e0c2d1af251
3
- size 1233208
 
 
 
 
train/dataset_info.json DELETED
@@ -1,82 +0,0 @@
1
- {
2
- "builder_name": null,
3
- "citation": "",
4
- "config_name": null,
5
- "dataset_size": null,
6
- "description": "",
7
- "download_checksums": null,
8
- "download_size": null,
9
- "features": {
10
- "id": {
11
- "dtype": "string",
12
- "id": null,
13
- "_type": "Value"
14
- },
15
- "paragraph_id": {
16
- "dtype": "int64",
17
- "id": null,
18
- "_type": "Value"
19
- },
20
- "context": {
21
- "dtype": "string",
22
- "id": null,
23
- "_type": "Value"
24
- },
25
- "question": {
26
- "dtype": "string",
27
- "id": null,
28
- "_type": "Value"
29
- },
30
- "answers": {
31
- "answer_start": {
32
- "feature": {
33
- "dtype": "int64",
34
- "id": null,
35
- "_type": "Value"
36
- },
37
- "length": -1,
38
- "id": null,
39
- "_type": "Sequence"
40
- },
41
- "text": {
42
- "feature": {
43
- "dtype": "string",
44
- "id": null,
45
- "_type": "Value"
46
- },
47
- "length": -1,
48
- "id": null,
49
- "_type": "Sequence"
50
- }
51
- },
52
- "website": {
53
- "dtype": "string",
54
- "id": null,
55
- "_type": "Value"
56
- },
57
- "article_id": {
58
- "dtype": "int64",
59
- "id": null,
60
- "_type": "Value"
61
- },
62
- "article_url": {
63
- "dtype": "string",
64
- "id": null,
65
- "_type": "Value"
66
- },
67
- "article_title": {
68
- "dtype": "string",
69
- "id": null,
70
- "_type": "Value"
71
- }
72
- },
73
- "homepage": "",
74
- "license": "",
75
- "post_processed": null,
76
- "post_processing_size": null,
77
- "size_in_bytes": null,
78
- "splits": null,
79
- "supervised_keys": null,
80
- "task_templates": null,
81
- "version": null
82
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
train/state.json DELETED
@@ -1,15 +0,0 @@
1
- {
2
- "_data_files": [
3
- {
4
- "filename": "dataset.arrow"
5
- }
6
- ],
7
- "_fingerprint": "fd18f2df25e88385",
8
- "_format_columns": null,
9
- "_format_kwargs": {},
10
- "_format_type": null,
11
- "_indexes": {},
12
- "_indices_data_files": null,
13
- "_output_all_columns": false,
14
- "_split": null
15
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
val/dataset.arrow DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:c5550780bc2f05ccc87d6ce3f7da93f186527143ef44fdda5c646a290be71b7f
3
- size 340320
 
 
 
 
val/dataset_info.json DELETED
@@ -1,82 +0,0 @@
1
- {
2
- "builder_name": null,
3
- "citation": "",
4
- "config_name": null,
5
- "dataset_size": null,
6
- "description": "",
7
- "download_checksums": null,
8
- "download_size": null,
9
- "features": {
10
- "id": {
11
- "dtype": "string",
12
- "id": null,
13
- "_type": "Value"
14
- },
15
- "paragraph_id": {
16
- "dtype": "int64",
17
- "id": null,
18
- "_type": "Value"
19
- },
20
- "context": {
21
- "dtype": "string",
22
- "id": null,
23
- "_type": "Value"
24
- },
25
- "question": {
26
- "dtype": "string",
27
- "id": null,
28
- "_type": "Value"
29
- },
30
- "answers": {
31
- "answer_start": {
32
- "feature": {
33
- "dtype": "int64",
34
- "id": null,
35
- "_type": "Value"
36
- },
37
- "length": -1,
38
- "id": null,
39
- "_type": "Sequence"
40
- },
41
- "text": {
42
- "feature": {
43
- "dtype": "string",
44
- "id": null,
45
- "_type": "Value"
46
- },
47
- "length": -1,
48
- "id": null,
49
- "_type": "Sequence"
50
- }
51
- },
52
- "website": {
53
- "dtype": "string",
54
- "id": null,
55
- "_type": "Value"
56
- },
57
- "article_id": {
58
- "dtype": "int64",
59
- "id": null,
60
- "_type": "Value"
61
- },
62
- "article_url": {
63
- "dtype": "string",
64
- "id": null,
65
- "_type": "Value"
66
- },
67
- "article_title": {
68
- "dtype": "string",
69
- "id": null,
70
- "_type": "Value"
71
- }
72
- },
73
- "homepage": "",
74
- "license": "",
75
- "post_processed": null,
76
- "post_processing_size": null,
77
- "size_in_bytes": null,
78
- "splits": null,
79
- "supervised_keys": null,
80
- "task_templates": null,
81
- "version": null
82
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
val/state.json DELETED
@@ -1,15 +0,0 @@
1
- {
2
- "_data_files": [
3
- {
4
- "filename": "dataset.arrow"
5
- }
6
- ],
7
- "_fingerprint": "74a4a6ee4fd02fde",
8
- "_format_columns": null,
9
- "_format_kwargs": {},
10
- "_format_type": null,
11
- "_indexes": {},
12
- "_indices_data_files": null,
13
- "_output_all_columns": false,
14
- "_split": null
15
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
valid.json ADDED
The diff for this file is too large to render. See raw diff