Update dataset card - changed label to a class label to allow better splitting
Browse files
README.md
CHANGED
|
@@ -1,37 +1,6 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
features:
|
| 4 |
-
- name: id
|
| 5 |
-
dtype: string
|
| 6 |
-
- name: content
|
| 7 |
-
dtype: string
|
| 8 |
-
- name: label
|
| 9 |
-
dtype:
|
| 10 |
-
class_label:
|
| 11 |
-
names:
|
| 12 |
-
'0': Question
|
| 13 |
-
'1': Other
|
| 14 |
-
splits:
|
| 15 |
-
- name: train
|
| 16 |
-
num_bytes: 1567000
|
| 17 |
-
num_examples: 1949
|
| 18 |
-
download_size: 948860
|
| 19 |
-
dataset_size: 1567000
|
| 20 |
-
configs:
|
| 21 |
-
- config_name: default
|
| 22 |
-
data_files:
|
| 23 |
-
- split: train
|
| 24 |
-
path: data/train-*
|
| 25 |
-
license: mit
|
| 26 |
-
task_categories:
|
| 27 |
-
- text-classification
|
| 28 |
-
language:
|
| 29 |
-
- en
|
| 30 |
-
pretty_name: Reddit RPG Rules Question Classification
|
| 31 |
-
size_categories:
|
| 32 |
-
- 1K<n<10K
|
| 33 |
---
|
| 34 |
-
|
| 35 |
# Dataset: `eriksalt/reddit-rpg-rules-question-classification`
|
| 36 |
|
| 37 |
## What it is
|
|
@@ -45,13 +14,15 @@ Each example is a single Reddit post (as plain text) with three fields:
|
|
| 45 |
|
| 46 |
- `id` *(string)*: A stable identifier that also encodes the source file and line number (e.g. `blades_posts.txt:755`).
|
| 47 |
- `content` *(string)*: The post text used for classification (typically includes the post title plus body/description where present).
|
| 48 |
-
- `label` *(
|
| 49 |
|
| 50 |
## Labels
|
| 51 |
-
The
|
| 52 |
|
| 53 |
-
|
| 54 |
-
-
|
|
|
|
|
|
|
| 55 |
|
| 56 |
|
| 57 |
## Splits and size
|
|
@@ -77,4 +48,4 @@ from datasets import load_dataset
|
|
| 77 |
ds = load_dataset("eriksalt/reddit-rpg-rules-question-classification")
|
| 78 |
print(ds)
|
| 79 |
print(ds["train"].features)
|
| 80 |
-
```
|
|
|
|
| 1 |
---
|
| 2 |
+
{}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
| 4 |
# Dataset: `eriksalt/reddit-rpg-rules-question-classification`
|
| 5 |
|
| 6 |
## What it is
|
|
|
|
| 14 |
|
| 15 |
- `id` *(string)*: A stable identifier that also encodes the source file and line number (e.g. `blades_posts.txt:755`).
|
| 16 |
- `content` *(string)*: The post text used for classification (typically includes the post title plus body/description where present).
|
| 17 |
+
- `label` *(ClassLabel)*: `Question` (0) for rules questions, `Other` (1) for everything else.
|
| 18 |
|
| 19 |
## Labels
|
| 20 |
+
The `label` column is a `ClassLabel` feature with the following integer-to-name mapping:
|
| 21 |
|
| 22 |
+
| id | name | meaning |
|
| 23 |
+
|----|------|---------|
|
| 24 |
+
| 0 | `Question` | The `content` field represents a rules question about a tabletop roleplaying game posted to Reddit. |
|
| 25 |
+
| 1 | `Other` | The `content` field does **not** represent a rules question about a tabletop roleplaying game posted to Reddit. |
|
| 26 |
|
| 27 |
|
| 28 |
## Splits and size
|
|
|
|
| 48 |
ds = load_dataset("eriksalt/reddit-rpg-rules-question-classification")
|
| 49 |
print(ds)
|
| 50 |
print(ds["train"].features)
|
| 51 |
+
```
|