x4nth055 / pythoncode-tutorials

The Python Code Tutorials
https://www.thepythoncode.com
MIT License
2.11k stars 1.87k forks source link

using_t5.py throw Unable to load vocabulary from file. Please check that the provided vocabulary is accessible and not corrupted. #58

Open doritnap opened 3 years ago

doritnap commented 3 years ago

I'm trying to use the using_t5.py script, but i get the above error. I'm running on WIn10, python 3.8. Transformers 4.3.3.

Any idea?

Thanks, Dorit

x4nth055 commented 3 years ago

Hey @doritnap ,

Sorry for the late response. After some research, you need to update transformers to the current version (4.10.0), and install sentencepiece library:

$ pip install --upgrade transformers sentencepiece

Hope this helps, Thanks!