update tokenizer code for compatibility with latest transformers

#12
No description provided.

I have confirmed that this change works for me. Can you please merge this into main? Thanks!

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment