-
Notifications
You must be signed in to change notification settings - Fork 220
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
Mabey we cannot assert 'model_type' as a local path? #185
Comments
maybe yes |
easy to handle, \bert_score\score.py this file,change the line 95 , |
THANKS A LOT! |
Good! I make this method work better. After modification, you only need to change model_type to your local model path, e.g. self.bert_scorer = BERTScorer(
model_type="/Users/wangyangfan/remote/models/FacebookAI/roberta-large",
device='mps',
rescale_with_baseline=True,
lang='en'
) 👏 Inspired by @shuaijiumei, thanks a lot! Also, I created a PR that you can collaborate with if you are interested! |
|
照着修改了这里怎么也不管用啊,中国国内也连不上huggingface,我把预训练模型文件下载下来了,修改了utils里面的lang2model、model2layers中模型的路径,还是提示 We couldn't connect to 'https://huggingface.co/' to load this file, |
No description provided.
The text was updated successfully, but these errors were encountered: