Datasets:
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,24 +1,43 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
num_examples: 6000
|
| 15 |
-
download_size: 3306674
|
| 16 |
-
dataset_size: 4915251
|
| 17 |
-
configs:
|
| 18 |
-
- config_name: default
|
| 19 |
-
data_files:
|
| 20 |
-
- split: train
|
| 21 |
-
path: data/train-*
|
| 22 |
-
- split: test
|
| 23 |
-
path: data/test-*
|
| 24 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-classification
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
tags:
|
| 8 |
+
- gender-classification
|
| 9 |
+
- synthetic
|
| 10 |
+
- distillation
|
| 11 |
+
- c4
|
| 12 |
+
size_categories:
|
| 13 |
+
- 10K<n<100K
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
---
|
| 15 |
+
|
| 16 |
+
# Gender Classification Dataset (English)
|
| 17 |
+
|
| 18 |
+
## Dataset Description
|
| 19 |
+
This dataset contains 30000 text samples labeled for the gender of the grammatical subject.
|
| 20 |
+
It was generated using a **Teacher-Student distillation** process.
|
| 21 |
+
|
| 22 |
+
- **Repository:** [IsGarrido/gender-classifier-dataset-en](https://huggingface.co/IsGarrido/gender-classifier-dataset-en)
|
| 23 |
+
- **Language:** English
|
| 24 |
+
- **Labels:** `male`, `female`, `neutral`
|
| 25 |
+
|
| 26 |
+
## Creation Process
|
| 27 |
+
1. **Source:** Sentences were streamed from the `allenai/c4` (Colossal Clean Crawled Corpus) dataset.
|
| 28 |
+
2. **Filtering:** Sentences between 50-200 characters were selected.
|
| 29 |
+
3. **Labeling (Teacher):** A local LLM (`mistralai/magistral-small-2509`) running via LM Studio analyzed each sentence.
|
| 30 |
+
4. **Prompt:** "Analyze the following sentence and identify the gender of the SUBJECT... Return ONLY one word: 'Male', 'Female', or 'Neutral'."
|
| 31 |
+
5. **Balancing:** The dataset generation was strictly controlled to ensure an even 33/33/33 split between classes.
|
| 32 |
+
|
| 33 |
+
## Data Structure
|
| 34 |
+
- `text`: The sentence (string).
|
| 35 |
+
- `label`: The gender class (string: "male", "female", "neutral").
|
| 36 |
+
|
| 37 |
+
## Usage
|
| 38 |
+
```python
|
| 39 |
+
from datasets import load_dataset
|
| 40 |
+
|
| 41 |
+
dataset = load_dataset("IsGarrido/gender-classifier-dataset-en")
|
| 42 |
+
print(dataset["train"][0])
|
| 43 |
+
```
|