File size: 1,437 Bytes
46b4a0d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
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](./ortix-card.webp)

# 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

```bash
pip install ortix-seg
```

```python
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