Datasets:
Update configs
Browse files
chall.py
CHANGED
@@ -1,12 +1,13 @@
|
|
|
|
1 |
import json
|
2 |
import os
|
3 |
import re
|
4 |
import string
|
5 |
from typing import Union, List, Dict
|
|
|
|
|
6 |
from datasets import DatasetInfo, BuilderConfig, GeneratorBasedBuilder, Version, Features, Value, Audio, SplitGenerator, Split, logging
|
7 |
from datasets.features import Sequence
|
8 |
-
import soundfile as sf
|
9 |
-
import importlib.util
|
10 |
|
11 |
_SAMPLE_RATE = 16000
|
12 |
|
@@ -92,15 +93,15 @@ class Chall(GeneratorBasedBuilder):
|
|
92 |
stratify_column="intervention",
|
93 |
folds={
|
94 |
"fold0": ["17", "15", "1"],
|
95 |
-
"fold1": ["13", "7", "10"],
|
96 |
"fold2": ["4", "8", "6", "14"],
|
97 |
-
"fold3": ["
|
98 |
-
"fold4": ["
|
99 |
},
|
100 |
description="Settings used for the paper."
|
101 |
),
|
102 |
ChallConfig(
|
103 |
-
name="
|
104 |
split_segments=True,
|
105 |
max_pause_length=12,
|
106 |
max_chunk_length=12,
|
@@ -111,8 +112,8 @@ class Chall(GeneratorBasedBuilder):
|
|
111 |
stratify_column="intervention",
|
112 |
folds={
|
113 |
"test": ["5"],
|
114 |
-
"eval": ["1", "
|
115 |
-
"train": ["2", "3", "4", "6", "7", "8", "9", "10", "11", "12", "13", "14", "
|
116 |
},
|
117 |
description="Settings used for the paper."
|
118 |
)
|
|
|
1 |
+
import importlib.util
|
2 |
import json
|
3 |
import os
|
4 |
import re
|
5 |
import string
|
6 |
from typing import Union, List, Dict
|
7 |
+
|
8 |
+
import soundfile as sf
|
9 |
from datasets import DatasetInfo, BuilderConfig, GeneratorBasedBuilder, Version, Features, Value, Audio, SplitGenerator, Split, logging
|
10 |
from datasets.features import Sequence
|
|
|
|
|
11 |
|
12 |
_SAMPLE_RATE = 16000
|
13 |
|
|
|
93 |
stratify_column="intervention",
|
94 |
folds={
|
95 |
"fold0": ["17", "15", "1"],
|
96 |
+
"fold1": ["13", "7", "10", "19"],
|
97 |
"fold2": ["4", "8", "6", "14"],
|
98 |
+
"fold3": ["9", "2", "3", "18", "11"],
|
99 |
+
"fold4": ["12", "16", "5"]
|
100 |
},
|
101 |
description="Settings used for the paper."
|
102 |
),
|
103 |
ChallConfig(
|
104 |
+
name="asr_mt",
|
105 |
split_segments=True,
|
106 |
max_pause_length=12,
|
107 |
max_chunk_length=12,
|
|
|
112 |
stratify_column="intervention",
|
113 |
folds={
|
114 |
"test": ["5"],
|
115 |
+
"eval": ["1", "17", "18", "21"],
|
116 |
+
"train": ["2", "3", "4", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "19", "20"]
|
117 |
},
|
118 |
description="Settings used for the paper."
|
119 |
)
|