drAbreu commited on
Commit
b5fe792
1 Parent(s): 9da124a

Update sd-nlp-non-tokenized.py

Browse files
Files changed (1) hide show
  1. sd-nlp-non-tokenized.py +2 -0
sd-nlp-non-tokenized.py CHANGED
@@ -213,6 +213,8 @@ 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
+ logger.info(data.keys())
218
  if self.config.name == "NER":
219
  labels = data["label_ids"]["entity_types"]
220
  tag_mask = [0 if tag == "O" else 1 for tag in labels]