fasttext-language-detection-ms-id

FastText model to classify standard Malay, local Malay, local Indonesian and others.

how to use

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]))
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Dataset used to train mesolitica/fasttext-language-detection-ms-id