Datasets:
Update sd-nlp-non-tokenized.py
Browse files- sd-nlp-non-tokenized.py +0 -1
sd-nlp-non-tokenized.py
CHANGED
|
@@ -213,7 +213,6 @@ class SourceDataNLP(datasets.GeneratorBasedBuilder):
|
|
| 213 |
# logger.info("⏳ Generating examples from = %s", filepath)
|
| 214 |
for id_, row in enumerate(f):
|
| 215 |
data = json.loads(row)
|
| 216 |
-
print(data.keys())
|
| 217 |
if self.config.name == "NER":
|
| 218 |
labels = data["label_ids"]["entity_types"]
|
| 219 |
tag_mask = [0 if tag == "O" else 1 for tag in labels]
|
|
|
|
| 213 |
# logger.info("⏳ Generating examples from = %s", filepath)
|
| 214 |
for id_, row in enumerate(f):
|
| 215 |
data = json.loads(row)
|
|
|
|
| 216 |
if self.config.name == "NER":
|
| 217 |
labels = data["label_ids"]["entity_types"]
|
| 218 |
tag_mask = [0 if tag == "O" else 1 for tag in labels]
|