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

Trying Custom BERT model #170

Open
arvindc28 opened this issue Oct 6, 2023 · 1 comment
Open

Trying Custom BERT model #170

arvindc28 opened this issue Oct 6, 2023 · 1 comment

Comments

@arvindc28
Copy link

Hi, I have recently raised the issue here which you can refer to. I was basically trying to use an external model try and get the bert_score for it.

I don't know if there is an issue with the model_type parameter or the missing tokenizer parameter or something else. All help will be appreciated!

Thanks

@fkurushin
Copy link

@arvindc28

Hi ! try add num_layers

P, R, F1 = score(
    candidate, reference, lang="ru", verbose=True, 
    model_type="DeepPavlov/rubert-base-cased",
    num_layers=12,
    rescale_with_baseline=True
)

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