debugging
Browse files- docbank.py +2 -1
docbank.py
CHANGED
|
@@ -207,7 +207,7 @@ class Docbank(datasets.GeneratorBasedBuilder):
|
|
| 207 |
# print(filepath)
|
| 208 |
key = 0
|
| 209 |
for f in filepath:
|
| 210 |
-
|
| 211 |
f_id = f['id']
|
| 212 |
f_fp_txt = f['filepath_txt']
|
| 213 |
f_fp_img = f['filepath_img']
|
|
@@ -256,6 +256,7 @@ class Docbank(datasets.GeneratorBasedBuilder):
|
|
| 256 |
return_offsets_mapping=False,
|
| 257 |
return_attention_mask=False,
|
| 258 |
)
|
|
|
|
| 259 |
|
| 260 |
for chunk_id, index in enumerate(range(0, len(processed['input_ids'][0]), self.CHUNK_SIZE)):
|
| 261 |
split_tokens = processed['input_ids'][0][index:index + self.CHUNK_SIZE]
|
|
|
|
| 207 |
# print(filepath)
|
| 208 |
key = 0
|
| 209 |
for f in filepath:
|
| 210 |
+
print(f)
|
| 211 |
f_id = f['id']
|
| 212 |
f_fp_txt = f['filepath_txt']
|
| 213 |
f_fp_img = f['filepath_img']
|
|
|
|
| 256 |
return_offsets_mapping=False,
|
| 257 |
return_attention_mask=False,
|
| 258 |
)
|
| 259 |
+
print(processed)
|
| 260 |
|
| 261 |
for chunk_id, index in enumerate(range(0, len(processed['input_ids'][0]), self.CHUNK_SIZE)):
|
| 262 |
split_tokens = processed['input_ids'][0][index:index + self.CHUNK_SIZE]
|