Update FCD_lmv2.py
Browse files- FCD_lmv2.py +3 -3
FCD_lmv2.py
CHANGED
|
@@ -110,12 +110,12 @@ class FCD(datasets.GeneratorBasedBuilder):
|
|
| 110 |
image_path = image_path.replace("json", "jpg")
|
| 111 |
image, size = load_image(image_path)
|
| 112 |
for item in data:
|
| 113 |
-
words, label = ["
|
| 114 |
#words = [w for w in words if w["text"].strip() != ""]
|
| 115 |
|
| 116 |
-
if len(words) == 0:
|
| 117 |
continue
|
| 118 |
-
ner_tags.append(label)
|
| 119 |
#if label == "other":
|
| 120 |
# for w in words:
|
| 121 |
# tokens.append(w["text"])
|
|
|
|
| 110 |
image_path = image_path.replace("json", "jpg")
|
| 111 |
image, size = load_image(image_path)
|
| 112 |
for item in data:
|
| 113 |
+
#words, label = item["worde"], ["borrower"]
|
| 114 |
#words = [w for w in words if w["text"].strip() != ""]
|
| 115 |
|
| 116 |
+
#if len(words) == 0:
|
| 117 |
continue
|
| 118 |
+
#ner_tags.append(label)
|
| 119 |
#if label == "other":
|
| 120 |
# for w in words:
|
| 121 |
# tokens.append(w["text"])
|