alayaran commited on
Commit
0542cf5
·
1 Parent(s): fc4656f

Update bodo_english_parallel.py

Browse files
Files changed (1) hide show
  1. bodo_english_parallel.py +3 -3
bodo_english_parallel.py CHANGED
@@ -30,7 +30,7 @@ In progress
30
  """
31
 
32
  _VERSION = "1.0.0"
33
- _BASE_NAME = "{}-{}-parallel"
34
  _BASE_URL = "http://get.alayaran.com/hf/{}-{}-parallel.zip"
35
 
36
  _LANGUAGE_PAIRS = [
@@ -91,8 +91,8 @@ class BodoDataset(datasets.GeneratorBasedBuilder):
91
  def _generate_examples(self, datapath):
92
  l1, l2 = self.config.lang1, self.config.lang2
93
  folder = l1 + "-" + l2
94
- l1_file = _BASE_NAME.format(folder, l1)
95
- l2_file = _BASE_NAME.format(folder, l2)
96
  l1_path = os.path.join(datapath, l1_file)
97
  l2_path = os.path.join(datapath, l2_file)
98
  with open(l1_path, encoding="utf-8") as f1, open(l2_path, encoding="utf-8") as f2:
 
30
  """
31
 
32
  _VERSION = "1.0.0"
33
+ _BASE_NAME = "{}-parallel/{}.{}"
34
  _BASE_URL = "http://get.alayaran.com/hf/{}-{}-parallel.zip"
35
 
36
  _LANGUAGE_PAIRS = [
 
91
  def _generate_examples(self, datapath):
92
  l1, l2 = self.config.lang1, self.config.lang2
93
  folder = l1 + "-" + l2
94
+ l1_file = _BASE_NAME.format(folder, 'train', l1)
95
+ l2_file = _BASE_NAME.format(folder, 'train', l2)
96
  l1_path = os.path.join(datapath, l1_file)
97
  l2_path = os.path.join(datapath, l2_file)
98
  with open(l1_path, encoding="utf-8") as f1, open(l2_path, encoding="utf-8") as f2: