Datasets:
Update README.md
Browse files
README.md
CHANGED
@@ -8,8 +8,7 @@ language:
|
|
8 |
- en
|
9 |
- fr
|
10 |
configs:
|
11 |
-
- config_name:
|
12 |
-
default: true
|
13 |
data_files:
|
14 |
- split: train
|
15 |
path: english/train.csv
|
@@ -17,7 +16,7 @@ configs:
|
|
17 |
path: english/dev.csv
|
18 |
- split: test
|
19 |
path: english/test.csv
|
20 |
-
- config_name:
|
21 |
data_files:
|
22 |
- split: train
|
23 |
path: french/train.csv
|
@@ -44,7 +43,24 @@ This is a variant of the [Statcan Dialogue Dataset](https://huggingface.co/datas
|
|
44 |
```python
|
45 |
from datasets import load_dataset
|
46 |
|
47 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
```
|
49 |
|
50 |
## License
|
|
|
8 |
- en
|
9 |
- fr
|
10 |
configs:
|
11 |
+
- config_name: queries_english
|
|
|
12 |
data_files:
|
13 |
- split: train
|
14 |
path: english/train.csv
|
|
|
16 |
path: english/dev.csv
|
17 |
- split: test
|
18 |
path: english/test.csv
|
19 |
+
- config_name: queries_french
|
20 |
data_files:
|
21 |
- split: train
|
22 |
path: french/train.csv
|
|
|
43 |
```python
|
44 |
from datasets import load_dataset
|
45 |
|
46 |
+
repo = 'McGill-NLP/statcan-dialogue-dataset-retrieval'
|
47 |
+
# load english queries, training split
|
48 |
+
|
49 |
+
queries_en = load_dataset(repo, 'queries_english', split='train') # or 'dev', 'test'
|
50 |
+
queries_fr = load_dataset(repo, 'queries_french', split='train')
|
51 |
+
# Dataset({
|
52 |
+
# features: ['query', 'query_id', 'doc_id'],
|
53 |
+
# num_rows: 3782
|
54 |
+
# })
|
55 |
+
|
56 |
+
# load corpus (available in french and english)
|
57 |
+
corpus_en = load_dataset(repo, 'corpus', split='english')
|
58 |
+
corpus_fr = load_dataset(repo, 'corpus', split='french')
|
59 |
+
# Dataset({
|
60 |
+
# features: ['doc_id', 'title', 'doc'],
|
61 |
+
# num_rows: 5907
|
62 |
+
# })
|
63 |
+
|
64 |
```
|
65 |
|
66 |
## License
|