add some logging for debugging
Browse files- libriheavy.py +2 -0
libriheavy.py
CHANGED
|
@@ -122,7 +122,9 @@ class Libriheavy(datasets.GeneratorBasedBuilder):
|
|
| 122 |
|
| 123 |
def _generate_examples(self, speaker_chunks, split):
|
| 124 |
"""Yields examples."""
|
|
|
|
| 125 |
for chunk in speaker_chunks:
|
|
|
|
| 126 |
npz = dict(np.load(chunk["audio"], allow_pickle=True))
|
| 127 |
utterances = npz.keys()
|
| 128 |
with gzip.open(chunk["text"], "rt") as f:
|
|
|
|
| 122 |
|
| 123 |
def _generate_examples(self, speaker_chunks, split):
|
| 124 |
"""Yields examples."""
|
| 125 |
+
print(f"Generating examples for {split}")
|
| 126 |
for chunk in speaker_chunks:
|
| 127 |
+
print(f"Processing {chunk['id']}")
|
| 128 |
npz = dict(np.load(chunk["audio"], allow_pickle=True))
|
| 129 |
utterances = npz.keys()
|
| 130 |
with gzip.open(chunk["text"], "rt") as f:
|