mirror of
https://github.com/QData/TextAttack.git
synced 2021-10-13 00:05:06 +03:00
add MR models and SNLI
This commit is contained in:
@@ -333,9 +333,10 @@ def parse_dataset_from_args(args):
|
||||
_, args.dataset_from_nlp = HUGGINGFACE_DATASET_BY_MODEL[args.model]
|
||||
elif args.model in TEXTATTACK_DATASET_BY_MODEL:
|
||||
_, args.dataset_from_nlp = TEXTATTACK_DATASET_BY_MODEL[args.model]
|
||||
|
||||
|
||||
|
||||
# Automatically detect dataset for models trained with textattack.
|
||||
if args.model and os.path.exists(args.model):
|
||||
elif args.model and os.path.exists(args.model):
|
||||
model_args_json_path = os.path.join(args.model, "train_args.json")
|
||||
if not os.path.exists(model_args_json_path):
|
||||
raise FileNotFoundError(
|
||||
|
||||
Reference in New Issue
Block a user