Dataset Viewer
The dataset viewer is not available for this dataset.
Unexpected token '<', "<html> <h"... is not valid JSON

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

Dataset Card for "10-dim"

Map labels to strings

# Here's the list of labels and mappings between id and label.

labels = [
    "social_support",
    "conflict",
    "trust",
    "fun",
    "similarity",
    "identity",
    "respect",
    "romance",
    "knowledge",
    "power",
]
id2label = {i: label for i, label in enumerate(labels)}
label2id = {label: i for i, label in enumerate(labels)}

# Given an examples, this is how you map
sample = {
    "text": "This is just a made up text"
    "labels": [0, 0, 0, 1, 0, 0, 0, 0, 0, 1]
}

labels_str = [id2label[i] for i, label in enumerate(sample['labels']) if label == 1]

More Information needed

Downloads last month
26

Models trained or fine-tuned on AndersGiovanni/10-dim

Collection including AndersGiovanni/10-dim