jerryji1993 / DNABERT

DNABERT: pre-trained Bidirectional Encoder Representations from Transformers model for DNA-language in genome

Home Page:https://doi.org/10.1093/bioinformatics/btab083

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Importing error of Transformers

Rofidagamal opened this issue · comments

ImportError: cannot import name 'DNATokenizer' from 'transformers' (/usr/local/lib/python3.9/dist-packages/transformers/init.py)

I try several tries to get it put there is no solution, how can I solve it ?

Have you solved the problem yet?

You could try upgrading the transformer module using pip install transformers --upgrade, and then it worked out fine. but however, i reproduced the model all over again with a new one.

I tried "pip install transformers --upgrade", and still not working