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-08 14:46:23 -04:00

7 lines
228 B
Python

import os
from attack_args_helper import HUGGINGFACE_DATASET_BY_MODEL
for model in HUGGINGFACE_DATASET_BY_MODEL:
if model.startswith('x'):
os.system(f'python benchmark_models.py --model {model} --num-examples 200')