drAbreu commited on
Commit
d43a2a9
1 Parent(s): aad3b94

Update sd-nlp-non-tokenized.py

Browse files
Files changed (1) hide show
  1. sd-nlp-non-tokenized.py +1 -0
sd-nlp-non-tokenized.py CHANGED
@@ -213,6 +213,7 @@ 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
  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]
 
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]