changed to input ids
Browse files- ref_seg_ger.py +2 -0
ref_seg_ger.py
CHANGED
@@ -228,6 +228,8 @@ class RefSeg(datasets.GeneratorBasedBuilder):
|
|
228 |
input_ids.append(input_id)
|
229 |
labels.append('I-' + row['label'])
|
230 |
else:
|
|
|
|
|
231 |
for input_id in tokenized_input:
|
232 |
input_ids.append(input_id)
|
233 |
labels.append('O')
|
|
|
228 |
input_ids.append(input_id)
|
229 |
labels.append('I-' + row['label'])
|
230 |
else:
|
231 |
+
if tokenized_input == '':
|
232 |
+
continue
|
233 |
for input_id in tokenized_input:
|
234 |
input_ids.append(input_id)
|
235 |
labels.append('O')
|