rahular commited on
Commit
e480efd
1 Parent(s): fb97e80

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +26 -0
README.md CHANGED
@@ -19,6 +19,32 @@ Itihāsa is a Sanskrit-English translation corpus containing 93,000 Sanskrit shl
19
 
20
  This repository contains the randomized train, development, and test sets. The original extracted data can be found [here](https://github.com/rahular/itihasa/tree/gh-pages/res) in JSON format. If you just want to browse the data, you can go [here](http://rahular.com/itihasa/).
21
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  ### Citation
23
  If you found this dataset to be useful, please consider citing the paper as follows:
24
  ```
 
19
 
20
  This repository contains the randomized train, development, and test sets. The original extracted data can be found [here](https://github.com/rahular/itihasa/tree/gh-pages/res) in JSON format. If you just want to browse the data, you can go [here](http://rahular.com/itihasa/).
21
 
22
+ ## Loading with `datasets`
23
+ ```
24
+ >> from datasets import load_dataset
25
+ >> dataset = load_dataset("rahular/itihasa")
26
+ >> dataset
27
+ DatasetDict({
28
+ train: Dataset({
29
+ features: ['translation'],
30
+ num_rows: 75162
31
+ })
32
+ validation: Dataset({
33
+ features: ['translation'],
34
+ num_rows: 6149
35
+ })
36
+ test: Dataset({
37
+ features: ['translation'],
38
+ num_rows: 11722
39
+ })
40
+ })
41
+
42
+ >> dataset['train'][0]
43
+ {'translation': {'en': 'The ascetic Vālmīki asked Nārada, the best of sages and foremost of those conversant with words, ever engaged in austerities and Vedic studies.',
44
+ 'sn': 'ॐ तपः स्वाध्यायनिरतं तपस्वी वाग्विदां वरम्। नारदं परिपप्रच्छ वाल्मीकिर्मुनिपुङ्गवम्॥'}}
45
+ ```
46
+
47
+
48
  ### Citation
49
  If you found this dataset to be useful, please consider citing the paper as follows:
50
  ```