diff --git a/examples/text-classification/run_tf_text_classification.py b/examples/text-classification/run_tf_text_classification.py index 657119abb8..cb3b75da7b 100644 --- a/examples/text-classification/run_tf_text_classification.py +++ b/examples/text-classification/run_tf_text_classification.py @@ -60,7 +60,7 @@ def get_tfds( for k in files.keys(): transformed_ds[k] = ds[k].map( lambda example: tokenizer.batch_encode_plus( - (example[features_name[0]], features_name[1]), + (example[features_name[0]], example[features_name[1]]), truncation=True, max_length=max_seq_length, padding="max_length",