system HF staff commited on
Commit
8b0d2f0
1 Parent(s): 0905826

Update files from the datasets library (from 1.16.0)

Browse files

Release notes: https://github.com/huggingface/datasets/releases/tag/1.16.0

Files changed (1) hide show
  1. id_panl_bppt.py +2 -6
id_panl_bppt.py CHANGED
@@ -114,12 +114,8 @@ class IdPanlBppt(datasets.GeneratorBasedBuilder):
114
  logger.info("⏳ Generating %s examples from = %s", split, data_dir)
115
  id = 0
116
  for topic in self.config.topics:
117
- src_path = "PANL-BPPT-{}-{}-{}w.txt".format(
118
- topic["name"][:3].upper(), self.config.src_tag.upper(), topic["words"]
119
- )
120
- tgt_path = "PANL-BPPT-{}-{}-{}w.txt".format(
121
- topic["name"][:3].upper(), self.config.tgt_tag.upper(), topic["words"]
122
- )
123
  with open(os.path.join(data_dir, src_path), encoding="utf-8") as f1, open(
124
  os.path.join(data_dir, tgt_path), encoding="utf-8"
125
  ) as f2:
 
114
  logger.info("⏳ Generating %s examples from = %s", split, data_dir)
115
  id = 0
116
  for topic in self.config.topics:
117
+ src_path = f"PANL-BPPT-{topic['name'][:3].upper()}-{self.config.src_tag.upper()}-{topic['words']}w.txt"
118
+ tgt_path = f"PANL-BPPT-{topic['name'][:3].upper()}-{self.config.tgt_tag.upper()}-{topic['words']}w.txt"
 
 
 
 
119
  with open(os.path.join(data_dir, src_path), encoding="utf-8") as f1, open(
120
  os.path.join(data_dir, tgt_path), encoding="utf-8"
121
  ) as f2: