Upload erukaLabels.py
Browse files- erukaLabels.py +1 -1
erukaLabels.py
CHANGED
|
@@ -140,10 +140,10 @@ class Funsd(datasets.GeneratorBasedBuilder):
|
|
| 140 |
if len(words) == 0:
|
| 141 |
continue
|
| 142 |
tokens.append(words[0])
|
| 143 |
-
print(label)
|
| 144 |
if isinstance(label, float):
|
| 145 |
ner_tags.append("O")
|
| 146 |
else:
|
|
|
|
| 147 |
ner_tags.append(label.upper())
|
| 148 |
cur_line_bboxes.append(normalize_bbox(item["polygon"], size))
|
| 149 |
|
|
|
|
| 140 |
if len(words) == 0:
|
| 141 |
continue
|
| 142 |
tokens.append(words[0])
|
|
|
|
| 143 |
if isinstance(label, float):
|
| 144 |
ner_tags.append("O")
|
| 145 |
else:
|
| 146 |
+
print(label)
|
| 147 |
ner_tags.append(label.upper())
|
| 148 |
cur_line_bboxes.append(normalize_bbox(item["polygon"], size))
|
| 149 |
|