Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,88 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
size_categories:
|
| 6 |
+
- 1K<n<10K
|
| 7 |
+
tags:
|
| 8 |
+
- taxonomy
|
| 9 |
+
- hierarchical-classification
|
| 10 |
+
- label-set
|
| 11 |
+
- text-classification
|
| 12 |
+
- few-shot
|
| 13 |
+
- synthetic
|
| 14 |
---
|
| 15 |
+
|
| 16 |
+
# Subcategories-2000-en
|
| 17 |
+
|
| 18 |
+
A hierarchical label set of 2,000 English subcategories organized under the 100 top-level categories from [`categories-100-en`](https://huggingface.co/datasets/RowRed/categories-100-en), with exactly 20 subcategories per parent category.
|
| 19 |
+
|
| 20 |
+
## Dataset Description
|
| 21 |
+
|
| 22 |
+
- **Total items:** 2,000
|
| 23 |
+
- **Format:** JSONL (one JSON object per line)
|
| 24 |
+
- **Fields:**
|
| 25 |
+
- `"subcategory"` (string) – granular topic or task label
|
| 26 |
+
- `"category"` (string) – parent category from the 100-category set
|
| 27 |
+
- **Language:** English
|
| 28 |
+
- **License:** Apache 2.0
|
| 29 |
+
- **Source:** LLM-generated via DeepSeek V4 Flash 0731 (self-instruct). Not affiliated with DeepSeek.
|
| 30 |
+
|
| 31 |
+
## Structure
|
| 32 |
+
|
| 33 |
+
Each of the 100 parent categories has exactly 20 subcategories:
|
| 34 |
+
|
| 35 |
+
| category | count |
|
| 36 |
+
|---|---|
|
| 37 |
+
| Physics | 20 |
|
| 38 |
+
| Chemistry | 20 |
|
| 39 |
+
| ... | ... |
|
| 40 |
+
| Sustainable Living | 20 |
|
| 41 |
+
| **Total** | **2,000** |
|
| 42 |
+
|
| 43 |
+
## Use cases
|
| 44 |
+
|
| 45 |
+
- Hierarchical / coarse-to-fine text classification
|
| 46 |
+
- Testing long-list label selection (2,000-class label space) in LLMs
|
| 47 |
+
- Prompt or intent template generation for educational chatbots
|
| 48 |
+
- Taxonomy quality checks and label-expansion experiments
|
| 49 |
+
|
| 50 |
+
## Limitations
|
| 51 |
+
|
| 52 |
+
- Generated by an LLM and not curated by human subject-matter experts; expect some overlap between neighboring categories (e.g., "Marine Biology" vs. "Oceanography").
|
| 53 |
+
- The parent `category` field matches `categories-100-en`, but subcategory phrasing can be inconsistent in granularity ("Saving strategies" vs. "Mutual funds and ETFs").
|
| 54 |
+
- Educational/descriptive labels only — not verified facts or medical advice.
|
| 55 |
+
|
| 56 |
+
## Quickstart
|
| 57 |
+
|
| 58 |
+
```python
|
| 59 |
+
from datasets import load_dataset
|
| 60 |
+
|
| 61 |
+
ds = load_dataset("RowRed/subcategories-2000-en", split="train")
|
| 62 |
+
|
| 63 |
+
print(ds.num_rows) # 2000
|
| 64 |
+
print(ds.features) # {'subcategory': Value('string'), 'category': Value('string')}
|
| 65 |
+
|
| 66 |
+
# Group by parent category
|
| 67 |
+
from collections import Counter
|
| 68 |
+
counts = Counter(row["category"] for row in ds)
|
| 69 |
+
print(len(counts)) # 100 (unique parents)
|
| 70 |
+
print(all(v == 20 for v in counts.values())) # True
|
| 71 |
+
```
|
| 72 |
+
## License
|
| 73 |
+
|
| 74 |
+
This dataset is released under the **Apache License 2.0**.
|
| 75 |
+
|
| 76 |
+
**Attribution**:
|
| 77 |
+
> *Generated via self-instruct prompting using DeepSeek V4 Flash 0731 (MIT-licensed). Not affiliated with DeepSeek.*
|
| 78 |
+
|
| 79 |
+
## Citation
|
| 80 |
+
|
| 81 |
+
```bibtex
|
| 82 |
+
@misc{subcategories2000en,
|
| 83 |
+
author = {RowRed},
|
| 84 |
+
title = {Subcategories-2000-en},
|
| 85 |
+
year = {2026},
|
| 86 |
+
url = {https://huggingface.co/datasets/RowRed/subcategories-2000-en}
|
| 87 |
+
}
|
| 88 |
+
```
|