aburnazyan
commited on
Commit
•
67cd8e7
1
Parent(s):
66b2451
debugging
Browse files- hy_asr_grqaser.py +9 -4
hy_asr_grqaser.py
CHANGED
@@ -5,6 +5,7 @@ from datasets import Dataset, DatasetDict, Features, Value, Audio
|
|
5 |
|
6 |
##
|
7 |
def load_dataset_script(data_dir):
|
|
|
8 |
"""
|
9 |
Load dataset script for custom audio-transcription dataset.
|
10 |
|
@@ -40,7 +41,11 @@ def load_dataset_script(data_dir):
|
|
40 |
|
41 |
|
42 |
## Example usage
|
43 |
-
if __name__ == "__main__":
|
44 |
-
|
45 |
-
|
46 |
-
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
##
|
7 |
def load_dataset_script(data_dir):
|
8 |
+
print(f"data_dir: {data_dir}")
|
9 |
"""
|
10 |
Load dataset script for custom audio-transcription dataset.
|
11 |
|
|
|
41 |
|
42 |
|
43 |
## Example usage
|
44 |
+
# if __name__ == "__main__":
|
45 |
+
# data_directory = "C:\\Projects\\aeneas\\hy_asr_grqaser"
|
46 |
+
# dataset = load_dataset_script(data_directory)
|
47 |
+
# print(dataset["train"][1])
|
48 |
+
# from datasets import load_dataset
|
49 |
+
# load_dataset("aburnazy/hy_asr_grqaser", data_dir=".")
|
50 |
+
|
51 |
+
|