yongsun-yoon
commited on
Commit
•
3a68784
1
Parent(s):
2c824d0
Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
This is a distilled BERTScore model.
|
2 |
+
Please read [this post](https://medium.com/@yongsun.yoon/bertscore-knowledge-distillation-42721b3508e2) for details.
|
3 |
+
|
4 |
+
```python
|
5 |
+
from bert_score import BERTScorer
|
6 |
+
|
7 |
+
texts1 = ['This is a text.']
|
8 |
+
texts2 = ['This is another text.']
|
9 |
+
|
10 |
+
scorer = BERTScorer(model_type='yongsun-yoon/minilmv2-bertscore-distilled', num_layers=6)
|
11 |
+
P, R, F = scorer.score(texts1, texts2)
|
12 |
+
```
|