mirror of
https://github.com/QData/TextAttack.git
synced 2021-10-13 00:05:06 +03:00
Update dataset_args.py
This commit is contained in:
@@ -275,7 +275,7 @@ class DatasetArgs:
|
||||
dataset_args = (dataset_args,)
|
||||
if args.dataset_split:
|
||||
if len(dataset_args) > 1:
|
||||
dataset_args[2] = args.dataset_split
|
||||
dataset_args = dataset_args[:1] + (args.dataset_split,) + dataset_args[2:]
|
||||
dataset = textattack.datasets.HuggingFaceDataset(
|
||||
*dataset_args, shuffle=False
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user