Run this model with HF Jobs

Run slone/fastText-LID-323 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/slone/fastText-LID-323. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/slone/fastText-LID-323 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

This is a fastText-based language classification model from the paper The first neural machine translation system for the Erzya language.

It supports 323 languages used in Wikipedia (as of July 2022), and has extended support of the Erzya (myv) and Moksha (mdf) languages.

Example usage:

import fasttext
import urllib.request
import os
model_path = 'lid.323.ftz'
url = 'https://huggingface.co/slone/fastText-LID-323/resolve/main/lid.323.ftz'
if not os.path.exists(model_path):
    urllib.request.urlretrieve(url, model_path)  # or just download it manually

model = fasttext.load_model(model_path)
languages, scores = model.predict("эрзянь кель", k=3)  # k is the number of returned hypotheses

The model was trained on texts of articles randomly sampled from Wikipedia. It works better with sentences and longer texts than with words, and may be sensitive to noise.

Downloads last month
5
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Space using slone/fastText-LID-323 1

Paper for slone/fastText-LID-323