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.3a1
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.3a1.tar.gz | 17.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ovos_plugin_linguonnx-0.3.3a1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.5 kB
Release files / ovos_plugin_linguonnx-0.3.3a1.tar.gz
| Download URL | ovos_plugin_linguonnx-0.3.3a1.tar.gz |
|---|---|
| Size | 17.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d54e4c5682499938ea21dc3f555335a77634fc8392be8453490f070baa6a9946
|
|
BLAKE2b-256 checksum How to use checksums |
c4cacbaf88fa5fda649d2dbc24f169b4ccfdae7cfb3e3cf0d4a4e2dee24bf061
|
| 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.3a1-py3-none-any.whl
| Download URL | ovos_plugin_linguonnx-0.3.3a1-py3-none-any.whl |
|---|---|
| Size | 13.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
346596d39ec2b86a7da8cd685c96abbe469f3463aaf9437a944578ae6378e8b0
|
|
BLAKE2b-256 checksum How to use checksums |
10f95688ce617766a04be88f79cf9ba514cc79f2c8a3c9827998e8b7dd618b2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|