crystina-z commited on
Commit
b041b18
1 Parent(s): 691c155

add script to load dataset

Browse files
Files changed (1) hide show
  1. README.md +17 -1
README.md CHANGED
@@ -66,7 +66,23 @@ Note that to perform the retrieval, it need to be used together with [castorini/
66
  }
67
  ```
68
 
69
- Citation Information
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
  ```
71
  @article{mrtydi,
72
  title={{Mr. TyDi}: A Multi-lingual Benchmark for Dense Retrieval},
 
66
  }
67
  ```
68
 
69
+ # Load Dataset
70
+
71
+ An example to load the dataset:
72
+ ```
73
+ language = 'english'
74
+
75
+ # to load all train, dev and test sets
76
+ dataset = load_dataset('castorini/mr-tydi', language)
77
+
78
+ # or to load a specific set:
79
+ set_name = 'train'
80
+ dataset = load_dataset('castorini/mr-tydi', language, set_name)
81
+ ```
82
+ Note that the 'combined' option has only the 'train' set.
83
+
84
+
85
+ # Citation Information
86
  ```
87
  @article{mrtydi,
88
  title={{Mr. TyDi}: A Multi-lingual Benchmark for Dense Retrieval},