Update layoutlm_resume_data.py
Browse files- layoutlm_resume_data.py +1 -1
layoutlm_resume_data.py
CHANGED
|
@@ -129,7 +129,7 @@ class ResumeData(datasets.GeneratorBasedBuilder):
|
|
| 129 |
words = [w for w in words if w["text"].strip() != ""]
|
| 130 |
if len(words) == 0:
|
| 131 |
continue
|
| 132 |
-
if label == "other":
|
| 133 |
for w in words:
|
| 134 |
tokens.append(w["text"])
|
| 135 |
ner_tags.append("O")
|
|
|
|
| 129 |
words = [w for w in words if w["text"].strip() != ""]
|
| 130 |
if len(words) == 0:
|
| 131 |
continue
|
| 132 |
+
if label.lower() == "other":
|
| 133 |
for w in words:
|
| 134 |
tokens.append(w["text"])
|
| 135 |
ner_tags.append("O")
|