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
Adding sentence-similarity widget
Browse files1 unmodified line2345678910111213141535 unmodified lines515253541 unmodified linelicense: apache-2.0language:- lvtags:- feature-extraction- fill-maskwidgets:- task: feature-extractiontext: "Latvijā ir 10 valstspilsētas."- task: fill-masktext: "Rīga ir Latvijas [MASK]."---# Latvian BERT base model (cased)35 unmodified linesdoi = {10.3233/FAIA200610},url = {http://ebooks.iospress.nl/volumearticle/55531}}```1 unmodified line234567835 unmodified lines444546471 unmodified linelicense: apache-2.0language:- lvpipeline_tag: sentence-similarity---# Latvian BERT base model (cased)35 unmodified linesdoi = {10.3233/FAIA200610},url = {http://ebooks.iospress.nl/volumearticle/55531}}```
README.md+2-9