Solved by satpalsr in post #2 
              
              
                Hey @ghadeermobasher , This has been explained in chapter 5 of the course (The 🤗 Datasets library - Hugging Face Course). Scroll down a bit and you will find a similar error with the explanation. 
You need to modify your “tokenize_text” function as such: 
def tokenize_text(examples):
    result = to…