flair icon indicating copy to clipboard operation
flair copied to clipboard

Transformers Update

Open hmiche opened this issue 2 years ago • 4 comments

When trying to call 👍 from flair.data import Sentence from flair.models import SequenceTagger

got this Error

Failed to import transformers.models.transfo_xl.tokenization_transfo_xl because of the following error (look up to see its traceback): No module named 'sacremoses'

Quick Solution : Use pip install transformers==4.18.0

hmiche avatar May 13 '22 08:05 hmiche

Hi @hmiche. I encountered today the same problem and solved it by "pip install sacremoses". I got then another one error (module 'flair' has no attribute 'nn'), which did not happen throughout the last two weeks where I used daily the flair framework.

i-partalas avatar May 14 '22 14:05 i-partalas

Yeah i got the same problem so i used an Old version of flair pip install flair==0.11.1

hmiche avatar May 14 '22 23:05 hmiche

Strangely, if you install sacremoses first you can install the current version of Flair (just tested on a fresh colab notebook):

pip install sacremoses
pip install flair

I have no idea why it does not work the other way around but am investigating now.

alanakbik avatar May 15 '22 10:05 alanakbik

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 20 '22 22:09 stale[bot]