commit files to HF hub
Browse files- youtube-transcription.py +2 -1
youtube-transcription.py
CHANGED
@@ -57,7 +57,8 @@ class DhivehiCorpus(datasets.GeneratorBasedBuilder):
|
|
57 |
|
58 |
def _generate_examples(self, filepath, split):
|
59 |
with open(filepath, encoding="utf8") as f:
|
60 |
-
documents =
|
|
|
61 |
id_ = 0
|
62 |
for doc in documents:
|
63 |
data = {
|
|
|
57 |
|
58 |
def _generate_examples(self, filepath, split):
|
59 |
with open(filepath, encoding="utf8") as f:
|
60 |
+
documents = f.readlines()
|
61 |
+
documents = [json.loads(x) for x in documents]
|
62 |
id_ = 0
|
63 |
for doc in documents:
|
64 |
data = {
|