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/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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ovos_plugin_linguonnx-0.3.0a2.tar.gz.
File metadata
- Download URL: ovos_plugin_linguonnx-0.3.0a2.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
075a94d009d4455988f445e792d0568aa93cdefdf473a89d6762d685a5a8efc0
|
|
| MD5 |
f8a3d55c5e14253cd474373a8752bd6a
|
|
| BLAKE2b-256 |
a4ba968819ce9553ad38ce503dd85ec3e29570fd779a528740b40e588c64cfe3
|
File details
Details for the file ovos_plugin_linguonnx-0.3.0a2-py3-none-any.whl.
File metadata
- Download URL: ovos_plugin_linguonnx-0.3.0a2-py3-none-any.whl
- Upload date:
- Size: 13.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2c8b39ff75d8f3af9c7f02ca4b0bea49b522a6fa3c930b884b289875c925760
|
|
| MD5 |
de30323dcc3438c2f9e923bafd4cdfa6
|
|
| BLAKE2b-256 |
4ee34913f13a07b89d967da85f434e13cf098f9dea2cb60d9bb682311c0eec7d
|