Downloads · 30 days
5
0% of all-time downloads
yongsun-yoon/minilmv2-bertscore-distilled
minilmv2-bertscore-distilled is a feature extraction model from yongsun-yoon. Use it when you need embeddings to search or compare text. It is set up for transformers.
This is a distilled BERTScore model. Please read this post for details.
Downloads · 30 days
5
0% of all-time downloads
All-time downloads
101K
Public
Repo size
242 MB
Likes
0
Public
Click a slice to open those files.
.bin121 MB · 97%
From the Hugging Face model README
This is a distilled BERTScore model. Please read this post for details.
from bert_score import BERTScorer
texts1 = ['This is a text.']
texts2 = ['This is another text.']
scorer = BERTScorer(model_type='yongsun-yoon/minilmv2-bertscore-distilled', num_layers=6)
P, R, F = scorer.score(texts1, texts2)