Valahaar commited on
Commit
f2f90c5
1 Parent(s): 2e63d3f

fix non-challenge splits

Browse files
Files changed (1) hide show
  1. wsdmt.py +2 -2
wsdmt.py CHANGED
@@ -15,7 +15,7 @@ class WSDMTConfig(datasets.BuilderConfig):
15
 
16
  super().__init__(
17
  *args,
18
- name=f"{corpus}{'#challenge' if challenge is not None else ''}@{lang1}-{lang2}@{variety}",
19
  **kwargs,
20
  )
21
  self.lang1 = lang1
@@ -25,7 +25,7 @@ class WSDMTConfig(datasets.BuilderConfig):
25
  self.challenge = challenge
26
 
27
  def path_for(self, split, lang):
28
- split_path = ('challenge/' if self.challenge is not None else '') + split
29
  return f"data/{self.corpus}/{self.variety}/{split_path}/{lang}.jsonl.bz2"
30
 
31
 
 
15
 
16
  super().__init__(
17
  *args,
18
+ name=f"{corpus}{'#challenge' if challenge else ''}@{lang1}-{lang2}@{variety}",
19
  **kwargs,
20
  )
21
  self.lang1 = lang1
 
25
  self.challenge = challenge
26
 
27
  def path_for(self, split, lang):
28
+ split_path = ('challenge/' if self.challenge else '') + split
29
  return f"data/{self.corpus}/{self.variety}/{split_path}/{lang}.jsonl.bz2"
30
 
31