cahya commited on
Commit
437c8f5
1 Parent(s): 82fee29

Changed indonesian language code from "id" to "ind" following the ISO639-3 language code

Browse files
README.md CHANGED
@@ -8,7 +8,7 @@ language:
8
  - ace
9
  - bal
10
  - bug
11
- - id
12
  - min
13
  - jav
14
  - sun
@@ -22,7 +22,7 @@ size_categories:
22
  - 1K<n<10K
23
  bug:
24
  - 1K<n<10K
25
- id:
26
  - 1K<n<10K
27
  min:
28
  - 1K<n<10K
8
  - ace
9
  - bal
10
  - bug
11
+ - ind
12
  - min
13
  - jav
14
  - sun
22
  - 1K<n<10K
23
  bug:
24
  - 1K<n<10K
25
+ ind:
26
  - 1K<n<10K
27
  min:
28
  - 1K<n<10K
data/metadata_test.csv.gz CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c9789314903a9623f15db4d1320c9c5a196f2194bf2efcc23297b5eb62b270df
3
- size 24370
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8fb6ee4b8af8e987b787462bf6d2220602c678c5c4fcf1a8a3c832121f5adeee
3
+ size 24428
data/metadata_train.csv.gz CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f8269deca88ca1a90efc485e70f160a83151c988dff6ab30b5be14614f04d077
3
- size 189385
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:075516a8d1b97550570e0d4c006aa30da2d6b55856e35d0cef65d2ca28e867fe
3
+ size 189792
languages.py CHANGED
@@ -1,10 +1,11 @@
 
1
  LANGUAGES = {
2
  'ace': 'Acehnese',
3
  'bal': 'Balinese',
4
  'bug': 'Bugisnese',
5
- 'id': 'Indonesian',
6
  'min': 'Minangkabau',
7
  'jav': 'Javanese',
8
  'sun': 'Sundanese',
9
- 'all': 'All'
10
  }
1
+ # We use ISO639-3 language code (https://iso639-3.sil.org/code_tables/639/data)
2
  LANGUAGES = {
3
  'ace': 'Acehnese',
4
  'bal': 'Balinese',
5
  'bug': 'Bugisnese',
6
+ 'ind': 'Indonesian',
7
  'min': 'Minangkabau',
8
  'jav': 'Javanese',
9
  'sun': 'Sundanese',
10
+ '_all_': 'All'
11
  }
librivox-indonesia.py CHANGED
@@ -57,7 +57,7 @@ class LibriVoxIndonesiaConfig(datasets.BuilderConfig):
57
 
58
 
59
  class LibriVoxIndonesia(datasets.GeneratorBasedBuilder):
60
- DEFAULT_CONFIG_NAME = "all"
61
 
62
  BUILDER_CONFIGS = [
63
  LibriVoxIndonesiaConfig(
@@ -79,7 +79,7 @@ class LibriVoxIndonesia(datasets.GeneratorBasedBuilder):
79
  description = (
80
  "LibriVox-Indonesia is a speech dataset generated from LibriVox with only languages from Indonesia."
81
  f"The dataset currently consists of {total_hours} hours of speech "
82
- f" in {total_languages} languages, but more voices and languages are always added."
83
  )
84
  features = datasets.Features(
85
  {
@@ -139,7 +139,7 @@ class LibriVoxIndonesia(datasets.GeneratorBasedBuilder):
139
  with open(metadata_path, "r", encoding="utf-8") as f:
140
  reader = csv.DictReader(f)
141
  for row in reader:
142
- if self.config.name == "all" or self.config.name == row["language"]:
143
  row["path"] = os.path.join(path_to_clips, row["path"])
144
  # if data is incomplete, fill with empty values
145
  for field in data_fields:
57
 
58
 
59
  class LibriVoxIndonesia(datasets.GeneratorBasedBuilder):
60
+ DEFAULT_CONFIG_NAME = "_all_"
61
 
62
  BUILDER_CONFIGS = [
63
  LibriVoxIndonesiaConfig(
79
  description = (
80
  "LibriVox-Indonesia is a speech dataset generated from LibriVox with only languages from Indonesia."
81
  f"The dataset currently consists of {total_hours} hours of speech "
82
+ f"in {total_languages} languages, but more voices and languages are always added."
83
  )
84
  features = datasets.Features(
85
  {
139
  with open(metadata_path, "r", encoding="utf-8") as f:
140
  reader = csv.DictReader(f)
141
  for row in reader:
142
+ if self.config.name == "_all_" or self.config.name == row["language"]:
143
  row["path"] = os.path.join(path_to_clips, row["path"])
144
  # if data is incomplete, fill with empty values
145
  for field in data_fields:
release_stats.py CHANGED
@@ -9,7 +9,7 @@ STATS = {
9
  'avgDurationSecs': 1, 'totalHrs': 1},
10
  "bug": {'reportedSentences': 142, 'duration': 1, 'clips': 1, 'users': 416, 'size': 1,
11
  'avgDurationSecs': 1, 'totalHrs': 1},
12
- "id": {'reportedSentences': 6238, 'duration': 1, 'clips': 1, 'users': 416, 'size': 1,
13
  'avgDurationSecs': 1, 'totalHrs': 1},
14
  "min": {'reportedSentences': 156, 'duration': 1, 'clips': 1, 'users': 416, 'size': 1,
15
  'avgDurationSecs': 1, 'totalHrs': 1},
@@ -17,7 +17,7 @@ STATS = {
17
  'avgDurationSecs': 1, 'totalHrs': 1},
18
  "sun": {'reportedSentences': 154, 'duration': 1, 'clips': 1, 'users': 416, 'size': 1,
19
  'avgDurationSecs': 1, 'totalHrs': 1},
20
- "all": {'reportedSentences': 7815, 'duration': 1, 'clips': 1, 'users': 416, 'size': 1,
21
  'avgDurationSecs': 1, 'totalHrs': 1},
22
  },
23
  'totalDuration': 1, 'totalHrs': 1
9
  'avgDurationSecs': 1, 'totalHrs': 1},
10
  "bug": {'reportedSentences': 142, 'duration': 1, 'clips': 1, 'users': 416, 'size': 1,
11
  'avgDurationSecs': 1, 'totalHrs': 1},
12
+ "ind": {'reportedSentences': 6238, 'duration': 1, 'clips': 1, 'users': 416, 'size': 1,
13
  'avgDurationSecs': 1, 'totalHrs': 1},
14
  "min": {'reportedSentences': 156, 'duration': 1, 'clips': 1, 'users': 416, 'size': 1,
15
  'avgDurationSecs': 1, 'totalHrs': 1},
17
  'avgDurationSecs': 1, 'totalHrs': 1},
18
  "sun": {'reportedSentences': 154, 'duration': 1, 'clips': 1, 'users': 416, 'size': 1,
19
  'avgDurationSecs': 1, 'totalHrs': 1},
20
+ "_all_": {'reportedSentences': 7815, 'duration': 1, 'clips': 1, 'users': 416, 'size': 1,
21
  'avgDurationSecs': 1, 'totalHrs': 1},
22
  },
23
  'totalDuration': 1, 'totalHrs': 1