File size: 1,464 Bytes
e186a24
2604cc4
 
 
 
 
 
 
 
e186a24
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60dfd3b
e186a24
 
60dfd3b
e186a24
 
60dfd3b
e186a24
60dfd3b
 
e186a24
 
 
23573c1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e186a24
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
---
language:
- en
license: mit
size_categories:
- 1K<n<10K
task_categories:
- text-classification
pretty_name: 10 Social Dimensions
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
  - split: validation
    path: data/validation-*
  - split: test
    path: data/test-*
dataset_info:
  features:
  - name: text
    dtype: string
  - name: labels
    sequence: int64
  splits:
  - name: train
    num_bytes: 2237355.6300445576
    num_examples: 5498
  - name: validation
    num_bytes: 479375.2150222788
    num_examples: 1178
  - name: test
    num_bytes: 479782.1549331636
    num_examples: 1179
  download_size: 1723668
  dataset_size: 3196513.0
---
# Dataset Card for "10-dim"

### Map labels to strings

```python
# 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](https://github.com/huggingface/datasets/blob/main/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)