Upload processor_flamingo.py with huggingface_hub
Browse files- processor_flamingo.py +1 -1
processor_flamingo.py
CHANGED
|
@@ -55,7 +55,7 @@ class FlamingoProcessor(ProcessorMixin):
|
|
| 55 |
new_offsets.append((0, 0))
|
| 56 |
else:
|
| 57 |
new_offsets.append((start - true_offset, end - true_offset))
|
| 58 |
-
|
| 59 |
|
| 60 |
encoding.update(text_encoding)
|
| 61 |
|
|
|
|
| 55 |
new_offsets.append((0, 0))
|
| 56 |
else:
|
| 57 |
new_offsets.append((start - true_offset, end - true_offset))
|
| 58 |
+
text_encoding['offset_mapping'] = new_offsets
|
| 59 |
|
| 60 |
encoding.update(text_encoding)
|
| 61 |
|