Downloads · 30 days
0
mesolitica/fasttext-language-detection-ms-id
fasttext-language-detection-ms-id 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 Malay, local Malay, local Indonesian and others.
Downloads · 30 days
0
Access
Public
Updated Jun 10, 2025
Repo size
600 MB
Likes
0
Public
Click a slice to open those files.
.bin537 MB · 90%
From the Hugging Face model README
FastText model to classify standard Malay, local Malay, local Indonesian and others.
from huggingface_hub import hf_hub_download
import fasttext
filename = hf_hub_download(
repo_id="mesolitica/fasttext-language-detection-ms-id",
filename="fasttext.ftz"
)
lang_model = fasttext.load_model(filename)
lang_model.predict('hello name saye', k = 10)
Output,
(('__label__standard-malay',
'__label__other',
'__label__socialmedia-indonesian',
'__label__local-malay'),
array([8.16933990e-01, 1.58563450e-01, 2.42817383e-02, 2.62394664e-04]))