Tokenizer is not returning any 'input_ids" but code is expecting them - "M3_G1_evaluation_and_debugging"

I am getting errors in Exercise 4 of M3_G1
formatted_texts is a list but tokenizer expects a string, also even if i pass string it doesnt return any key value pairs, its just alist of tokens ,

Stuck at the same place, any hint appreciated!

I am not mentor for this course,

instruction mentions to use tokenizet on formatted texts, then why using formatted_texts[0]??

formatted_texts is a list and wheni pass that list i get an error that it expects Unios [List, Tuple], so tried to pass a single string and check what is the output of the tokenizer,

1 Like

did you Try just formatted_texts??

I did , its throwing error so passed a single string of that list to check what the tokenizer is returning