rajeshradhakrishnan
commited on
Commit
•
06adfea
1
Parent(s):
7d5fd1c
Trim the space from text
Browse files- dataset_infos.json +3 -3
- malayalam_wiki.py +1 -1
dataset_infos.json
CHANGED
@@ -26,19 +26,19 @@
|
|
26 |
"train": {
|
27 |
"name": "train",
|
28 |
"num_bytes": 0,
|
29 |
-
"num_examples":
|
30 |
"dataset_name": "malayalam_wiki"
|
31 |
},
|
32 |
"validation": {
|
33 |
"name": "validation",
|
34 |
-
"num_bytes":
|
35 |
"num_examples": 600,
|
36 |
"dataset_name": "malayalam_wiki"
|
37 |
},
|
38 |
"test": {
|
39 |
"name": "test",
|
40 |
"num_bytes": 1959,
|
41 |
-
"num_examples":
|
42 |
"dataset_name": "malayalam_wiki"
|
43 |
}
|
44 |
},
|
|
|
26 |
"train": {
|
27 |
"name": "train",
|
28 |
"num_bytes": 0,
|
29 |
+
"num_examples": 13427646,
|
30 |
"dataset_name": "malayalam_wiki"
|
31 |
},
|
32 |
"validation": {
|
33 |
"name": "validation",
|
34 |
+
"num_bytes": 10934139,
|
35 |
"num_examples": 600,
|
36 |
"dataset_name": "malayalam_wiki"
|
37 |
},
|
38 |
"test": {
|
39 |
"name": "test",
|
40 |
"num_bytes": 1959,
|
41 |
+
"num_examples": 12124304,
|
42 |
"dataset_name": "malayalam_wiki"
|
43 |
}
|
44 |
},
|
malayalam_wiki.py
CHANGED
@@ -113,4 +113,4 @@ class MalayalamWiki(datasets.GeneratorBasedBuilder):
|
|
113 |
for file_id, file in enumerate(filepath):
|
114 |
with open(file, encoding="utf-8") as f:
|
115 |
for row_id, row in enumerate(f):
|
116 |
-
yield f"{file_id}_{row_id}", {"text": self.remove_special_characters(row)}
|
|
|
113 |
for file_id, file in enumerate(filepath):
|
114 |
with open(file, encoding="utf-8") as f:
|
115 |
for row_id, row in enumerate(f):
|
116 |
+
yield f"{file_id}_{row_id}", {"text": self.remove_special_characters(row).strip()}
|