Need help on excersie 4 of c3w2 assignment

I am stuck on the 4th exercise of the c3w2 assignment where we would prepossess the text and labels using the map and lambda functions. I tried to following the other exercises and just can’t seem to get it.

When using dataset.map, it’s okay to return a tuple of type (processed text, processed label). Use the label encoder just the way you use the text vectorizer to create the mapped dataset.

Hi @benvuong

see that if this explanation helps

make sure while you create the lambda text, don’t forget to tuple the text and labels when using their respective function call.

Regards
DP