Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: type object 'BertConfig' has no attribute 'pretrained_config_archive_map' #60

Closed
rashad101 opened this issue Jun 10, 2020 · 1 comment

Comments

@rashad101
Copy link

bert-score is not working raising this error:

File "/home/rony/.conda/envs/exp/bin/bert-score", line 5, in <module> from bert_score_cli.score import main File "/home/rony/.conda/envs/exp/lib/python3.6/site-packages/bert_score_cli/score.py", line 6, in <module> import bert_score File "/home/rony/.conda/envs/exp/lib/python3.6/site-packages/bert_score/__init__.py", line 2, in <module> from .utils import * File "/home/rony/.conda/envs/exp/lib/python3.6/site-packages/bert_score/utils.py", line 30, in <module> list(XLMConfig.pretrained_config_archive_map.keys()) + \ AttributeError: type object 'BertConfig' has no attribute 'pretrained_config_archive_map'

@Tiiiger
Copy link
Owner

Tiiiger commented Jun 10, 2020

hi @rashad101 , This is addressed in PR #58 . For now, please install from master.

We will update the pip distribution soon.

@Tiiiger Tiiiger closed this as completed Jun 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants