Introducing the Data Measurements Tool: an Interactive Tool for Looking at Datasets
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.
Related posts
- Huggy Lingo: Using Machine Learning to Improve Language Metadata on the Hugging Face Hub
Hugging Face mediumAdeptRoughly 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.
- Interactively explore your Huggingface dataset with one line of code
Hugging Face mediumAdeptRenumics Spotlight builds interactive visualizations directly on top of Hugging Face datasets, inferring data types and label mappings so a single spotlight.show(ds) call opens an inspection UI. Tabular columns are loaded into memory for client-side analytics while images, audio and video load lazily. Enriching a dataset with model predictions and embeddings, computed with a ViT model via transformers and ds.map, enables similarity maps and confusion-matrix layouts for finding failure clusters. Layouts can be defined through the Python API or hosted by duplicating a Hugging Face Space.
- Hosting your Models and Datasets on Hugging Face Spaces using Streamlit
Hugging Face mediumAdeptStreamlit apps can showcase Hugging Face models and datasets and be hosted on Hugging Face Spaces. The walkthrough recreates "Write with Transformer" using Streamlit widgets such as text_area, sidebar sliders and number_input to collect generation hyperparameters like temperature, top-k and top-p. It then visualizes a poetry dataset, loaded with 🤗 Datasets streaming, using st.dataframe, st.bar_chart and st.pyplot for seaborn/matplotlib plots. Deployment means dragging files into a Space, listing dependencies in requirements.txt, and matching the Streamlit version.
- Introducing the Enterprise Scenarios Leaderboard: a Leaderboard for Real World Use Cases
Hugging Face easyNovicePatronus and Hugging Face's Enterprise Scenarios Leaderboard evaluates language models on six enterprise-oriented tasks: FinanceBench, Legal Confidentiality, Creative Writing, Customer Support Dialogue, Toxicity and Enterprise PII. Scoring varies by task. FinanceBench and customer support use few-shot GPT-3.5 judging, legal uses exact-match yes/no accuracy, creative writing uses the EnDEX engagingness model, toxicity uses Perspective API, and PII uses a classifier trained on 3,000 labeled examples. To limit test-set contamination, four of the six datasets are kept closed, with only validation sets released. Submitted models must be public and loadable via Hugging Face AutoClasses.
- Data-Centric Machine Learning: Building Shopify Inbox’s Message Classification Model
Shopify Engineering mediumAdeptShopify 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.