From 97629b405226eb77eafe1ad7bbb2e4661fc77876 Mon Sep 17 00:00:00 2001 From: Admin Date: Mon, 27 Dec 2021 02:39:03 +0000 Subject: [PATCH] =?UTF-8?q?update=20examples/machine=5Freading=5Fcomprehen?= =?UTF-8?q?sion/SQuAD/deploy/python/predict.py.=20=E4=BF=AE=E6=94=B9118?= =?UTF-8?q?=E8=A1=8Csqaud=E4=B8=BAsquad?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SQuAD/deploy/python/predict.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/machine_reading_comprehension/SQuAD/deploy/python/predict.py b/examples/machine_reading_comprehension/SQuAD/deploy/python/predict.py index 665659dd8..e68e604be 100644 --- a/examples/machine_reading_comprehension/SQuAD/deploy/python/predict.py +++ b/examples/machine_reading_comprehension/SQuAD/deploy/python/predict.py @@ -115,7 +115,7 @@ def main(): os.path.dirname(args.model_name_or_path)) if args.predict_file: - dataset = load_dataset('sqaud', data_files=args.predict_file) + dataset = load_dataset('squad', data_files=args.predict_file) elif args.version_2_with_negative: dataset = load_dataset('squad', splits='dev_v2') else: -- Gitee