flair
flair copied to clipboard
Transformers Update
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
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.
Yeah i got the same problem so i used an Old version of flair pip install flair==0.11.1
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.
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.