Skip to main content
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

Credits

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ovos_plugin_linguonnx-0.3.2a2.tar.gz (17.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ovos_plugin_linguonnx-0.3.2a2-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file ovos_plugin_linguonnx-0.3.2a2.tar.gz.

File metadata

  • Download URL: ovos_plugin_linguonnx-0.3.2a2.tar.gz
  • Upload date:
  • Size: 17.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for ovos_plugin_linguonnx-0.3.2a2.tar.gz
Algorithm Hash digest
SHA256 804989cadf2e6ef6c82890c8a806cb26bccbb7fe07ed0ae51c7c174dacba4b8c
MD5 df832da2b7c00e4ad78a05874dd86f91
BLAKE2b-256 657ba2e9a16b5b87b4e10a9f0f381d7e8acf822873f5457085c83fbc63ebee53

See more details on using hashes here.

File details

Details for the file ovos_plugin_linguonnx-0.3.2a2-py3-none-any.whl.

File metadata

File hashes

Hashes for ovos_plugin_linguonnx-0.3.2a2-py3-none-any.whl
Algorithm Hash digest
SHA256 2a803d864575111d76fa96fb114a6bdc1136a83e88dc9147d57bbb64e5471a37
MD5 b11d3b56c56253888f41f78615e8bbc0
BLAKE2b-256 0646a2c0877e29295459e2ab41a4b53124a529d2a1113f6b909fa9442a22294c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page