rbawden commited on
Commit
794f20e
·
verified ·
1 Parent(s): e3d7281

Update discevalmt.py

Browse files
Files changed (1) hide show
  1. discevalmt.py +2 -2
discevalmt.py CHANGED
@@ -42,9 +42,9 @@ class DiscEvalMTConfig(datasets.BuilderConfig):
42
  **kwargs: keyword arguments forwarded to super.
43
  """
44
  self.evaltype = evaltype
45
- if language not in ['anaphora', 'lexical_choice']():
46
  raise ValueError("Invalid evaltype: %s. You must choose between 'anaphora' and 'lexical_choice' " % evaltype)
47
- super().__init__(**kwargs)
48
 
49
 
50
 
 
42
  **kwargs: keyword arguments forwarded to super.
43
  """
44
  self.evaltype = evaltype
45
+ if language not in ['anaphora', 'lexical_choice']:
46
  raise ValueError("Invalid evaltype: %s. You must choose between 'anaphora' and 'lexical_choice' " % evaltype)
47
+ super(DiscEvalMTConfig, self).__init__(**kwargs)
48
 
49
 
50