biobert-pytorch
biobert-pytorch copied to clipboard
TypeError: TextInputSequence must be str
I run the code of RE , meeting this problem "TypeError: TextInputSequence must be str". How can I solve it? thanks
I met same problem when run question-answering. :((
I fixed the error by creating a new environment with python3.7. To begin, I had a conda environment with python 3.11 and pytorch 2.0, then not compatible with the requirement "transformers == 3.0.0", so I installed transformers 4.33, I thought that was a problem. Thus, I created a new environment with python 3.7 that can install "transformers == 3.0.0". This is my solution.