Fix tf text class (#7724)
* Fix test * fix generic text classification * fix test * Fix tests
This commit is contained in:
@@ -60,7 +60,7 @@ def get_tfds(
|
|||||||
for k in files.keys():
|
for k in files.keys():
|
||||||
transformed_ds[k] = ds[k].map(
|
transformed_ds[k] = ds[k].map(
|
||||||
lambda example: tokenizer.batch_encode_plus(
|
lambda example: tokenizer.batch_encode_plus(
|
||||||
(example[features_name[0]], features_name[1]),
|
(example[features_name[0]], example[features_name[1]]),
|
||||||
truncation=True,
|
truncation=True,
|
||||||
max_length=max_seq_length,
|
max_length=max_seq_length,
|
||||||
padding="max_length",
|
padding="max_length",
|
||||||
|
|||||||
Reference in New Issue
Block a user