shibing624 commited on
Commit
c5a2e40
·
1 Parent(s): e008423

Update nli_zh.py

Browse files
Files changed (1) hide show
  1. nli_zh.py +3 -3
nli_zh.py CHANGED
@@ -113,21 +113,21 @@ class NliZh(datasets.GeneratorBasedBuilder):
113
  datasets.SplitGenerator(
114
  name=datasets.Split.TRAIN,
115
  gen_kwargs={
116
- "data_file": os.path.join(dl_dir, f"{self.config.name}.train.data"),
117
  "split": datasets.Split.TRAIN,
118
  },
119
  ),
120
  datasets.SplitGenerator(
121
  name=datasets.Split.VALIDATION,
122
  gen_kwargs={
123
- "data_file": os.path.join(dl_dir, f"{self.config.name}.valid.data"),
124
  "split": datasets.Split.VALIDATION,
125
  },
126
  ),
127
  datasets.SplitGenerator(
128
  name=datasets.Split.TEST,
129
  gen_kwargs={
130
- "data_file": os.path.join(dl_dir, f"{self.config.name}.test.data"),
131
  "split": datasets.Split.TEST,
132
  },
133
  ),
 
113
  datasets.SplitGenerator(
114
  name=datasets.Split.TRAIN,
115
  gen_kwargs={
116
+ "filepath": os.path.join(dl_dir, f"{self.config.name}.train.data"),
117
  "split": datasets.Split.TRAIN,
118
  },
119
  ),
120
  datasets.SplitGenerator(
121
  name=datasets.Split.VALIDATION,
122
  gen_kwargs={
123
+ "filepath": os.path.join(dl_dir, f"{self.config.name}.valid.data"),
124
  "split": datasets.Split.VALIDATION,
125
  },
126
  ),
127
  datasets.SplitGenerator(
128
  name=datasets.Split.TEST,
129
  gen_kwargs={
130
+ "filepath": os.path.join(dl_dir, f"{self.config.name}.test.data"),
131
  "split": datasets.Split.TEST,
132
  },
133
  ),