Datasets:
Update simple_tamil.py
Browse files- simple_tamil.py +16 -26
simple_tamil.py
CHANGED
|
@@ -1,40 +1,30 @@
|
|
| 1 |
-
|
| 2 |
-
#
|
| 3 |
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
-
# you may not use this file except in compliance with the License.
|
| 5 |
-
# You may obtain a copy of the License at
|
| 6 |
-
#
|
| 7 |
-
# http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
-
#
|
| 9 |
-
# Unless required by applicable law or agreed to in writing, software
|
| 10 |
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
-
# See the License for the specific language governing permissions and
|
| 13 |
-
# limitations under the License.
|
| 14 |
|
|
|
|
| 15 |
import json
|
| 16 |
import os
|
| 17 |
|
| 18 |
import datasets
|
| 19 |
|
| 20 |
_CITATION = """\
|
| 21 |
-
@misc{
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
|
|
|
|
|
|
| 27 |
year = {2022},
|
| 28 |
}
|
| 29 |
"""
|
| 30 |
-
|
| 31 |
_DESCRIPTION = """\
|
| 32 |
-
The data contains audio and trasncripts in Tamil language.
|
| 33 |
"""
|
| 34 |
|
| 35 |
_HOMEPAGE = ""
|
| 36 |
|
| 37 |
-
_LICENSE = "
|
| 38 |
|
| 39 |
|
| 40 |
_METADATA_URLS = {
|
|
@@ -47,8 +37,8 @@ _URLS = {
|
|
| 47 |
|
| 48 |
}
|
| 49 |
|
| 50 |
-
class
|
| 51 |
-
|
| 52 |
|
| 53 |
VERSION = datasets.Version("1.1.0")
|
| 54 |
def _info(self):
|
|
@@ -57,7 +47,7 @@ class simpleData(datasets.GeneratorBasedBuilder):
|
|
| 57 |
"audio": datasets.Audio(sampling_rate=16_000),
|
| 58 |
"path": datasets.Value("string"),
|
| 59 |
"sentence": datasets.Value("string"),
|
| 60 |
-
|
| 61 |
}
|
| 62 |
)
|
| 63 |
return datasets.DatasetInfo(
|
|
@@ -121,4 +111,4 @@ class simpleData(datasets.GeneratorBasedBuilder):
|
|
| 121 |
yield id_, result
|
| 122 |
id_ += 1
|
| 123 |
elif inside_clips_dir:
|
| 124 |
-
break
|
|
|
|
| 1 |
+
"""Tamil Dataset - contains 90 mins of speech data"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
+
import csv
|
| 4 |
import json
|
| 5 |
import os
|
| 6 |
|
| 7 |
import datasets
|
| 8 |
|
| 9 |
_CITATION = """\
|
| 10 |
+
@misc{simpledata_1,
|
| 11 |
+
title = {Whisper model for tamil-to-eng translation},
|
| 12 |
+
publisher = {Achitha},
|
| 13 |
+
year = {2022},
|
| 14 |
+
}
|
| 15 |
+
@misc{simpledata_2,
|
| 16 |
+
title = {Fine-tuning whisper model},
|
| 17 |
+
publisher = {Achitha},
|
| 18 |
year = {2022},
|
| 19 |
}
|
| 20 |
"""
|
|
|
|
| 21 |
_DESCRIPTION = """\
|
| 22 |
+
The data contains roughly one and half hours of audio and trasncripts in Tamil language.
|
| 23 |
"""
|
| 24 |
|
| 25 |
_HOMEPAGE = ""
|
| 26 |
|
| 27 |
+
_LICENSE = ""
|
| 28 |
|
| 29 |
|
| 30 |
_METADATA_URLS = {
|
|
|
|
| 37 |
|
| 38 |
}
|
| 39 |
|
| 40 |
+
class simple_data(datasets.GeneratorBasedBuilder):
|
| 41 |
+
|
| 42 |
|
| 43 |
VERSION = datasets.Version("1.1.0")
|
| 44 |
def _info(self):
|
|
|
|
| 47 |
"audio": datasets.Audio(sampling_rate=16_000),
|
| 48 |
"path": datasets.Value("string"),
|
| 49 |
"sentence": datasets.Value("string"),
|
| 50 |
+
|
| 51 |
}
|
| 52 |
)
|
| 53 |
return datasets.DatasetInfo(
|
|
|
|
| 111 |
yield id_, result
|
| 112 |
id_ += 1
|
| 113 |
elif inside_clips_dir:
|
| 114 |
+
break
|