trminhnam20082002 commited on
Commit
b658e7b
·
1 Parent(s): bbc0738
Files changed (1) hide show
  1. VieGLUE.py +8 -4
VieGLUE.py CHANGED
@@ -467,6 +467,10 @@ class VNExpress(datasets.GeneratorBasedBuilder):
467
  "validation": datasets.Split.VALIDATION,
468
  "valid": datasets.Split.VALIDATION,
469
  "dev": datasets.Split.VALIDATION,
 
 
 
 
470
  }
471
 
472
  name = self.config.name
@@ -492,8 +496,8 @@ class VNExpress(datasets.GeneratorBasedBuilder):
492
  def _generate_examples(self, files, urls, stage, config):
493
  id_ = 0
494
  features = config.text_features
495
- print(config)
496
- print(features)
497
 
498
  if not isinstance(files, list):
499
  files = [files]
@@ -507,8 +511,8 @@ class VNExpress(datasets.GeneratorBasedBuilder):
507
  continue
508
  with open(file_path) as f:
509
  all_samples = json.load(f)
510
- print(f"Loaded {len(all_samples)} samples from {file_path}")
511
- print(f"Sample: {all_samples[0]}")
512
  for sample in all_samples:
513
  yield id_, {
514
  "idx": id_,
 
467
  "validation": datasets.Split.VALIDATION,
468
  "valid": datasets.Split.VALIDATION,
469
  "dev": datasets.Split.VALIDATION,
470
+ "test_matched": datasets.Split.TEST,
471
+ "test_mismatched": datasets.Split.TEST,
472
+ "validation_matched": datasets.Split.VALIDATION,
473
+ "validation_mismatched": datasets.Split.VALIDATION,
474
  }
475
 
476
  name = self.config.name
 
496
  def _generate_examples(self, files, urls, stage, config):
497
  id_ = 0
498
  features = config.text_features
499
+ # print(config)
500
+ # print(features)
501
 
502
  if not isinstance(files, list):
503
  files = [files]
 
511
  continue
512
  with open(file_path) as f:
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
  yield id_, {
518
  "idx": id_,