- Fixed sentence loading
Browse files
dv-presidential-speech.py
CHANGED
@@ -135,7 +135,7 @@ class DhivehiPresidentialSpeech(datasets.GeneratorBasedBuilder):
|
|
135 |
for row in reader:
|
136 |
row_dict = {}
|
137 |
row_dict['path'] = row[0]
|
138 |
-
row_dict['sentence'] =
|
139 |
|
140 |
# if data is incomplete, fill with empty values
|
141 |
for field in data_fields:
|
|
|
135 |
for row in reader:
|
136 |
row_dict = {}
|
137 |
row_dict['path'] = row[0]
|
138 |
+
row_dict['sentence'] = len(row[1])
|
139 |
|
140 |
# if data is incomplete, fill with empty values
|
141 |
for field in data_fields:
|