Downloads · 30 days
0
mesolitica/fasttext-language-detection-en
fasttext-language-detection-en is a machine learning model from mesolitica. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
FastText model to classify standard English and local English.
Downloads · 30 days
0
Access
Public
Updated Jun 10, 2025
Repo size
426 MB
Likes
0
Public
Click a slice to open those files.
.bin383 MB · 90%
From the Hugging Face model README
FastText model to classify standard English and local English.
from huggingface_hub import hf_hub_download
import fasttext
filename = hf_hub_download(
repo_id="mesolitica/fasttext-language-detection-en",
filename="fasttext.ftz"
)
lang_model = fasttext.load_model(filename)
lang_model.predict('hello my name', k = 10)
Output,
(('__label__standard-english', '__label__local-english', '__label__other'),
array([0.85033566, 0.09981849, 0.04988486]))