mathemakitten commited on
Commit
1cd7e21
·
1 Parent(s): 220f6b8
Files changed (1) hide show
  1. glue-suite-v2.py +2 -2
glue-suite-v2.py CHANGED
@@ -8,13 +8,13 @@ class Suite(evaluate.EvaluationSuite):
8
  super().__init__(name)
9
 
10
  def setup(self):
11
- self.preprocessor = None #lambda x: x["text"].lower()
12
  self.suite = [
13
  SubTask(
14
  task_type = "text-classification",
15
  data="imdb",
16
  split="test[:10]",
17
- data_preprocessor=lambda x: x["text"].lower(),#self.preprocessor,
18
  args_for_task={
19
  "metric": "accuracy",
20
  "input_column": "text",
 
8
  super().__init__(name)
9
 
10
  def setup(self):
11
+ self.preprocessor = lambda x: x["text"].lower()
12
  self.suite = [
13
  SubTask(
14
  task_type = "text-classification",
15
  data="imdb",
16
  split="test[:10]",
17
+ data_preprocessor=self.preprocessor,
18
  args_for_task={
19
  "metric": "accuracy",
20
  "input_column": "text",