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
Update Ortix model card
Browse files- README.md +51 -0
- ortix-card.webp +0 -0
README.md
CHANGED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- lv
|
| 5 |
+
library_name: transformers
|
| 6 |
+
pipeline_tag: token-classification
|
| 7 |
+
base_model: AiLab-IMCS-UL/lv-deberta-base
|
| 8 |
+
tags:
|
| 9 |
+
- nlp
|
| 10 |
+
- latvian
|
| 11 |
+
- latvian-nlp
|
| 12 |
+
- sentence-segmentation
|
| 13 |
+
- sentence-boundary-detection
|
| 14 |
+
- sentence-segmenter
|
| 15 |
+
- text-segmentation
|
| 16 |
+
- token-classification
|
| 17 |
+
- deberta-v2
|
| 18 |
+
- ortix
|
| 19 |
+
- baltrix
|
| 20 |
+
---
|
| 21 |
+
|
| 22 |
+

|
| 23 |
+
|
| 24 |
+
# Ortix Seg LV Small
|
| 25 |
+
|
| 26 |
+
Latvian sentence segmentation model for detecting sentence boundaries in written Latvian text.
|
| 27 |
+
|
| 28 |
+
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.
|
| 29 |
+
|
| 30 |
+
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.
|
| 31 |
+
|
| 32 |
+
## Use
|
| 33 |
+
|
| 34 |
+
```bash
|
| 35 |
+
pip install ortix-seg
|
| 36 |
+
```
|
| 37 |
+
|
| 38 |
+
```python
|
| 39 |
+
from ortix.seg import SentenceSegmenter
|
| 40 |
+
|
| 41 |
+
segmenter = SentenceSegmenter.from_pretrained("Baltrix-AI/ortix-seg-lv-small")
|
| 42 |
+
spans = segmenter.segment("Pirmais teikums. Otrais teikums.")
|
| 43 |
+
```
|
| 44 |
+
|
| 45 |
+
The `ortix-seg` runtime applies the release-time segmentation configuration and Latvian postprocessing rules.
|
| 46 |
+
|
| 47 |
+
## Links
|
| 48 |
+
|
| 49 |
+
- Runtime package: https://github.com/Baltrix-AI/ortix-runtime
|
| 50 |
+
- Release page: https://baltrix.ai/releases/ortix
|
| 51 |
+
- Blog article: https://baltrix.ai/blog/latvian-sentence-segmentation
|
ortix-card.webp
ADDED
|