bert_score icon indicating copy to clipboard operation
bert_score copied to clipboard

Bertscore not working for Hindi language

Open agrawalanshul053 opened this issue 2 years ago • 0 comments
trafficstars

using torch==1.5.1 using transformers==3.0.1

using bert-score==0.3.4

P, R, F1 = score(cands, refs, lang='hi', model_type='bert-base-multilingual-cased')

Above line of code is giving the below error. I have tried transformer version 4.5.1 and 4.10

AttributeError: 'BertTokenizerFast' object has no attribute 'max_len'

agrawalanshul053 avatar Mar 13 '23 20:03 agrawalanshul053