dash8x commited on
Commit
3e4ca64
1 Parent(s): 7b45414

- Fixed sentence loading

Browse files
Files changed (1) hide show
  1. dv-presidential-speech.py +1 -1
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'] = str(len(row[1]))
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: