Instructions to use HiTZ/JaunBERT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HiTZ/JaunBERT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="HiTZ/JaunBERT")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("HiTZ/JaunBERT") model = AutoModelForMaskedLM.from_pretrained("HiTZ/JaunBERT", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
license: apache-2.0
|
|
|
|
|
|
|
| 4 |
---
|
| 5 |
|
| 6 |
# JaunBERT
|
|
@@ -26,26 +28,26 @@ You can either use this model directly as the example below, or fine-tune it to
|
|
| 26 |
>>> pipe = pipeline("fill-mask", model='HiTZ/JaunBERT')
|
| 27 |
|
| 28 |
>>> pipe("Kaixo! Ni <mask> naiz!")
|
| 29 |
-
[{'score': 0.
|
| 30 |
-
'token':
|
| 31 |
-
'token_str': '
|
| 32 |
-
'sequence': 'Kaixo! Ni
|
| 33 |
-
{'score': 0.
|
| 34 |
-
'token':
|
| 35 |
-
'token_str': '
|
| 36 |
-
'sequence': 'Kaixo! Ni
|
| 37 |
-
{'score': 0.
|
| 38 |
-
'token':
|
| 39 |
-
'token_str': '
|
| 40 |
-
'sequence': 'Kaixo! Ni
|
| 41 |
-
{'score': 0.
|
| 42 |
-
'token':
|
| 43 |
-
'token_str': '
|
| 44 |
-
'sequence': 'Kaixo! Ni
|
| 45 |
-
{'score': 0.
|
| 46 |
-
'token':
|
| 47 |
-
'token_str': '
|
| 48 |
-
'sequence': 'Kaixo! Ni
|
| 49 |
```
|
| 50 |
|
| 51 |
## Training Data
|
|
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
license: apache-2.0
|
| 4 |
+
base_model:
|
| 5 |
+
- BSC-LT/MrBERT
|
| 6 |
---
|
| 7 |
|
| 8 |
# JaunBERT
|
|
|
|
| 28 |
>>> pipe = pipeline("fill-mask", model='HiTZ/JaunBERT')
|
| 29 |
|
| 30 |
>>> pipe("Kaixo! Ni <mask> naiz!")
|
| 31 |
+
[{'score': 0.034423828125,
|
| 32 |
+
'token': 71333,
|
| 33 |
+
'token_str': 'Aitor',
|
| 34 |
+
'sequence': 'Kaixo! Ni Aitor naiz!'},
|
| 35 |
+
{'score': 0.032470703125,
|
| 36 |
+
'token': 119830,
|
| 37 |
+
'token_str': 'Asier',
|
| 38 |
+
'sequence': 'Kaixo! Ni Asier naiz!'},
|
| 39 |
+
{'score': 0.0208740234375,
|
| 40 |
+
'token': 109222,
|
| 41 |
+
'token_str': 'Unai',
|
| 42 |
+
'sequence': 'Kaixo! Ni Unai naiz!'},
|
| 43 |
+
{'score': 0.0196533203125,
|
| 44 |
+
'token': 164657,
|
| 45 |
+
'token_str': 'Nerea',
|
| 46 |
+
'sequence': 'Kaixo! Ni Nerea naiz!'},
|
| 47 |
+
{'score': 0.0196533203125,
|
| 48 |
+
'token': 40163,
|
| 49 |
+
'token_str': 'Ane',
|
| 50 |
+
'sequence': 'Kaixo! Ni Ane naiz!'}]
|
| 51 |
```
|
| 52 |
|
| 53 |
## Training Data
|