cis-lmu/glotlid-corpus
Viewer • Updated • 28.9k • 76.2k • 22
Run lopatnov/glotlid 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:
Use HF Jobs to fine-tune https://huggingface.co/lopatnov/glotlid. 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.
Use HF Jobs to run batch inference with https://huggingface.co/lopatnov/glotlid 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.
How to use lopatnov/glotlid with fastText:
from huggingface_hub import hf_hub_download
import fasttext
model = fasttext.load_model(hf_hub_download("lopatnov/glotlid", "model.bin"))This repository contains GlotLID models for the Lopatnov.Translate service. These files are mirrors of the original models from the cis-lmu/glotlid repository.
To configure model for the service, please modify appsettings.json:
{
"Models": {
"glotlid": {
"Type": "FastText",
"LabelFormat": "iso639-3", // GlotLID outputs ISO 639-3 codes
"LabelPrefix": "__label__",
"Path": "../../models/detect-lang/glotlid/model_v3.bin"
}
},
"Translation": {
"AutoDetect": "glotlid"
}
}
Note: Make sure the Path correctly points to the location of your downloaded .bin files relative to application.
For advanced configuration options, visit the Official Documentation.