rbawden commited on
Commit
a2e3a85
·
verified ·
1 Parent(s): 581fc5d

Update DiscEvalMT.py

Browse files
Files changed (1) hide show
  1. DiscEvalMT.py +1 -1
DiscEvalMT.py CHANGED
@@ -42,7 +42,7 @@ 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(DiscEvalMTConfig, self).__init__(**kwargs)
48
 
 
42
  **kwargs: keyword arguments forwarded to super.
43
  """
44
  self.evaltype = evaltype
45
+ if evaltype 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