Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

FastText Language Identification

This plugin identifies the language of a text with the fasttext-language-identification model. Facebook AI Research trained this model as a companion to NLLB. The plugin downloads the model from the Hugging Face Hub on first use.

Install

pip install ovos-lang-detector-fasttext-plugin

Usage

Set this plugin as the language detection module in mycroft.conf:

  "language": {
    "detection_module": "ovos-lang-detector-fasttext-plugin"
  },

You can also call the plugin directly:

from ovos_lang_detector_fasttext_plugin import FastTextLangDetectPlugin

clf = FastTextLangDetectPlugin()
print(clf.detect("olá mundo"))
print(clf.detect_probs("olá mundo"))

detect returns the most likely language code. detect_probs returns the top 5 language codes with their probabilities.

License

Apache-2.0

Metadata

Release files for ovos-lang-detector-fasttext-plugin 0.1.3a7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ovos-lang-detector-fasttext-plugin 0.1.3a7
File Size Uploaded
ovos_lang_detector_fasttext_plugin-0.1.3a7.tar.gz 6.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ovos-lang-detector-fasttext-plugin 0.1.3a7
File Interpreter ABI Platform
ovos_lang_detector_fasttext_plugin-0.1.3a7-py3-none-any.whl Python 3 none any Details

Total release size: 14.7 kB

Release files / ovos_lang_detector_fasttext_plugin-0.1.3a7.tar.gz

Download URL ovos_lang_detector_fasttext_plugin-0.1.3a7.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
cc965475a875916df07de3edf51207eb652ca1677634da23536b3b5b36fd3b12
BLAKE2b-256 checksum
How to use checksums
ab3579671507e3936489a9bd93b226b1c66f49d9d66ac2f3696f8d877cc3b29d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / ovos_lang_detector_fasttext_plugin-0.1.3a7-py3-none-any.whl

Download URL ovos_lang_detector_fasttext_plugin-0.1.3a7-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7a3f64164cd09a0b862106442f939cf50da8eb192bd29b44f8d33570d2ec4a41
BLAKE2b-256 checksum
How to use checksums
a349e65da2216fa3fa153de76eb1d0c306cbd7fa185023b1603e88ddf63cc75c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page