Skip to content

Commit a0c0aba

Browse files
authored
fix squad example (#489)
* update chnsenticorp and lcqmc to qianyan format * update md5 check * minor fix
1 parent d777dbb commit a0c0aba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/machine_reading_comprehension/SQuAD/run_squad.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def run(args):
236236

237237
if args.do_train:
238238
if args.train_file:
239-
train_ds = load_dataset('sqaud', data_files=args.train_file)
239+
train_ds = load_dataset('squad', data_files=args.train_file)
240240
elif args.version_2_with_negative:
241241
train_ds = load_dataset('squad', splits='train_v2')
242242
else:
@@ -320,7 +320,7 @@ def run(args):
320320

321321
if args.do_predict and rank == 0:
322322
if args.predict_file:
323-
dev_ds = load_dataset('sqaud', data_files=args.predict_file)
323+
dev_ds = load_dataset('squad', data_files=args.predict_file)
324324
elif args.version_2_with_negative:
325325
dev_ds = load_dataset('squad', splits='dev_v2')
326326
else:

0 commit comments

Comments
 (0)