Pre-release
This release is a pre-release and may not be stable for production use.
ovos-plugin-linguonnx
OVOS language plugins built on
linguonnx. One package, two
plugins, both CPU-only on onnxruntime, both fully offline after the models
are cached, neither needs torch:
| Plugin | Entry point group | Plugin id |
|---|---|---|
LinguONNXLangDetectPlugin |
opm.lang.detect |
ovos-lang-detect-plugin-linguonnx |
LinguONNXTranslatePlugin |
opm.lang.translate |
ovos-translate-plugin-linguonnx |
Install
pip install ovos-plugin-linguonnx
Models download from HuggingFace on first use and are cached under
~/.cache/linguonnx/models/<model_id>/. Constructing either plugin does not
trigger a download; the first real call does. On a server, prefetch instead —
see Prefetching.
Usage
from ovos_plugin_linguonnx import LinguONNXLangDetectPlugin, LinguONNXTranslatePlugin
det = LinguONNXLangDetectPlugin()
det.detect("bom dia") # 'pt'
tx = LinguONNXTranslatePlugin()
tx.translate("Good morning", target="gl", source="en")
Documentation
- docs/language-detection.md — detection config, model choice, and language varieties.
- docs/translation.md — translation config, routing, and prefetching.
- docs/configuration.md — the full translation config reference, including the size/fallback routing budget.
- docs/docker.md — running both plugins as a server image.
- docs/deployment.md — cache mounts, prefetching, memory sizing, and the verification checklist for a production service.
- docs/errors.md — what
translate()raises and how to map it to HTTP status codes.
Credits
- linguonnx — the detection and translation engine this package wraps.
- TigreGotico/glotlid-onnx —
the ONNX export of GlotLID that
linguonnxruns for detection.
Release files for ovos-plugin-linguonnx 0.3.2a4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ovos_plugin_linguonnx-0.3.2a4.tar.gz | 17.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ovos_plugin_linguonnx-0.3.2a4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.2 kB
Release files / ovos_plugin_linguonnx-0.3.2a4.tar.gz
| Download URL | ovos_plugin_linguonnx-0.3.2a4.tar.gz |
|---|---|
| Size | 17.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8546e8bbdd34d5b452c02a7a86b1c0633785a5897dd5f1c12c6597fd48bb0683
|
|
BLAKE2b-256 checksum How to use checksums |
ab3fc933ab46c0d9b3058654ccef190be2aa01ce6eaba2e6461825f34ba6311f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / ovos_plugin_linguonnx-0.3.2a4-py3-none-any.whl
| Download URL | ovos_plugin_linguonnx-0.3.2a4-py3-none-any.whl |
|---|---|
| Size | 13.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6370a5f00977703219b6d3bb48fe20bb865f430381344cba6fe478163da961f4
|
|
BLAKE2b-256 checksum How to use checksums |
02f77a1de8fa1d18b771bd4fd6bd394582543380c1c00bf8844f6ea8476dd6af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|