debugging
Browse files- docbank.py +2 -0
docbank.py
CHANGED
|
@@ -233,7 +233,9 @@ class Docbank(datasets.GeneratorBasedBuilder):
|
|
| 233 |
normalized_bbox = [int(x) for x in row[1:5]]
|
| 234 |
tokens.append(row[0])
|
| 235 |
bboxes.append(normalized_bbox)
|
|
|
|
| 236 |
labels.append(self.LABEL2ID(row[9]))
|
|
|
|
| 237 |
# tokenized_input = self.TOKENIZER(
|
| 238 |
# row[0],
|
| 239 |
# add_special_tokens=False,
|
|
|
|
| 233 |
normalized_bbox = [int(x) for x in row[1:5]]
|
| 234 |
tokens.append(row[0])
|
| 235 |
bboxes.append(normalized_bbox)
|
| 236 |
+
print(f'Before: {row[9]}')
|
| 237 |
labels.append(self.LABEL2ID(row[9]))
|
| 238 |
+
print(f'After: {row[9]}')
|
| 239 |
# tokenized_input = self.TOKENIZER(
|
| 240 |
# row[0],
|
| 241 |
# add_special_tokens=False,
|