Downloads · 30 days
0
mesolitica/fasttext-language-detection-bahasa-en
fasttext-language-detection-bahasa-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 Bahasa {standard Malay, local Malay, Indonesian}, English {standard English, Manglish, Singlish} and other languages.
Downloads · 30 days
0
Access
Public
Updated Jun 10, 2025
Repo size
2.6 GB
Likes
1
Public
Click a slice to open those files.
.bin2.3 GB · 87%
From the Hugging Face model README
FastText model to classify Bahasa {standard Malay, local Malay, Indonesian}, English {standard English, Manglish, Singlish} and other languages.
from huggingface_hub import hf_hub_download
import fasttext
filename = hf_hub_download(
repo_id="mesolitica/fasttext-language-detection-bahasa-en",
filename="fasttext.ftz"
)
lang_model = fasttext.load_model(filename)
lang_model.predict('hello my name', k = 10)
Output,
(('__label__english', '__label__bahasa', '__label__other'),
array([9.97674406e-01, 2.35472783e-03, 1.08091690e-05]))