-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathrun_mwptoolkit.py
More file actions
26 lines (19 loc) · 862 Bytes
/
run_mwptoolkit.py
File metadata and controls
26 lines (19 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# -*- encoding: utf-8 -*-
# @Author: Yihuai Lan
# @Time: 2021/07/31 15:06:33
# @File: run_mwptoolkit.py
import argparse
import sys
import os
from mwptoolkit.quick_start import run_toolkit
sys.path.insert(0, os.path.abspath(os.path.join(os.getcwd(), ".")))
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('--model', '-m', type=str, default='GTS', help='name of models')
parser.add_argument('--dataset', '-d', type=str, default='math23k', help='name of datasets')
parser.add_argument('--task_type', '-t', type=str, default='single_equation', help='name of tasks')
args, _ = parser.parse_known_args()
config_dict = {}
#config_file_list = args.config_files.strip().split(' ') if args.config_files else None
#run_toolkit()
run_toolkit(args.model, args.dataset, args.task_type, config_dict)