Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Hugging Face 8 min read Case study mediumAdept

Huggy Lingo: Using Machine Learning to Improve Language Metadata on the Hugging Face Hub

Roughly 87% of the ~50K public datasets on the Hugging Face Hub lack language metadata, so Hugging Face samples 20 rows from likely text columns via the dataset viewer API and runs Meta's fastText language-identification model (217 languages) on each row. Per-dataset predictions are grouped by language, and a language is kept only if it appears in at least 20% of rows with a mean confidence of at least 80%. ISO 639-3 codes are converted to ISO 639-1 with the script dropped, and some codes are mapped by hand. Librarian-Bot then opens pull requests adding the language tags, which repo owners can merge to make datasets discoverable through the Hub's language filters.

Assumes: Hugging Face Hub datasetslanguage identification basics

Related posts

  • Introducing the Data Measurements Tool: an Interactive Tool for Looking at Datasets

    Hugging Face easyNovice

    Hugging Face's Data Measurements Tool is an open-source Python library and no-code Streamlit interface for measuring, exploring and comparing NLP datasets on the Hub. It reports dataset basics (missing values), descriptive statistics (vocabulary, label balance, instance lengths, duplicates), and fit to Zipf's law. As a rule of thumb, an alpha above 2 or a minimum rank above 10 suggests unnatural text such as leftover HTML. It also shows hierarchical clusters built from Sentence-Transformer embeddings and nPMI between identity terms to surface stereotypes. The alpha version covers a handful of English datasets like SQuAD, IMDb and C4, with support for user datasets and custom nPMI terms planned.

  • Data-Centric Machine Learning: Building Shopify Inbox’s Message Classification Model

    Shopify Engineering mediumAdept

    Shopify Inbox's message classifier improved from ~70% to ~90% accuracy, and from ~35% to ~80% high-confidence coverage, by investing in better training data rather than model tweaks. The v1 prototype used Universal Sentence Encoder embeddings with UMAP/HDBSCAN clustering and semi-supervised labeling on 40,000 examples. For v2, the team fine-tuned DistilBERT on 20,000 human-labeled messages. Those labels came from a 45-topic taxonomy built with support advisors and domain experts, refined through inter-annotator agreement exercises, and scrubbed of personal information with Presidio and Faker. Model predictions were then used to surface underrepresented topics for further annotation.

  • The Open ASR Leaderboard Adds Its First Global South Language

    Hugging Face mediumAdept

    Voice Arena and Hugging Face add Monsoon en-IN and Monsoon hi-IN to the Open ASR Leaderboard, making Hindi its first Indic language. Each set has public and private splits, and the four splits are speaker-disjoint, covering 4,888 speakers with 12 metadata attributes per clip: region, age, gender, occupation, device and more. The data is spontaneous conversational audio recorded on contributors' own phones across hundreds of districts. It passed language-ID, playback-detection, SNR and DNSMOS gates, and references went through a five-level human transcription process, with Hindi references shipped as lattices of accepted spellings. A sample analysis shows eight models within 0.18 WER on the corpus but varying up to 1.68 points across Indian zones, so aggregate WER hides regional disparities.

  • mmBERT: ModernBERT goes Multilingual

    Hugging Face hardMaster

    mmBERT is a massively multilingual encoder built on the ModernBERT architecture with the Gemma 2 tokenizer, trained on over 3T tokens covering 1,833 languages. It is the first model to clearly beat XLM-R on XTREME, GLUE and MTEB v2 retrieval, and it runs 2-4x faster with an 8,192-token context. The training recipe has three phases that add languages progressively (60 → 110 → 1,833), anneal the sampling temperature (0.7 → 0.5 → 0.3) and lower the mask ratio (30% → 15% → 5%), then combines decay-phase variants with TIES merging. Low-resource languages added only in the final 100B-token decay phase are still learned effectively, and on Faroese QA the model outperforms Gemini 2.5 Pro and o3.

  • MTEB: Massive Text Embedding Benchmark

    Hugging Face mediumAdept

    MTEB is a benchmark of 56 datasets across 8 embedding tasks (classification, clustering, retrieval, STS, bitext mining and more) covering up to 112 languages, with a public leaderboard of over 2000 results. Initial results show a speed/quality tradeoff: GloVe is fast but weak, all-MiniLM-L6-v2 and all-mpnet-base-v2 balance speed and quality, and multi-billion-parameter models like ST5-XXL, GTR-XXL and SGPT-5.8B lead but produce large embeddings (up to 4096 dimensions). Because rankings vary widely by task, the leaderboard should be checked per task. Any model can be evaluated with the `mteb` Python library and submitted via model card metadata.

The quest for software engineering knowledge.

Look:
Layout: