Francois Vieille commited on
Commit
68cdf48
1 Parent(s): 93a5f5a

fix exemples

Browse files
Files changed (1) hide show
  1. README.md +2 -5
README.md CHANGED
@@ -60,7 +60,7 @@ paperswithcode_id: null
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
 
@@ -68,14 +68,11 @@ ds_name = 'lincoln/newsquadfr'
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)
 
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 datasets import load_dataset
64
 
65
  ds_name = 'lincoln/newsquadfr'
66
 
 
68
  ds_newsquad = load_dataset(ds_name)
69
 
70
  # exemple 2
 
 
 
71
  data_files = {'train': 'train.json', 'test': 'test.json', 'valid': 'valid.json'}
72
  ds_newsquad = load_dataset(ds_name, data_files=data_files)
73
 
74
  # exemple 3
75
+ ds_newsquad = load_dataset(ds_name, data_files=data_files, split="valid+test")
76
  ```
77
 
78
  (train set)