Migrate model card from transformers-repo
Browse filesRead announcement at https://discuss.huggingface.co/t/announcement-all-model-cards-will-be-migrated-to-hf-co-model-repos/2755
Original file history: https://github.com/huggingface/transformers/commits/master/model_cards/julien-c/EsperBERTo-small/README.md
README.md
CHANGED
@@ -1,17 +1,63 @@
|
|
1 |
---
|
2 |
-
language:
|
3 |
-
thumbnail: https://huggingface.co/blog/assets/EsperBERTo-thumbnail-v2.png
|
|
|
|
|
|
|
|
|
4 |
---
|
5 |
|
6 |
-
|
7 |
|
8 |
**Companion model to blog post https://huggingface.co/blog/how-to-train** 🔥
|
9 |
|
10 |
-
|
11 |
|
12 |
- current checkpoint: 566000
|
13 |
- machine name: `galinette`
|
14 |
|
15 |
|
16 |
-
![](https://huggingface.co/blog/assets/EsperBERTo-thumbnail-v2.png)
|
17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
language: eo
|
3 |
+
thumbnail: https://huggingface.co/blog/assets/01_how-to-train/EsperBERTo-thumbnail-v2.png
|
4 |
+
widget:
|
5 |
+
- text: "Jen la komenco de bela <mask>."
|
6 |
+
- text: "Uno du <mask>"
|
7 |
+
- text: "Jen finiĝas bela <mask>."
|
8 |
---
|
9 |
|
10 |
+
# EsperBERTo: RoBERTa-like Language model trained on Esperanto
|
11 |
|
12 |
**Companion model to blog post https://huggingface.co/blog/how-to-train** 🔥
|
13 |
|
14 |
+
## Training Details
|
15 |
|
16 |
- current checkpoint: 566000
|
17 |
- machine name: `galinette`
|
18 |
|
19 |
|
20 |
+
![](https://huggingface.co/blog/assets/01_how-to-train/EsperBERTo-thumbnail-v2.png)
|
21 |
|
22 |
+
## Example pipeline
|
23 |
+
|
24 |
+
```python
|
25 |
+
from transformers import pipeline
|
26 |
+
|
27 |
+
fill_mask = pipeline(
|
28 |
+
"fill-mask",
|
29 |
+
model="julien-c/EsperBERTo-small",
|
30 |
+
tokenizer="julien-c/EsperBERTo-small"
|
31 |
+
)
|
32 |
+
|
33 |
+
fill_mask("Jen la komenco de bela <mask>.")
|
34 |
+
|
35 |
+
# This is the beginning of a beautiful <mask>.
|
36 |
+
# =>
|
37 |
+
|
38 |
+
# {
|
39 |
+
# 'score':0.06502299010753632
|
40 |
+
# 'sequence':'<s> Jen la komenco de bela vivo.</s>'
|
41 |
+
# 'token':1099
|
42 |
+
# }
|
43 |
+
# {
|
44 |
+
# 'score':0.0421181358397007
|
45 |
+
# 'sequence':'<s> Jen la komenco de bela vespero.</s>'
|
46 |
+
# 'token':5100
|
47 |
+
# }
|
48 |
+
# {
|
49 |
+
# 'score':0.024884626269340515
|
50 |
+
# 'sequence':'<s> Jen la komenco de bela laboro.</s>'
|
51 |
+
# 'token':1570
|
52 |
+
# }
|
53 |
+
# {
|
54 |
+
# 'score':0.02324388362467289
|
55 |
+
# 'sequence':'<s> Jen la komenco de bela tago.</s>'
|
56 |
+
# 'token':1688
|
57 |
+
# }
|
58 |
+
# {
|
59 |
+
# 'score':0.020378097891807556
|
60 |
+
# 'sequence':'<s> Jen la komenco de bela festo.</s>'
|
61 |
+
# 'token':4580
|
62 |
+
# }
|
63 |
+
```
|