Datasets:
Dr. Jorge Abreu Vicente
commited on
Commit
•
a88078b
1
Parent(s):
1ec5eba
Update sd-nlp-non-tokenized.py
Browse files- sd-nlp-non-tokenized.py +0 -1
sd-nlp-non-tokenized.py
CHANGED
@@ -215,7 +215,6 @@ class SourceDataNLP(datasets.GeneratorBasedBuilder):
|
|
215 |
"tag_mask": tag_mask,
|
216 |
}
|
217 |
elif self.config.name == "SMALL_MOL_ROLES":
|
218 |
-
print(data["label_ids"])
|
219 |
labels = data["label_ids"]["small_mol_roles"]
|
220 |
small_mol = ["B-SMALL_MOLECULE", "I-SMALL_MOLECULE"]
|
221 |
tag_mask = [1 if t in small_mol else 0 for t in labels]
|
|
|
215 |
"tag_mask": tag_mask,
|
216 |
}
|
217 |
elif self.config.name == "SMALL_MOL_ROLES":
|
|
|
218 |
labels = data["label_ids"]["small_mol_roles"]
|
219 |
small_mol = ["B-SMALL_MOLECULE", "I-SMALL_MOLECULE"]
|
220 |
tag_mask = [1 if t in small_mol else 0 for t in labels]
|