yangheng95 / PyABSA

Sentiment Analysis, Text Classification, Text Augmentation, Text Adversarial defense, etc.;
https://pyabsa.readthedocs.io
MIT License
923 stars 159 forks source link

Error with transformers version #143

Closed anilkumar9912 closed 2 years ago

anilkumar9912 commented 2 years ago

Hi @yangheng95 , The transformers version required is kept greater than 4.5 '4.5<transformers<5.0', whereas the latest version of transformers itself is 4.17 only.

Because of this we're getting the following error with pip install -U pyabsa absa

AaronHeee commented 2 years ago

I encounter the same issue when using python setup.py install

anilkumar9912 commented 2 years ago

I encounter the same issue when using python setup.py install

@AaronHeee If you are installing from source, you can edit the line 4.5<transformers<5.0 in setup.py to 4.0<transformers<5.0 .Alterntively you can pip install transformers.

anilkumar9912 commented 2 years ago

Working well with 1.8.33 version.