Hi, I’m interested in using T5 to generate word embeddings. I tried the code supplied above. Unfortunately, got this error message:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-40-5f6e22d1ad1e> in <module>()
1 model = T5Model.from_pretrained("t5-small")
----> 2 tok = T5Tokenizer.from_pretrained("t5-small")
3
4 enc = tok("some text", return_tensors="pt")
5
TypeError: 'NoneType' object is not callable
Do you have any thoughts on resolving this error message?
Thank you in advance for your help.