Chapter 3 questions


while #dynamic Padding, why the code not gone through error,
as tokenized_datasets do not has any “labels” field instead it has “label” field,

but in .to_tf_dataset() method, why setting
label_cols= [“labels”]
working,

it must be from these ==> [‘sentence1’, ‘sentence2’, ‘label’, ‘idx’, ‘input_ids’, ‘token_type_ids’, ‘attention_mask’],

1 Like