---
title: "Introducing the Data Measurements Tool: an Interactive Tool for Looking at Datasets"
description: "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."
url: "https://swe.quest/articles/introducing-the-data-measurements-tool-an-interactive-tool-for-looking-at-28723606ed6df7ae"
canonical: "https://huggingface.co/blog/data-measurements-tool"
source: "Hugging Face"
published: "2021-11-29"
difficulty: "easy"
kind: "Announcement"
reading_minutes: 7
tags: ["machine-learning","model-training","python","open-source"]
---

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

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2021-11-29, 7 min read, Announcement. Original: [https://huggingface.co/blog/data-measurements-tool](https://huggingface.co/blog/data-measurements-tool)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [Machine learning](https://swe.quest/tags/machine-learning.md) (AI & ML)
- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [Python](https://swe.quest/tags/python.md) (Languages)
- [Open source](https://swe.quest/tags/open-source.md) (Engineering practices)

## Prerequisites

- NLP datasets
- basic text statistics

## Keywords

Data Measurements Tool, Hugging Face Datasets, Streamlit, Zipf's law, nPMI, Sentence-Transformers, Hugging Face Spaces

## Related posts

- [Huggy Lingo: Using Machine Learning to Improve Language Metadata on the Hugging Face Hub](https://swe.quest/articles/huggy-lingo-using-machine-learning-to-improve-language-metadata-on-the-hugging-c4b326d3f2e50ea0.md): Hugging Face · 2023-08-02 · Medium · 8 min read · Machine learning, Data pipelines, Search
  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.
- [Interactively explore your Huggingface dataset with one line of code](https://swe.quest/articles/interactively-explore-your-huggingface-dataset-with-one-line-of-code-be90cdc319132a31.md): Hugging Face · 2023-10-25 · Medium · 5 min read · Machine learning, Python, Developer tools, Computer vision
  Renumics 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.
- [Hosting your Models and Datasets on Hugging Face Spaces using Streamlit](https://swe.quest/articles/hosting-your-models-and-datasets-on-hugging-face-spaces-using-streamlit-a8983f0b0bfbdd51.md): Hugging Face · 2021-10-05 · Medium · 3 min read · Python, Machine learning, Deployment
  Streamlit apps can showcase Hugging Face models and datasets and be hosted on Hugging Face Spaces.
- [Introducing the Enterprise Scenarios Leaderboard: a Leaderboard for Real World Use Cases](https://swe.quest/articles/introducing-the-enterprise-scenarios-leaderboard-a-leaderboard-for-real-world-3fa64534d04586f5.md): Hugging Face · 2024-01-31 · Easy · 6 min read · Evaluation, LLMs
  Patronus 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.
- [Data-Centric Machine Learning: Building Shopify Inbox’s Message Classification Model](https://swe.quest/articles/data-centric-machine-learning-building-shopify-inbox-s-message-classification-89547c88c3590e73.md): Shopify Engineering · 2022-07-21 · Medium · 12 min read · Machine learning, Model training, Privacy, Communications
  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.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
