Datasets:

ArXiv:
License:
abhik1505040 commited on
Commit
ca828be
1 Parent(s): d3eac2c

Update crosssum.py

Browse files
Files changed (1) hide show
  1. crosssum.py +2 -4
crosssum.py CHANGED
@@ -115,10 +115,8 @@ class Crosssum(datasets.GeneratorBasedBuilder):
115
 
116
  def _split_generators(self, dl_manager):
117
  """Returns SplitGenerators."""
118
- lang = str(self.config.name)
119
- src_lang, tgt_lang = lang.split("-")
120
- # url = _URL.format(lang, self.VERSION.version_str[:-2])
121
- url = _URL.format(src_lang, tgt_lang)
122
 
123
  data_dir = dl_manager.download_and_extract(url)
124
  return [
 
115
 
116
  def _split_generators(self, dl_manager):
117
  """Returns SplitGenerators."""
118
+ lang_pairs = str(self.config.name)
119
+ url = _URL.format(*lang_pairs.split("-"))
 
 
120
 
121
  data_dir = dl_manager.download_and_extract(url)
122
  return [