You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Loading e.g the "sentiment" classifier with the Classifier class throws an error, that the folder or file cannot be found. Expected behavior should be, that the sentiment model from the HU model repo should be fetched. This seems to be a regression bug, as with flair==0.12.x it works
The code should download the text classifiert model and the respective model object should be returns
Logs and Stack traces
Traceback (most recent call last):
File "/home/folder/test.py", line 4, in <module>
classifier = Classifier.load('sentiment')
File "/home/folder/venv/lib/python3.9/site-packages/flair/nn/model.py", line 557, in load
return cast("Classifier", super().load(model_path=model_path))
File "/home/folder/venv/lib/python3.9/site-packages/flair/nn/model.py", line 149, in load
return model_cls.load(new_model_path)
File "/home/folder/venv/lib/python3.9/site-packages/flair/file_utils.py", line 351, in load_torch_state
f = load_big_file(model_file)
File "/home/folder/venv/lib/python3.9/site-packages/flair/file_utils.py", line 49, in load_big_file
with open(f, "rb") as f_in:
FileNotFoundError: [Errno 2] No such file or directory: 'sentiment'
Screenshots
No response
Additional Context
No response
Environment
Versions:
Flair
0.13.1
Pytorch
2.2.2+cu121
Transformers
4.40.0
GPU
True
The text was updated successfully, but these errors were encountered:
Describe the bug
Loading e.g the
"sentiment"
classifier with theClassifier
class throws an error, that the folder or file cannot be found. Expected behavior should be, that the sentiment model from the HU model repo should be fetched. This seems to be a regression bug, as with flair==0.12.x it worksTo Reproduce
Expected behavior
The code should download the text classifiert model and the respective model object should be returns
Logs and Stack traces
Screenshots
No response
Additional Context
No response
Environment
Versions:
Flair
0.13.1
Pytorch
2.2.2+cu121
Transformers
4.40.0
GPU
True
The text was updated successfully, but these errors were encountered: