Files changed (33) hide show
  1. README.md +49 -6
  2. corpus/files/metadata_dev.tsv +0 -0
  3. corpus/files/metadata_test.tsv +0 -0
  4. corpus/files/metadata_train.tsv +0 -0
  5. corpus/files/tars_dev.paths +0 -1
  6. corpus/files/tars_test.paths +0 -1
  7. corpus/files/tars_train.paths +0 -3
  8. corpus/speech/train/RDATA2.tar.gz +0 -3
  9. ravnursson_asr.py +0 -152
  10. corpus/speech/dev.tar.gz → ravnursson_asr/test-00000-of-00001.parquet +2 -2
  11. corpus/speech/test.tar.gz → ravnursson_asr/train-00000-of-00022.parquet +2 -2
  12. corpus/speech/train/RDATA1O.tar.gz → ravnursson_asr/train-00001-of-00022.parquet +2 -2
  13. corpus/speech/train/RDATA1OP.tar.gz → ravnursson_asr/train-00002-of-00022.parquet +2 -2
  14. ravnursson_asr/train-00003-of-00022.parquet +3 -0
  15. ravnursson_asr/train-00004-of-00022.parquet +3 -0
  16. ravnursson_asr/train-00005-of-00022.parquet +3 -0
  17. ravnursson_asr/train-00006-of-00022.parquet +3 -0
  18. ravnursson_asr/train-00007-of-00022.parquet +3 -0
  19. ravnursson_asr/train-00008-of-00022.parquet +3 -0
  20. ravnursson_asr/train-00009-of-00022.parquet +3 -0
  21. ravnursson_asr/train-00010-of-00022.parquet +3 -0
  22. ravnursson_asr/train-00011-of-00022.parquet +3 -0
  23. ravnursson_asr/train-00012-of-00022.parquet +3 -0
  24. ravnursson_asr/train-00013-of-00022.parquet +3 -0
  25. ravnursson_asr/train-00014-of-00022.parquet +3 -0
  26. ravnursson_asr/train-00015-of-00022.parquet +3 -0
  27. ravnursson_asr/train-00016-of-00022.parquet +3 -0
  28. ravnursson_asr/train-00017-of-00022.parquet +3 -0
  29. ravnursson_asr/train-00018-of-00022.parquet +3 -0
  30. ravnursson_asr/train-00019-of-00022.parquet +3 -0
  31. ravnursson_asr/train-00020-of-00022.parquet +3 -0
  32. ravnursson_asr/train-00021-of-00022.parquet +3 -0
  33. ravnursson_asr/validation-00000-of-00001.parquet +3 -0
README.md CHANGED
@@ -1,27 +1,70 @@
1
  ---
2
  annotations_creators:
3
  - expert-generated
4
- language:
5
- - fo
6
  language_creators:
7
  - expert-generated
 
 
8
  license:
9
  - cc-by-4.0
10
  multilinguality:
11
  - monolingual
12
- pretty_name: RAVNURSSON FAROESE SPEECH AND TRANSCRIPTS
13
  size_categories:
14
  - 10K<n<100K
15
  source_datasets:
16
  - original
 
 
 
 
17
  tags:
18
  - faroe islands
19
  - faroese
20
  - ravnur project
21
  - speech recognition in faroese
22
- task_categories:
23
- - automatic-speech-recognition
24
- task_ids: []
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  ---
26
 
27
  # Dataset Card for ravnursson_asr
 
1
  ---
2
  annotations_creators:
3
  - expert-generated
 
 
4
  language_creators:
5
  - expert-generated
6
+ language:
7
+ - fo
8
  license:
9
  - cc-by-4.0
10
  multilinguality:
11
  - monolingual
 
12
  size_categories:
13
  - 10K<n<100K
14
  source_datasets:
15
  - original
16
+ task_categories:
17
+ - automatic-speech-recognition
18
+ task_ids: []
19
+ pretty_name: RAVNURSSON FAROESE SPEECH AND TRANSCRIPTS
20
  tags:
21
  - faroe islands
22
  - faroese
23
  - ravnur project
24
  - speech recognition in faroese
25
+ dataset_info:
26
+ config_name: ravnursson_asr
27
+ features:
28
+ - name: audio_id
29
+ dtype: string
30
+ - name: audio
31
+ dtype:
32
+ audio:
33
+ sampling_rate: 16000
34
+ - name: speaker_id
35
+ dtype: string
36
+ - name: gender
37
+ dtype: string
38
+ - name: age
39
+ dtype: string
40
+ - name: duration
41
+ dtype: float32
42
+ - name: normalized_text
43
+ dtype: string
44
+ - name: dialect
45
+ dtype: string
46
+ splits:
47
+ - name: train
48
+ num_bytes: 10827081972.352
49
+ num_examples: 65616
50
+ - name: validation
51
+ num_bytes: 279435202.508
52
+ num_examples: 3331
53
+ - name: test
54
+ num_bytes: 255116527.868
55
+ num_examples: 3002
56
+ download_size: 6156477941
57
+ dataset_size: 11361633702.727999
58
+ configs:
59
+ - config_name: ravnursson_asr
60
+ data_files:
61
+ - split: train
62
+ path: ravnursson_asr/train-*
63
+ - split: validation
64
+ path: ravnursson_asr/validation-*
65
+ - split: test
66
+ path: ravnursson_asr/test-*
67
+ default: true
68
  ---
69
 
70
  # Dataset Card for ravnursson_asr
corpus/files/metadata_dev.tsv DELETED
The diff for this file is too large to render. See raw diff
 
corpus/files/metadata_test.tsv DELETED
The diff for this file is too large to render. See raw diff
 
corpus/files/metadata_train.tsv DELETED
The diff for this file is too large to render. See raw diff
 
corpus/files/tars_dev.paths DELETED
@@ -1 +0,0 @@
1
- corpus/speech/dev.tar.gz
 
 
corpus/files/tars_test.paths DELETED
@@ -1 +0,0 @@
1
- corpus/speech/test.tar.gz
 
 
corpus/files/tars_train.paths DELETED
@@ -1,3 +0,0 @@
1
- corpus/speech/train/RDATA1O.tar.gz
2
- corpus/speech/train/RDATA1OP.tar.gz
3
- corpus/speech/train/RDATA2.tar.gz
 
 
 
 
corpus/speech/train/RDATA2.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:550e65890f87aa030a9507f9593eb1bfabd64b9f23405097ce2279cc4741a24d
3
- size 4748213488
 
 
 
 
ravnursson_asr.py DELETED
@@ -1,152 +0,0 @@
1
- from collections import defaultdict
2
- import os
3
- import json
4
- import csv
5
-
6
- import datasets
7
-
8
- _NAME="ravnursson_asr"
9
- _VERSION="1.0.0"
10
- _AUDIO_EXTENSIONS=".flac"
11
-
12
- _DESCRIPTION = """
13
- The corpus \"RAVNURSSON FAROESE SPEECH AND TRANSCRIPTS\" (or RAVNURSSON Corpus for short) is a collection of speech recordings with transcriptions intended for Automatic Speech Recognition (ASR) applications in the language that is spoken at the Faroe Islands (Faroese). It was curated at the Reykjavík University (RU) in 2022.
14
- """
15
-
16
- _CITATION = """
17
- @misc{carlosmenaravnursson2022,
18
- title={Ravnursson Faroese Speech and Transcripts},
19
- author={Hernandez Mena, Carlos Daniel and Simonsen, Annika},
20
- year={2022},
21
- url={http://hdl.handle.net/20.500.12537/276},
22
- }
23
- """
24
-
25
- _HOMEPAGE = "http://hdl.handle.net/20.500.12537/276"
26
-
27
- _LICENSE = "CC-BY-4.0, See https://creativecommons.org/licenses/by/4.0/"
28
-
29
- _BASE_DATA_DIR = "corpus/"
30
- _METADATA_TRAIN = os.path.join(_BASE_DATA_DIR,"files","metadata_train.tsv")
31
- _METADATA_TEST = os.path.join(_BASE_DATA_DIR,"files", "metadata_test.tsv")
32
- _METADATA_DEV = os.path.join(_BASE_DATA_DIR,"files", "metadata_dev.tsv")
33
-
34
- _TARS_TRAIN = os.path.join(_BASE_DATA_DIR,"files","tars_train.paths")
35
- _TARS_TEST = os.path.join(_BASE_DATA_DIR,"files", "tars_test.paths")
36
- _TARS_DEV = os.path.join(_BASE_DATA_DIR,"files", "tars_dev.paths")
37
-
38
- class RavnurssonAsrConfig(datasets.BuilderConfig):
39
- """BuilderConfig for Ravnursson Corpus"""
40
-
41
- def __init__(self, name, **kwargs):
42
- name=_NAME
43
- super().__init__(name=name, **kwargs)
44
-
45
- class RavnurssonAsr(datasets.GeneratorBasedBuilder):
46
- """Ravnursson Faroese Speech and Transcripts"""
47
-
48
- VERSION = datasets.Version(_VERSION)
49
- BUILDER_CONFIGS = [
50
- RavnurssonAsrConfig(
51
- name=_NAME,
52
- version=datasets.Version(_VERSION),
53
- )
54
- ]
55
-
56
- def _info(self):
57
- features = datasets.Features(
58
- {
59
- "audio_id": datasets.Value("string"),
60
- "audio": datasets.Audio(sampling_rate=16000),
61
- "speaker_id": datasets.Value("string"),
62
- "gender": datasets.Value("string"),
63
- "age": datasets.Value("string"),
64
- "duration": datasets.Value("float32"),
65
- "normalized_text": datasets.Value("string"),
66
- "dialect": datasets.Value("string"),
67
- }
68
- )
69
- return datasets.DatasetInfo(
70
- description=_DESCRIPTION,
71
- features=features,
72
- homepage=_HOMEPAGE,
73
- license=_LICENSE,
74
- citation=_CITATION,
75
- )
76
-
77
- def _split_generators(self, dl_manager):
78
-
79
- metadata_train=dl_manager.download_and_extract(_METADATA_TRAIN)
80
- metadata_test=dl_manager.download_and_extract(_METADATA_TEST)
81
- metadata_dev=dl_manager.download_and_extract(_METADATA_DEV)
82
-
83
- tars_train=dl_manager.download_and_extract(_TARS_TRAIN)
84
- tars_test=dl_manager.download_and_extract(_TARS_TEST)
85
- tars_dev=dl_manager.download_and_extract(_TARS_DEV)
86
-
87
- hash_tar_files=defaultdict(dict)
88
- with open(tars_train,'r') as f:
89
- hash_tar_files['train']=[path.replace('\n','') for path in f]
90
-
91
- with open(tars_test,'r') as f:
92
- hash_tar_files['test']=[path.replace('\n','') for path in f]
93
-
94
- with open(tars_dev,'r') as f:
95
- hash_tar_files['dev']=[path.replace('\n','') for path in f]
96
-
97
- hash_meta_paths={"train":metadata_train,"test":metadata_test,"dev":metadata_dev}
98
- audio_paths = dl_manager.download(hash_tar_files)
99
-
100
- splits=["train","dev","test"]
101
- local_extracted_audio_paths = (
102
- dl_manager.extract(audio_paths) if not dl_manager.is_streaming else
103
- {
104
- split:[None] * len(audio_paths[split]) for split in splits
105
- }
106
- )
107
-
108
- return [
109
- datasets.SplitGenerator(
110
- name=datasets.Split.TRAIN,
111
- gen_kwargs={
112
- "audio_archives":[dl_manager.iter_archive(archive) for archive in audio_paths["train"]],
113
- "local_extracted_archives_paths": local_extracted_audio_paths["train"],
114
- "metadata_paths": hash_meta_paths["train"],
115
- }
116
- ),
117
- datasets.SplitGenerator(
118
- name=datasets.Split.VALIDATION,
119
- gen_kwargs={
120
- "audio_archives": [dl_manager.iter_archive(archive) for archive in audio_paths["dev"]],
121
- "local_extracted_archives_paths": local_extracted_audio_paths["dev"],
122
- "metadata_paths": hash_meta_paths["dev"],
123
- }
124
- ),
125
- datasets.SplitGenerator(
126
- name=datasets.Split.TEST,
127
- gen_kwargs={
128
- "audio_archives": [dl_manager.iter_archive(archive) for archive in audio_paths["test"]],
129
- "local_extracted_archives_paths": local_extracted_audio_paths["test"],
130
- "metadata_paths": hash_meta_paths["test"],
131
- }
132
- ),
133
- ]
134
-
135
- def _generate_examples(self, audio_archives, local_extracted_archives_paths, metadata_paths):
136
-
137
- features = ["speaker_id","gender","age","duration","normalized_text","dialect"]
138
-
139
- with open(metadata_paths) as f:
140
- metadata = {x["audio_id"]: x for x in csv.DictReader(f, delimiter="\t")}
141
-
142
- for audio_archive, local_extracted_archive_path in zip(audio_archives, local_extracted_archives_paths):
143
- for audio_filename, audio_file in audio_archive:
144
- #audio_id = audio_filename.split(os.sep)[-1].split(_AUDIO_EXTENSIONS)[0]
145
- audio_id =os.path.splitext(os.path.basename(audio_filename))[0]
146
- path = os.path.join(local_extracted_archive_path, audio_filename) if local_extracted_archive_path else audio_filename
147
-
148
- yield audio_id, {
149
- "audio_id": audio_id,
150
- **{feature: metadata[audio_id][feature] for feature in features},
151
- "audio": {"path": path, "bytes": audio_file.read()},
152
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
corpus/speech/dev.tar.gz → ravnursson_asr/test-00000-of-00001.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:afb80c4fe90dcdd3e036b887f048c3cb50947aee56bc17c4e9616e9f73768cc0
3
- size 253251581
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:077481ee4ae33e870d009842b8849b99546565a673137e7ee99b4fd275ef1046
3
+ size 245979577
corpus/speech/test.tar.gz → ravnursson_asr/train-00000-of-00022.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:85994419fe2601f3319200d4e528f248c13ce2eb165d667df2d76f60ca570941
3
- size 246145466
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9af0293a68fff855c7cff55cb6bdcd6432b45aef35698504de91afe1fc4c282c
3
+ size 494368556
corpus/speech/train/RDATA1O.tar.gz → ravnursson_asr/train-00001-of-00022.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f8dd2db5d91ee4796867d746ca0f5b5359b2d8e8e3b8395f508776c45b75ee82
3
- size 765972754
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a38cfaebf035eac3c1981e50a80eb01d92e811f6453a015cba84bbdb1a423e19
3
+ size 453606212
corpus/speech/train/RDATA1OP.tar.gz → ravnursson_asr/train-00002-of-00022.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2219180ff368c6b31db13d75ff3e065268392011d7479ed4e2a0243610730218
3
- size 146728737
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f7cdaf1e33a497e41b49f8299f94ef5d61c54b3caf3309d97dfbd0f6b1e5a08e
3
+ size 234101795
ravnursson_asr/train-00003-of-00022.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:64ff2e0d8725eb63ed2021ee43d50074fd4e875ef9fe2414a17ed4fe4ca466c7
3
+ size 232397316
ravnursson_asr/train-00004-of-00022.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:551be0c6086e71f261829871d2869d4921c29b861fccdfe62f6d903311840174
3
+ size 239278340
ravnursson_asr/train-00005-of-00022.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dce4a33b8cfaaf030fe61f5878ceb4edd10ba164229e5314893f5e5ef7d60552
3
+ size 233313197
ravnursson_asr/train-00006-of-00022.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cd75976c6bf0c4fd03190bea8ce08729eacdf9a56e5b501458d4548ddf7d4d5a
3
+ size 223946466
ravnursson_asr/train-00007-of-00022.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:72cea1c3b5f259c6610b9ba2033853f7c9b6a9fc496799ba6949170ed3285ac1
3
+ size 231269089
ravnursson_asr/train-00008-of-00022.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e78f13cb037e1ad00a5f7e6f9555708c6214f2723c34b12bc5c4e05bdc2eb01d
3
+ size 248901752
ravnursson_asr/train-00009-of-00022.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:02c0e12e0dba8cd3cba70c2eecede2658f27b6b7dcd55f2fb42f79d7234405b1
3
+ size 239644719
ravnursson_asr/train-00010-of-00022.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8d8409d1d9136c0c9c9c83fb8f09c942637f207515daf902afb160c856d8a9b5
3
+ size 247219912
ravnursson_asr/train-00011-of-00022.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:daea031ecda7c4224011c4a40be3b71e5983f8544792f4ba4d5d7deab84fbe1c
3
+ size 234988792
ravnursson_asr/train-00012-of-00022.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cac4eca800f2de6a9126662c5e291422f11a399a89180b9e11714d4d9724b499
3
+ size 248877137
ravnursson_asr/train-00013-of-00022.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:111e63b658fecd2ff72064cc08539f9c3ec91d02316cf3f9aa0dcc34c2a21dd1
3
+ size 227148613
ravnursson_asr/train-00014-of-00022.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ae04c3c0cb231252ebd1970e7d64175b2d1b6e21058ffa1464e7611661adff1
3
+ size 244039337
ravnursson_asr/train-00015-of-00022.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39974b11c37597003be465cc05a09eac914871b357e67a249e5954c54470d2ad
3
+ size 216640622
ravnursson_asr/train-00016-of-00022.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b0cf47412403897db2250a3bd1ce198e478cbd004c3bd37d39403b27a982e855
3
+ size 219992558
ravnursson_asr/train-00017-of-00022.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:64e59fe77595d93e65fb96346f16ce5275deaca9f8b6f47d606f3f762bf689a2
3
+ size 232535523
ravnursson_asr/train-00018-of-00022.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:220fc70babacb689c9057d25985c6272d1ea69ca0dcfc5289f9fb10922900dd8
3
+ size 230516105
ravnursson_asr/train-00019-of-00022.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:87194a8aefdb96d16b03d6b8aae32b5ba46bae526d5cf00d805ea3f3aa7f9521
3
+ size 246859754
ravnursson_asr/train-00020-of-00022.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d938ee8367be96c34d1b564d86f1e826a702e855bc514ec0aa091627e9b1bb4e
3
+ size 229798555
ravnursson_asr/train-00021-of-00022.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:672ceb94f4599b201a3801913a5bd2a02518c2796d91f51c4a2fcaf9a3efb915
3
+ size 247983907
ravnursson_asr/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:71dbf1344544054ff3ffdf47252c808102f6fcb4ac9b049af33ebefa83827c74
3
+ size 253070107