Instructions to use AiLab-IMCS-UL/lvbert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AiLab-IMCS-UL/lvbert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="AiLab-IMCS-UL/lvbert")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("AiLab-IMCS-UL/lvbert") model = AutoModel.from_pretrained("AiLab-IMCS-UL/lvbert", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Added fill-mask widget
Browse files
README.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
| 2 |
license: apache-2.0
|
| 3 |
language:
|
| 4 |
- lv
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
---
|
| 6 |
|
| 7 |
# Latvian BERT base model (cased)
|
|
|
|
| 2 |
license: apache-2.0
|
| 3 |
language:
|
| 4 |
- lv
|
| 5 |
+
tags:
|
| 6 |
+
- feature-extraction
|
| 7 |
+
- fill-mask
|
| 8 |
+
widgets:
|
| 9 |
+
- task: feature-extraction
|
| 10 |
+
text: "Latvijā ir 10 valstspilsētas."
|
| 11 |
+
- task: fill-mask
|
| 12 |
+
text: "Rīga ir Latvijas [MASK]."
|
| 13 |
---
|
| 14 |
|
| 15 |
# Latvian BERT base model (cased)
|