Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,50 @@
|
|
1 |
---
|
2 |
license: mit
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: mit
|
3 |
+
language:
|
4 |
+
- it
|
5 |
---
|
6 |
+
--------------------------------------------------------------------------------------------------
|
7 |
+
|
8 |
+
<body>
|
9 |
+
<span class="vertical-text" style="background-color:lightgreen;border-radius: 3px;padding: 3px;"> </span>
|
10 |
+
<br>
|
11 |
+
<span class="vertical-text" style="background-color:orange;border-radius: 3px;padding: 3px;"> </span>
|
12 |
+
<br>
|
13 |
+
<span class="vertical-text" style="background-color:lightblue;border-radius: 3px;padding: 3px;"> Model: ROBERTA</span>
|
14 |
+
<br>
|
15 |
+
<span class="vertical-text" style="background-color:tomato;border-radius: 3px;padding: 3px;"> Lang: IT</span>
|
16 |
+
<br>
|
17 |
+
<span class="vertical-text" style="background-color:lightgrey;border-radius: 3px;padding: 3px;"> </span>
|
18 |
+
<br>
|
19 |
+
<span class="vertical-text" style="background-color:#CF9FFF;border-radius: 3px;padding: 3px;"> </span>
|
20 |
+
</body>
|
21 |
+
|
22 |
+
--------------------------------------------------------------------------------------------------
|
23 |
+
|
24 |
+
<h3>Model description</h3>
|
25 |
+
|
26 |
+
This is a <b>RoBERTa</b> <b>[1]</b> model for the <b>italian</b> language, obtained using <b>XLM-RoBERTa</b> <b>[2]</b> ([xlm-roberta-base](https://huggingface.co/xlm-roberta-base)) as a starting point and focusing it on the italian language by modifying the embedding layer
|
27 |
+
(as in <b>[3]</b>, computing document-level frequencies over the <b>Wikipedia</b> dataset)
|
28 |
+
|
29 |
+
The resulting model has 125M parameters, a vocabulary of 50.670 tokens, and a size of ~500 MB.
|
30 |
+
|
31 |
+
<h3>Quick usage</h3>
|
32 |
+
|
33 |
+
```python
|
34 |
+
from transformers import RobertaTokenizerFast, RobertaModel
|
35 |
+
|
36 |
+
tokenizer = RobertaTokenizerFast.from_pretrained("osiria/roberta-base-italian")
|
37 |
+
model = RobertaModel.from_pretrained("osiria/roberta-base-italian")
|
38 |
+
```
|
39 |
+
|
40 |
+
<h3>References</h3>
|
41 |
+
|
42 |
+
[1] https://arxiv.org/abs/1907.11692
|
43 |
+
|
44 |
+
[2] https://arxiv.org/abs/1911.02116
|
45 |
+
|
46 |
+
[3] https://arxiv.org/abs/2010.05609
|
47 |
+
|
48 |
+
<h3>License</h3>
|
49 |
+
|
50 |
+
The model is released under <b>MIT</b> license
|