1
0
mirror of https://github.com/QData/TextAttack.git synced 2021-10-13 00:05:06 +03:00
Files
textattack-nlp-transformer/textattack/shared/scripts/benchmark_all_models.py
2020-06-09 16:37:10 -04:00

6 lines
276 B
Python

import os
from attack_args_helper import HUGGINGFACE_DATASET_BY_MODEL
dir_path = os.path.dirname(os.path.realpath(__file__))
for model in HUGGINGFACE_DATASET_BY_MODEL:
os.system(f'python {os.path.join(dir_path, "benchmark_models.py")} --model {model} --num-examples 200')