IsGarrido's picture
Upload README.md with huggingface_hub
172adfd verified
metadata
license: mit
task_categories:
  - text-classification
language:
  - en
tags:
  - gender-classification
  - synthetic
  - distillation
  - c4
size_categories:
  - 10K<n<100K

Gender Classification Dataset (English)

Dataset Description

This dataset contains 30000 text samples labeled for the gender of the grammatical subject. It was generated using a Teacher-Student distillation process.

Creation Process

  1. Source: Sentences were streamed from the allenai/c4 (Colossal Clean Crawled Corpus) dataset.
  2. Filtering: Sentences between 50-200 characters were selected.
  3. Labeling (Teacher): A local LLM (mistralai/magistral-small-2509) running via LM Studio analyzed each sentence.
  4. Prompt: "Analyze the following sentence and identify the gender of the SUBJECT... Return ONLY one word: 'Male', 'Female', or 'Neutral'."
  5. Balancing: The dataset generation was strictly controlled to ensure an even 33/33/33 split between classes.

Data Structure

  • text: The sentence (string).
  • label: The gender class (string: "male", "female", "neutral").

Usage

from datasets import load_dataset

dataset = load_dataset("IsGarrido/gender-classifier-dataset-en")
print(dataset["train"][0])