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.0a3.tar.gz (15.3 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.0a3-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file ovos_plugin_linguonnx-0.3.0a3.tar.gz.

File metadata

  • Download URL: ovos_plugin_linguonnx-0.3.0a3.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

Hashes for ovos_plugin_linguonnx-0.3.0a3.tar.gz
Algorithm Hash digest
SHA256 51ef06eda7c627fe0a53cf5b0577be631bba524839c8e1f9eb3c7b932d9a84c0
MD5 d336490928d486b39d6bcbe664a0c9e6
BLAKE2b-256 d0a9190a67ce0ebf4d6f8816123867759b67ec03e52493c9d5f02da2c0760377

See more details on using hashes here.

File details

Details for the file ovos_plugin_linguonnx-0.3.0a3-py3-none-any.whl.

File metadata

File hashes

Hashes for ovos_plugin_linguonnx-0.3.0a3-py3-none-any.whl
Algorithm Hash digest
SHA256 c25e3213bb1d7d0852a3908b987829dbd1940de1900d459b0a75df4ba2898e34
MD5 3c577dc7f71be8c2b90e21204293f671
BLAKE2b-256 40eab6028e51432e06aec837fa7a758472af87db979fe6324a70634a436d611f

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