mirror of
https://github.com/QData/TextAttack.git
synced 2021-10-13 00:05:06 +03:00
fix multilabel load for pre-trained lstm/cnn; add benchmarked results for MR
This commit is contained in:
@@ -322,7 +322,11 @@ def parse_model_from_args(args):
|
||||
model_from_args,
|
||||
)
|
||||
|
||||
model = model_from_args(argparse.Namespace(**model_train_args), num_labels)
|
||||
model = model_from_args(
|
||||
argparse.Namespace(**model_train_args),
|
||||
num_labels,
|
||||
model_path=args.model,
|
||||
)
|
||||
else:
|
||||
raise ValueError(f"Error: unsupported TextAttack model {args.model}")
|
||||
return model
|
||||
|
||||
Reference in New Issue
Block a user