Run notebook on Kaggle and Colab give different results

Hi,

I found this notebook on Kaggle and when I ran it, it worked well but when I ran it on Google Colab, it failed on cell code 54 which is this line:

encoded_examples = examples.map(tokenize_and_align, remove_columns=[‘tokens’])
encoded_examples

Can anyone advise me, why is that and how to solve it?

Thank you