Samuael A commited on
Commit ·
e238fcb
1
Parent(s): 720f968
Minor changes
Browse files- ALFFAAmharic.py +0 -31
ALFFAAmharic.py
CHANGED
|
@@ -1,19 +1,3 @@
|
|
| 1 |
-
# coding=utf-8
|
| 2 |
-
# Copyright 2021 The TensorFlow Datasets Authors and the HuggingFace Datasets Authors.
|
| 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 |
-
|
| 16 |
-
# Lint as: python3
|
| 17 |
"""ALFFAAmharic automatic speech recognition dataset."""
|
| 18 |
|
| 19 |
|
|
@@ -28,26 +12,14 @@ _CITATION = """\
|
|
| 28 |
@inproceedings{
|
| 29 |
title={ALFFAAmharic Acoustic-Phonetic Continuous Speech Corpus},
|
| 30 |
author={Samuael et al},
|
| 31 |
-
ldc_catalog_no={LDC93S1},
|
| 32 |
-
DOI={https://doi.org/10.35111/17gk-bn40},
|
| 33 |
-
journal={Linguistic Data Consortium, Philadelphia},
|
| 34 |
-
year={1983}
|
| 35 |
}
|
| 36 |
"""
|
| 37 |
|
| 38 |
_DESCRIPTION = """\
|
| 39 |
The ALFFAAmharic corpus of reading speech has been developed to provide speech data for acoustic-phonetic research studies
|
| 40 |
and for the evaluation of automatic speech recognition systems.
|
| 41 |
-
|
| 42 |
-
ALFFAAmharic contains high-quality recordings of 630 individuals/speakers with 8 different American English dialects,
|
| 43 |
-
with each individual reading up to 10 phonetically rich sentences.
|
| 44 |
-
|
| 45 |
-
More info on ALFFAAmharic dataset can be understood from the "README" which can be found here:
|
| 46 |
-
https://catalog.ldc.upenn.edu/docs/LDC93S1/readme.txt
|
| 47 |
"""
|
| 48 |
|
| 49 |
-
_HOMEPAGE = "https://catalog.ldc.upenn.edu/LDC93S1"
|
| 50 |
-
|
| 51 |
|
| 52 |
class ALFFAAmharicASRConfig(datasets.BuilderConfig):
|
| 53 |
"""BuilderConfig for ALFFAAmharicASR."""
|
|
@@ -73,8 +45,6 @@ class ALFFAAmharic(datasets.GeneratorBasedBuilder):
|
|
| 73 |
def manual_download_instructions(self):
|
| 74 |
return (
|
| 75 |
"To use ALFFAAmharic you have to download it manually. "
|
| 76 |
-
"Please create an account and download the dataset from https://catalog.ldc.upenn.edu/LDC93S1 \n"
|
| 77 |
-
"Then extract all files in one folder and load the dataset with: "
|
| 78 |
"`datasets.load_dataset('ALFFAAmharic_asr', data_dir='path/to/folder/folder_name')`"
|
| 79 |
)
|
| 80 |
|
|
@@ -89,7 +59,6 @@ class ALFFAAmharic(datasets.GeneratorBasedBuilder):
|
|
| 89 |
}
|
| 90 |
),
|
| 91 |
supervised_keys=("file", "text"),
|
| 92 |
-
homepage=_HOMEPAGE,
|
| 93 |
citation=_CITATION,
|
| 94 |
task_templates=[AutomaticSpeechRecognition()],
|
| 95 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
"""ALFFAAmharic automatic speech recognition dataset."""
|
| 2 |
|
| 3 |
|
|
|
|
| 12 |
@inproceedings{
|
| 13 |
title={ALFFAAmharic Acoustic-Phonetic Continuous Speech Corpus},
|
| 14 |
author={Samuael et al},
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
}
|
| 16 |
"""
|
| 17 |
|
| 18 |
_DESCRIPTION = """\
|
| 19 |
The ALFFAAmharic corpus of reading speech has been developed to provide speech data for acoustic-phonetic research studies
|
| 20 |
and for the evaluation of automatic speech recognition systems.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
"""
|
| 22 |
|
|
|
|
|
|
|
| 23 |
|
| 24 |
class ALFFAAmharicASRConfig(datasets.BuilderConfig):
|
| 25 |
"""BuilderConfig for ALFFAAmharicASR."""
|
|
|
|
| 45 |
def manual_download_instructions(self):
|
| 46 |
return (
|
| 47 |
"To use ALFFAAmharic you have to download it manually. "
|
|
|
|
|
|
|
| 48 |
"`datasets.load_dataset('ALFFAAmharic_asr', data_dir='path/to/folder/folder_name')`"
|
| 49 |
)
|
| 50 |
|
|
|
|
| 59 |
}
|
| 60 |
),
|
| 61 |
supervised_keys=("file", "text"),
|
|
|
|
| 62 |
citation=_CITATION,
|
| 63 |
task_templates=[AutomaticSpeechRecognition()],
|
| 64 |
)
|