Achitha commited on
Commit
7d15f4c
1 Parent(s): 7ef8794

Update simple_tamil.py

Browse files
Files changed (1) hide show
  1. simple_tamil.py +16 -26
simple_tamil.py CHANGED
@@ -1,40 +1,30 @@
1
- # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
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{simple_1,
22
- doi = {10.48550/ARXIV.2207.13331},
23
-
24
- author = {Achitha},
25
- title = {simple tamil sentences dataset Automatic Speech Recognition in Tamil},
26
- publisher = {achitha},
 
 
27
  year = {2022},
28
  }
29
  """
30
-
31
  _DESCRIPTION = """\
32
- The data contains audio and trasncripts in Tamil language. The transcripts have been de-duplicated using exact match deduplication.
33
  """
34
 
35
  _HOMEPAGE = ""
36
 
37
- _LICENSE = "https://creativecommons.org/licenses/"
38
 
39
 
40
  _METADATA_URLS = {
@@ -47,8 +37,8 @@ _URLS = {
47
 
48
  }
49
 
50
- class simpleData(datasets.GeneratorBasedBuilder):
51
- """simpleData contains transcribed speech corpus for training ASR systems for Tamil language."""
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
- "length": datasets.Value("float")
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