ortix-seg
Runtime package for Ortix Latvian sentence segmentation models.
pip install ortix-seg
from ortix.seg import SentenceSegmenter
segmenter = SentenceSegmenter.from_pretrained("Baltrix-AI/ortix-seg-lv-base")
spans = segmenter.segment("Pirmais teikums. Otrais teikums.")
# spans == [
# SentenceSpan(start=0, end=16, text="Pirmais teikums."),
# SentenceSpan(start=16, end=32, text=" Otrais teikums."),
# ]
for span in spans:
print(span.text)
Ortix sentence-segmentation model repositories include
sentence_segmentation_config.json, which stores the calibrated threshold,
sliding-window settings, and post-processing defaults used at inference time.
The threshold can be adjusted when a project needs a different precision/recall tradeoff:
segmenter = SentenceSegmenter.from_pretrained(
"Baltrix-AI/ortix-seg-lv-base",
threshold=0.65,
)
Advanced post-processing switches can be overridden from Python:
segmenter = SentenceSegmenter.from_pretrained(
"Baltrix-AI/ortix-seg-lv-base",
postprocessing_overrides={
"suppress_latvian_abbreviation_continuations": False,
},
)
The command line exposes the threshold override:
ortix-seg --model Baltrix-AI/ortix-seg-lv-base --threshold 0.65 input.txt
Metadata
Release files for ortix-seg 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ortix_seg-0.1.0.tar.gz | 18.3 kB | With provenance | Details for ortix_seg-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ortix_seg-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for ortix_seg-0.1.0-py3-none-any.whl |
Total release size: 37.8 kB
Release files / ortix_seg-0.1.0.tar.gz
| Download URL | ortix_seg-0.1.0.tar.gz |
|---|---|
| Size | 18.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8620ba335cfc4e3a1dd00817aa40bf7727d5ef75adff731cf543a658b1b846f6
|
|
BLAKE2b-256 checksum How to use checksums |
36498465cc2d730856b169913cc50af1e2a429f565ba901984ea83b2bc025dbf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 8, 2026.
Transparency logRelease files / ortix_seg-0.1.0-py3-none-any.whl
| Download URL | ortix_seg-0.1.0-py3-none-any.whl |
|---|---|
| Size | 19.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
789af30973aa1de25861272b9d5b9331ea18c9ae760be2014e6290296d8823a6
|
|
BLAKE2b-256 checksum How to use checksums |
53af51bb4ab165dea7b1be96406e8656d74b90d6485f4064ab0d447406f16946
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 8, 2026.
Transparency logSecurity for ortix-seg 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for ortix_seg-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 8, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.