parquet-converter commited on
Commit
872abc5
·
1 Parent(s): 21ffe29

Update parquet files

Browse files
Files changed (37) hide show
  1. .gitattributes +0 -27
  2. README.md +0 -258
  3. as/samanantar-train.parquet +3 -0
  4. bn/samanantar-train-00000-of-00005.parquet +3 -0
  5. bn/samanantar-train-00001-of-00005.parquet +3 -0
  6. bn/samanantar-train-00002-of-00005.parquet +3 -0
  7. bn/samanantar-train-00003-of-00005.parquet +3 -0
  8. bn/samanantar-train-00004-of-00005.parquet +3 -0
  9. gu/samanantar-train-00000-of-00002.parquet +3 -0
  10. gu/samanantar-train-00001-of-00002.parquet +3 -0
  11. hi/samanantar-train-00000-of-00008.parquet +3 -0
  12. hi/samanantar-train-00001-of-00008.parquet +3 -0
  13. hi/samanantar-train-00002-of-00008.parquet +3 -0
  14. hi/samanantar-train-00003-of-00008.parquet +3 -0
  15. hi/samanantar-train-00004-of-00008.parquet +3 -0
  16. hi/samanantar-train-00005-of-00008.parquet +3 -0
  17. hi/samanantar-train-00006-of-00008.parquet +3 -0
  18. hi/samanantar-train-00007-of-00008.parquet +3 -0
  19. kn/samanantar-train-00000-of-00002.parquet +3 -0
  20. kn/samanantar-train-00001-of-00002.parquet +3 -0
  21. ml/samanantar-train-00000-of-00004.parquet +3 -0
  22. ml/samanantar-train-00001-of-00004.parquet +3 -0
  23. ml/samanantar-train-00002-of-00004.parquet +3 -0
  24. ml/samanantar-train-00003-of-00004.parquet +3 -0
  25. mr/samanantar-train-00000-of-00002.parquet +3 -0
  26. mr/samanantar-train-00001-of-00002.parquet +3 -0
  27. or/samanantar-train.parquet +3 -0
  28. pa/samanantar-train-00000-of-00002.parquet +3 -0
  29. pa/samanantar-train-00001-of-00002.parquet +3 -0
  30. samanantar.py +0 -94
  31. ta/samanantar-train-00000-of-00004.parquet +3 -0
  32. ta/samanantar-train-00001-of-00004.parquet +3 -0
  33. ta/samanantar-train-00002-of-00004.parquet +3 -0
  34. ta/samanantar-train-00003-of-00004.parquet +3 -0
  35. te/samanantar-train-00000-of-00003.parquet +3 -0
  36. te/samanantar-train-00001-of-00003.parquet +3 -0
  37. te/samanantar-train-00002-of-00003.parquet +3 -0
.gitattributes DELETED
@@ -1,27 +0,0 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.bin filter=lfs diff=lfs merge=lfs -text
4
- *.bin.* filter=lfs diff=lfs merge=lfs -text
5
- *.bz2 filter=lfs diff=lfs merge=lfs -text
6
- *.ftz filter=lfs diff=lfs merge=lfs -text
7
- *.gz filter=lfs diff=lfs merge=lfs -text
8
- *.h5 filter=lfs diff=lfs merge=lfs -text
9
- *.joblib filter=lfs diff=lfs merge=lfs -text
10
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
- *.model filter=lfs diff=lfs merge=lfs -text
12
- *.msgpack filter=lfs diff=lfs merge=lfs -text
13
- *.onnx filter=lfs diff=lfs merge=lfs -text
14
- *.ot filter=lfs diff=lfs merge=lfs -text
15
- *.parquet filter=lfs diff=lfs merge=lfs -text
16
- *.pb filter=lfs diff=lfs merge=lfs -text
17
- *.pt filter=lfs diff=lfs merge=lfs -text
18
- *.pth filter=lfs diff=lfs merge=lfs -text
19
- *.rar filter=lfs diff=lfs merge=lfs -text
20
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
21
- *.tar.* filter=lfs diff=lfs merge=lfs -text
22
- *.tflite filter=lfs diff=lfs merge=lfs -text
23
- *.tgz filter=lfs diff=lfs merge=lfs -text
24
- *.xz filter=lfs diff=lfs merge=lfs -text
25
- *.zip filter=lfs diff=lfs merge=lfs -text
26
- *.zstandard filter=lfs diff=lfs merge=lfs -text
27
- *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md DELETED
@@ -1,258 +0,0 @@
1
- ---
2
- annotations_creators:
3
- - no-annotation
4
- language_creators:
5
- - found
6
- language:
7
- - en
8
- - as
9
- - bn
10
- - gu
11
- - hi
12
- - kn
13
- - ml
14
- - mr
15
- - or
16
- - pa
17
- - ta
18
- - te
19
- license:
20
- - cc-by-nc-4.0
21
- multilinguality:
22
- - translation
23
- size_categories:
24
- - unknown
25
- source_datasets:
26
- - original
27
- task_categories:
28
- - text-generation
29
- - translation
30
- task_ids: []
31
- pretty_name: Samanantar
32
- tags:
33
- - conditional-text-generation
34
- ---
35
-
36
- # Dataset Card for Samanantar
37
-
38
- ## Table of Contents
39
- - [Table of Contents](#table-of-contents)
40
- - [Dataset Description](#dataset-description)
41
- - [Dataset Summary](#dataset-summary)
42
- - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
43
- - [Languages](#languages)
44
- - [Dataset Structure](#dataset-structure)
45
- - [Data Instances](#data-instances)
46
- - [Data Fields](#data-fields)
47
- - [Data Splits](#data-splits)
48
- - [Dataset Creation](#dataset-creation)
49
- - [Curation Rationale](#curation-rationale)
50
- - [Source Data](#source-data)
51
- - [Annotations](#annotations)
52
- - [Personal and Sensitive Information](#personal-and-sensitive-information)
53
- - [Considerations for Using the Data](#considerations-for-using-the-data)
54
- - [Social Impact of Dataset](#social-impact-of-dataset)
55
- - [Discussion of Biases](#discussion-of-biases)
56
- - [Other Known Limitations](#other-known-limitations)
57
- - [Additional Information](#additional-information)
58
- - [Dataset Curators](#dataset-curators)
59
- - [Licensing Information](#licensing-information)
60
- - [Citation Information](#citation-information)
61
- - [Contributions](#contributions)
62
-
63
- ## Dataset Description
64
-
65
- - **Homepage:** https://indicnlp.ai4bharat.org/samanantar/
66
- - **Repository:**
67
- - **Paper:** [Samanantar: The Largest Publicly Available Parallel Corpora Collection for 11 Indic Languages](https://arxiv.org/abs/2104.05596)
68
- - **Leaderboard:**
69
- - **Point of Contact:**
70
-
71
- ### Dataset Summary
72
-
73
- Samanantar is the largest publicly available parallel corpora collection for Indic language: Assamese, Bengali,
74
- Gujarati, Hindi, Kannada, Malayalam, Marathi, Oriya, Punjabi, Tamil, Telugu.
75
-
76
- The corpus has 49.6M sentence pairs between English to Indian Languages.
77
-
78
- ### Supported Tasks and Leaderboards
79
-
80
- [More Information Needed]
81
-
82
- ### Languages
83
-
84
- Samanantar contains parallel sentences between English (`en`) and 11 Indic language:
85
- - Assamese (`as`),
86
- - Bengali (`bn`),
87
- - Gujarati (`gu`),
88
- - Hindi (`hi`),
89
- - Kannada (`kn`),
90
- - Malayalam (`ml`),
91
- - Marathi (`mr`),
92
- - Odia (`or`),
93
- - Punjabi (`pa`),
94
- - Tamil (`ta`) and
95
- - Telugu (`te`).
96
-
97
- ## Dataset Structure
98
-
99
- ### Data Instances
100
-
101
- ```
102
- {
103
- 'idx': 0,
104
- 'src': 'Prime Minister Narendra Modi met Her Majesty Queen Maxima of the Kingdom of the Netherlands today.',
105
- 'tgt': 'নতুন দিল্লিতে সোমবার প্রধানমন্ত্রী শ্রী নরেন্দ্র মোদীর সঙ্গে নেদারন্যান্ডসের মহারানী ম্যাক্সিমা সাক্ষাৎ করেন।',
106
- 'data_source': 'pmi'
107
- }
108
- ```
109
-
110
- ### Data Fields
111
-
112
- - `idx` (int): ID.
113
- - `src` (string): Sentence in source language (English).
114
- - `tgt` (string): Sentence in destination language (one of the 11 Indic languages).
115
- - `data_source` (string): Source of the data.
116
- For created data sources, depending on the destination language, it might be one of:
117
- - anuvaad_catchnews
118
- - anuvaad_DD_National
119
- - anuvaad_DD_sports
120
- - anuvaad_drivespark
121
- - anuvaad_dw
122
- - anuvaad_financialexpress
123
- - anuvaad-general_corpus
124
- - anuvaad_goodreturns
125
- - anuvaad_indianexpress
126
- - anuvaad_mykhel
127
- - anuvaad_nativeplanet
128
- - anuvaad_newsonair
129
- - anuvaad_nouns_dictionary
130
- - anuvaad_ocr
131
- - anuvaad_oneindia
132
- - anuvaad_pib
133
- - anuvaad_pib_archives
134
- - anuvaad_prothomalo
135
- - anuvaad_timesofindia
136
- - asianetnews
137
- - betterindia
138
- - bridge
139
- - business_standard
140
- - catchnews
141
- - coursera
142
- - dd_national
143
- - dd_sports
144
- - dwnews
145
- - drivespark
146
- - fin_express
147
- - goodreturns
148
- - gu_govt
149
- - jagran-business
150
- - jagran-education
151
- - jagran-sports
152
- - ie_business
153
- - ie_education
154
- - ie_entertainment
155
- - ie_general
156
- - ie_lifestyle
157
- - ie_news
158
- - ie_sports
159
- - ie_tech
160
- - indiccorp
161
- - jagran-entertainment
162
- - jagran-lifestyle
163
- - jagran-news
164
- - jagran-tech
165
- - khan_academy
166
- - Kurzgesagt
167
- - marketfeed
168
- - mykhel
169
- - nativeplanet
170
- - nptel
171
- - ocr
172
- - oneindia
173
- - pa_govt
174
- - pmi
175
- - pranabmukherjee
176
- - sakshi
177
- - sentinel
178
- - thewire
179
- - toi
180
- - tribune
181
- - vsauce
182
- - wikipedia
183
- - zeebiz
184
-
185
- ### Data Splits
186
-
187
- [More Information Needed]
188
-
189
- ## Dataset Creation
190
-
191
- ### Curation Rationale
192
-
193
- [More Information Needed]
194
-
195
- ### Source Data
196
-
197
- #### Initial Data Collection and Normalization
198
-
199
- [More Information Needed]
200
-
201
- #### Who are the source language producers?
202
-
203
- [More Information Needed]
204
-
205
- ### Annotations
206
-
207
- #### Annotation process
208
-
209
- [More Information Needed]
210
-
211
- #### Who are the annotators?
212
-
213
- [More Information Needed]
214
-
215
- ### Personal and Sensitive Information
216
-
217
- [More Information Needed]
218
-
219
- ## Considerations for Using the Data
220
-
221
- ### Social Impact of Dataset
222
-
223
- [More Information Needed]
224
-
225
- ### Discussion of Biases
226
-
227
- [More Information Needed]
228
-
229
- ### Other Known Limitations
230
-
231
- [More Information Needed]
232
-
233
- ## Additional Information
234
-
235
- ### Dataset Curators
236
-
237
- [More Information Needed]
238
-
239
- ### Licensing Information
240
-
241
- [Creative Commons Attribution-NonCommercial 4.0 International](https://creativecommons.org/licenses/by-nc/4.0/).
242
-
243
- ### Citation Information
244
-
245
- ```
246
- @misc{ramesh2021samanantar,
247
- title={Samanantar: The Largest Publicly Available Parallel Corpora Collection for 11 Indic Languages},
248
- author={Gowtham Ramesh and Sumanth Doddapaneni and Aravinth Bheemaraj and Mayank Jobanputra and Raghavan AK and Ajitesh Sharma and Sujit Sahoo and Harshita Diddee and Mahalakshmi J and Divyanshu Kakwani and Navneet Kumar and Aswin Pradeep and Srihari Nagaraj and Kumar Deepak and Vivek Raghavan and Anoop Kunchukuttan and Pratyush Kumar and Mitesh Shantadevi Khapra},
249
- year={2021},
250
- eprint={2104.05596},
251
- archivePrefix={arXiv},
252
- primaryClass={cs.CL}
253
- }
254
- ```
255
-
256
- ### Contributions
257
-
258
- Thanks to [@albertvillanova](https://github.com/albertvillanova) for adding this dataset.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
as/samanantar-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:939758e606cb5a9ac9c0d9124dd5cbd4f44410c354cddda6b42b5187905464b2
3
+ size 19490676
bn/samanantar-train-00000-of-00005.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b7a94ffdd75bd4e21ad932e1c345da5626196145825b6190b3fee6570f264338
3
+ size 273394368
bn/samanantar-train-00001-of-00005.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:653838576fc1d8fb3f4490c09deadc6e75a0eab94b902387ced524ebad673d48
3
+ size 273482482
bn/samanantar-train-00002-of-00005.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b9f173d7267418182112e9b9d8e09f0fbb96831464425962adeb638822452734
3
+ size 273287216
bn/samanantar-train-00003-of-00005.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:16b960622f8ed6a82335b0f4f7258079a1324a0c17e6e27aa01077c35a5109c5
3
+ size 273325355
bn/samanantar-train-00004-of-00005.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ac91e5d8b8fff4a181ee5b65944fc16969afb4f019a788e48eaf6757afc33a98
3
+ size 111801027
gu/samanantar-train-00000-of-00002.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9def7f0788291895cc01e938d0dc4d375610003fbe8504ff61162af0b6275224
3
+ size 274195308
gu/samanantar-train-00001-of-00002.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:608f801ba42a917f9ef1bd6fb3dce32b0ed51f7f7fe2563ac9bd918d54b4f457
3
+ size 97665859
hi/samanantar-train-00000-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6fd31b8713ca74a302a8c26fd6c3ed4e603a8b6a31704572f68c6554fca7389f
3
+ size 267906557
hi/samanantar-train-00001-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:188501796e3d9b054762b28fc764ef902547202741185997b5f21f4a7b67f370
3
+ size 267912196
hi/samanantar-train-00002-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4776212963867daadd05bd9e8092e72b10295c9a27d1b4a5c61945bc86d6894f
3
+ size 267920172
hi/samanantar-train-00003-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:897847fd134c34b9f0166309143f3e8df618360e75042297d08039d03e1d1fe8
3
+ size 267808804
hi/samanantar-train-00004-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ad7c2e0337c22ea337f69f9aa0a18a25b6828a1345c1309bb3349356ce6480ea
3
+ size 267948872
hi/samanantar-train-00005-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d976c10b638a15353c3b1f775dfbd7e1c000e524d967e3d07cc4960918556047
3
+ size 267901632
hi/samanantar-train-00006-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8a25a2a3348142a9bd089da284f7843d87b7740f27dbe4ecdbd0d17b45f63559
3
+ size 267830712
hi/samanantar-train-00007-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:411e2e54da6b3216ba58bd62c3b377a916c0fc54ddb9bb6aaf8df9387cd96143
3
+ size 51689501
kn/samanantar-train-00000-of-00002.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d755b839c2154147869cb90984b11c93db183ddd45f1af303ab08b35d31dea2e
3
+ size 267553706
kn/samanantar-train-00001-of-00002.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b5bd3c06102d33827ef4209f371cba71abc964c7e7b6576e320c6fe39cbc15b0
3
+ size 218255124
ml/samanantar-train-00000-of-00004.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7cae309d9d3408a089482e4f2a86fe9de2117590b6534788ab008666f6093df0
3
+ size 255424124
ml/samanantar-train-00001-of-00004.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c7a228211e09469d22ff52896ee11d26ab3a1cc4c861d0151074464e1a90327
3
+ size 255309798
ml/samanantar-train-00002-of-00004.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:515e74bd8b148037574f83d265d5c752a93894733d59c2c93e7ce9c159d568f5
3
+ size 255357147
ml/samanantar-train-00003-of-00004.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7d0616ebd5199668100dcb09cada411fa89bf4aae77b8bfcebd9d5d19722601b
3
+ size 22740053
mr/samanantar-train-00000-of-00002.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3c7c3b722383f639fa67b13e809088486c55b53a48803ad41728337c24e66f81
3
+ size 263759960
mr/samanantar-train-00001-of-00002.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2871e8c4108cc82ee4666aeb2b9c248162f7b019e4153028a442318925693917
3
+ size 226316359
or/samanantar-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3f6852e6a3c015b48405c17c15d4705533d779b89927810604d8d930b6569046
3
+ size 137099710
pa/samanantar-train-00000-of-00002.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a5073c75d8435e946a40465d1c702c40fbff8692939c09ae5ff44b921a0192e4
3
+ size 269660861
pa/samanantar-train-00001-of-00002.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e5112af80bb1d70000552ae9790e6d3779188bfad95440267ac3d9443ed40b22
3
+ size 202773551
samanantar.py DELETED
@@ -1,94 +0,0 @@
1
- # coding=utf-8
2
- # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
- """Samanantar dataset."""
16
-
17
- from pathlib import Path
18
-
19
- import datasets
20
-
21
-
22
- _CITATION = """\
23
- @misc{ramesh2021samanantar,
24
- title={Samanantar: The Largest Publicly Available Parallel Corpora Collection for 11 Indic Languages},
25
- author={Gowtham Ramesh and Sumanth Doddapaneni and Aravinth Bheemaraj and Mayank Jobanputra and Raghavan AK and Ajitesh Sharma and Sujit Sahoo and Harshita Diddee and Mahalakshmi J and Divyanshu Kakwani and Navneet Kumar and Aswin Pradeep and Srihari Nagaraj and Kumar Deepak and Vivek Raghavan and Anoop Kunchukuttan and Pratyush Kumar and Mitesh Shantadevi Khapra},
26
- year={2021},
27
- eprint={2104.05596},
28
- archivePrefix={arXiv},
29
- primaryClass={cs.CL}
30
- }
31
- """
32
-
33
- _DESCRIPTION = """\
34
- Samanantar is the largest publicly available parallel corpora collection for Indic languages: Assamese, Bengali, Gujarati, Hindi, Kannada, Malayalam, Marathi, Oriya, Punjabi, Tamil, Telugu. The corpus has 49.6M sentence pairs between English to Indian Languages.
35
- """
36
-
37
- _HOMEPAGE = "https://indicnlp.ai4bharat.org/samanantar/"
38
-
39
- _LICENSE = "Creative Commons Attribution-NonCommercial 4.0 International"
40
-
41
- _URLS = {
42
- "0.3.0": "https://ai4b-my.sharepoint.com/:u:/g/personal/sumanthdoddapaneni_ai4bharat_org/EXhX84sbTQhLrsURCU9DlUwBVyJ10cYK9bQQe1SMljf_yA?e=q7GJpb&download=1",
43
- }
44
- _LANGUAGES = ["as", "bn", "gu", "hi", "kn", "ml", "mr", "or", "pa", "ta", "te"]
45
-
46
-
47
- class SamanantarConfig(datasets.BuilderConfig):
48
- VERSION = datasets.Version("0.3.0")
49
-
50
- def __init__(self, language=None, version=VERSION, **kwargs):
51
- super().__init__(name=language, version=version, **kwargs)
52
- self.language = language
53
-
54
-
55
- class Samanantar(datasets.GeneratorBasedBuilder):
56
- """Samanantar dataset."""
57
-
58
- BUILDER_CONFIG_CLASS = SamanantarConfig
59
- BUILDER_CONFIGS = [SamanantarConfig(language=language) for language in _LANGUAGES]
60
-
61
- def _info(self):
62
- return datasets.DatasetInfo(
63
- description=_DESCRIPTION,
64
- features=datasets.Features(
65
- {
66
- "idx": datasets.Value("int64"),
67
- "src": datasets.Value("string"),
68
- "tgt": datasets.Value("string"),
69
- }
70
- ),
71
- supervised_keys=None,
72
- homepage=_HOMEPAGE,
73
- license=_LICENSE,
74
- citation=_CITATION,
75
- )
76
-
77
- def _split_generators(self, dl_manager):
78
- urls = _URLS[str(self.config.version)]
79
- data_dir = dl_manager.download_and_extract(urls)
80
- return [
81
- datasets.SplitGenerator(
82
- name=datasets.Split.TRAIN,
83
- gen_kwargs={
84
- "data_dir": (Path(data_dir) / "v2" / f"en-{self.config.language}"),
85
- },
86
- ),
87
- ]
88
-
89
- def _generate_examples(self, data_dir):
90
- src_path = data_dir / "train.en"
91
- tgt_path = data_dir / f"train.{self.config.language}"
92
- with src_path.open(encoding="utf-8") as src_file, tgt_path.open(encoding="utf-8") as tgt_file:
93
- for idx, (src_line, tgt_line) in enumerate(zip(src_file, tgt_file)):
94
- yield idx, {"idx": idx, "src": src_line.strip(), "tgt": tgt_line.strip()}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ta/samanantar-train-00000-of-00004.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7208b4d42c22b55f9379ebb484fa6b649e4d193da22917bfd23a3dfdfbb51508
3
+ size 249469172
ta/samanantar-train-00001-of-00004.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:37ce5902cbe0d618d4a0d057809cf3604fddfe314e04c372e3c338d6c1710fd8
3
+ size 249385634
ta/samanantar-train-00002-of-00004.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:86d55dde4ad2a9834b6beed875c5e67af385dace69f1e43763c54dd6123ac9f1
3
+ size 249467054
ta/samanantar-train-00003-of-00004.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:363024efb6d9bb38148fadf4bee1f5c607219b28bcd614f7c4768cfa2134a76a
3
+ size 9007117
te/samanantar-train-00000-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a04bce5f7f22a89ecf224347c4ce1c185f3cb1bc216c07ca10322806acc24880
3
+ size 268554507
te/samanantar-train-00001-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cd364ba39e2c0ccaf5493ed3df20ab2671f1b49e54f5f1d77222f78e30e21314
3
+ size 268538087
te/samanantar-train-00002-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5ec6c21b0088830e98148527f6b4bbef105e2a3e051632f00a20e64112e0f2f9
3
+ size 65123606