trminhnam20082002 commited on
Commit
9dcda88
·
1 Parent(s): 81ea4f5
Files changed (1) hide show
  1. VieGLUE.py +2 -2
VieGLUE.py CHANGED
@@ -513,9 +513,9 @@ class VNExpress(datasets.GeneratorBasedBuilder):
513
  all_samples = json.load(f)
514
  # print(f"Loaded {len(all_samples)} samples from {file_path}")
515
  # print(f"Sample: {all_samples[0]}")
516
- if sample["label"] is None or sample["label"] == "":
517
- sample["label"] = -1
518
  for sample in all_samples:
 
 
519
  yield id_, {
520
  "idx": id_,
521
  "label": sample["label"],
 
513
  all_samples = json.load(f)
514
  # print(f"Loaded {len(all_samples)} samples from {file_path}")
515
  # print(f"Sample: {all_samples[0]}")
 
 
516
  for sample in all_samples:
517
+ if sample["label"] is None or sample["label"] == "":
518
+ sample["label"] = -1
519
  yield id_, {
520
  "idx": id_,
521
  "label": sample["label"],