AymanElmar commited on
Commit ·
7a11cb9
1
Parent(s): 7aeb02e
targz
Browse files
joha.py
CHANGED
|
@@ -54,7 +54,7 @@ class johaDataset(datasets.GeneratorBasedBuilder):
|
|
| 54 |
archive_path = dl_manager.download(_DATA_URL)
|
| 55 |
|
| 56 |
# First we locate the data using the path within the archive:
|
| 57 |
-
path_to_data = ""
|
| 58 |
path_to_clips = path_to_data
|
| 59 |
metadata_filepaths = {
|
| 60 |
split: "/".join([path_to_data, f"{split}.tsv"])
|
|
@@ -123,7 +123,6 @@ class johaDataset(datasets.GeneratorBasedBuilder):
|
|
| 123 |
for path, f in archive_iterator:
|
| 124 |
# Parse the metadata CSV file
|
| 125 |
if path == metadata_filepath:
|
| 126 |
-
print("metadata_found")
|
| 127 |
metadata_found = True
|
| 128 |
lines = f.readlines()
|
| 129 |
headline = lines[0].decode("utf-8")
|
|
|
|
| 54 |
archive_path = dl_manager.download(_DATA_URL)
|
| 55 |
|
| 56 |
# First we locate the data using the path within the archive:
|
| 57 |
+
path_to_data = "joha"
|
| 58 |
path_to_clips = path_to_data
|
| 59 |
metadata_filepaths = {
|
| 60 |
split: "/".join([path_to_data, f"{split}.tsv"])
|
|
|
|
| 123 |
for path, f in archive_iterator:
|
| 124 |
# Parse the metadata CSV file
|
| 125 |
if path == metadata_filepath:
|
|
|
|
| 126 |
metadata_found = True
|
| 127 |
lines = f.readlines()
|
| 128 |
headline = lines[0].decode("utf-8")
|