Update FCD_lmv2.py
Browse files- FCD_lmv2.py +2 -1
FCD_lmv2.py
CHANGED
|
@@ -115,6 +115,7 @@ class FCD(datasets.GeneratorBasedBuilder):
|
|
| 115 |
|
| 116 |
if len(words) == 0:
|
| 117 |
continue
|
|
|
|
| 118 |
#if label == "other":
|
| 119 |
# for w in words:
|
| 120 |
# tokens.append(w["text"])
|
|
@@ -126,7 +127,7 @@ class FCD(datasets.GeneratorBasedBuilder):
|
|
| 126 |
#bboxes.append(normalize_bbox(words[0]["box"], size))
|
| 127 |
#for w in words[1:]:
|
| 128 |
#tokens.append(w["text"])
|
| 129 |
-
|
| 130 |
#bboxes.append(normalize_bbox(w["box"], size))
|
| 131 |
|
| 132 |
|
|
|
|
| 115 |
|
| 116 |
if len(words) == 0:
|
| 117 |
continue
|
| 118 |
+
ner_tags.append(label.upper())
|
| 119 |
#if label == "other":
|
| 120 |
# for w in words:
|
| 121 |
# tokens.append(w["text"])
|
|
|
|
| 127 |
#bboxes.append(normalize_bbox(words[0]["box"], size))
|
| 128 |
#for w in words[1:]:
|
| 129 |
#tokens.append(w["text"])
|
| 130 |
+
|
| 131 |
#bboxes.append(normalize_bbox(w["box"], size))
|
| 132 |
|
| 133 |
|