Token Classification
Transformers
Safetensors
Latvian
deberta-v2
nlp
latvian
latvian-nlp
sentence-segmentation
sentence-boundary-detection
sentence-segmenter
text-segmentation
ortix
baltrix
Instructions to use Baltrix-AI/ortix-seg-lv-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Baltrix-AI/ortix-seg-lv-small with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Baltrix-AI/ortix-seg-lv-small")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("Baltrix-AI/ortix-seg-lv-small") model = AutoModelForTokenClassification.from_pretrained("Baltrix-AI/ortix-seg-lv-small", device_map="auto") - Notebooks
- Google Colab
- Kaggle
metadata
license: apache-2.0
language:
- lv
library_name: transformers
pipeline_tag: token-classification
base_model: AiLab-IMCS-UL/lv-deberta-base
tags:
- nlp
- latvian
- latvian-nlp
- sentence-segmentation
- sentence-boundary-detection
- sentence-segmenter
- text-segmentation
- token-classification
- deberta-v2
- ortix
- baltrix
Ortix Seg LV Small
Latvian sentence segmentation model for detecting sentence boundaries in written Latvian text.
This model is part of the Ortix release by Baltrix. It is intended for document cleanup, corpus processing, retrieval preprocessing, and other Latvian text-processing pipelines where sentence boundaries need to be recovered reliably.
The small variant is a 3-layer DeBERTa-v2 token-classification model adapted from AiLab-IMCS-UL/lv-deberta-base and optimized for lighter runtime use.
Use
pip install ortix-seg
from ortix.seg import SentenceSegmenter
segmenter = SentenceSegmenter.from_pretrained("Baltrix-AI/ortix-seg-lv-small")
spans = segmenter.segment("Pirmais teikums. Otrais teikums.")
The ortix-seg runtime applies the release-time segmentation configuration and Latvian postprocessing rules.
Links
- Runtime package: https://github.com/Baltrix-AI/ortix-runtime
- Release page: https://baltrix.ai/releases/ortix
- Blog article: https://baltrix.ai/blog/latvian-sentence-segmentation
