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
File "/content/drive/MyDrive/SharedColabNotebooks/Code/transformersum/src/main.py", line 8, in <module>
from extractive import ExtractiveSummarizer
File "/content/drive/.shortcut-targets-by-
id/1AslFCJkKFwmDS9rtbO_CAdHbBWuL1I4A/SharedColabNotebooks/Code/transformersum/src/extractive.py", line 47, in <module>
[m.model_type for m in MODEL_MAPPING]
File "/usr/local/envs/transformersum_test/lib/python3.8/site-packages/transformers/models/auto/auto_factory.py", line 528, in __iter__
return iter(self._mapping.keys())
AttributeError: '_LazyAutoMapping' object has no attribute '_mapping'
Any help is greatly appreciated!
The text was updated successfully, but these errors were encountered:
For
I get the following error:
The _LazyAutoMapping class does indeed not have the attribute _mapping (see https://github.com/huggingface/transformers/blob/master/src/transformers/models/auto/auto_factory.py). However, it has a function def iter(self) that is supposed to return iter(self._mapping.keys()), which does not exist in init(). Am I missing something here or is this an error that needs to be fixed?
This is the error message:
Any help is greatly appreciated!
The text was updated successfully, but these errors were encountered: