Views
No views yet
1from bert_score import BERTScorer
2
3texts1 = ['This is a text.']
4texts2 = ['This is another text.']
5
6scorer = BERTScorer(model_type='yongsun-yoon/minilmv2-bertscore-distilled', num_layers=6)
7P, R, F = scorer.score(texts1, texts2)