Datasets:
Tasks:
Text Classification
Sub-tasks:
natural-language-inference
Languages:
English
Size:
10K<n<100K
License:
Filippo Broggini
commited on
Commit
·
4a821a6
1
Parent(s):
de196e7
Reduce `num_labels` to 15. See https://github.com/osdg-ai/osdg-data/issues/3
Browse files- README.md +2 -0
- osdg_cd.py +2 -2
README.md
CHANGED
|
@@ -51,6 +51,8 @@ pretty_name: OSDG Community Dataset (OSDG-CD)
|
|
| 51 |
|
| 52 |
The OSDG Community Dataset (OSDG-CD) is a public dataset of thousands of text excerpts, which were validated by approximately 1,000 OSDG Community Platform (OSDG-CP) citizen scientists from over 110 countries, with respect to the Sustainable Development Goals (SDGs).
|
| 53 |
|
|
|
|
|
|
|
| 54 |
### Supported Tasks and Leaderboards
|
| 55 |
|
| 56 |
TBD
|
|
|
|
| 51 |
|
| 52 |
The OSDG Community Dataset (OSDG-CD) is a public dataset of thousands of text excerpts, which were validated by approximately 1,000 OSDG Community Platform (OSDG-CP) citizen scientists from over 110 countries, with respect to the Sustainable Development Goals (SDGs).
|
| 53 |
|
| 54 |
+
> **_NOTE:_** There are currently no examples for SDGs 16 and 17. See [this GitHub issue](https://github.com/osdg-ai/osdg-data/issues/3).
|
| 55 |
+
|
| 56 |
### Supported Tasks and Leaderboards
|
| 57 |
|
| 58 |
TBD
|
osdg_cd.py
CHANGED
|
@@ -116,7 +116,7 @@ class OSDGCD(datasets.GeneratorBasedBuilder):
|
|
| 116 |
"text_id": datasets.Value("string"),
|
| 117 |
"text": datasets.Value("string"),
|
| 118 |
"sdg": datasets.Value("uint16"),
|
| 119 |
-
"label": datasets.ClassLabel(num_classes=
|
| 120 |
"labels_negative": datasets.Value("uint16"),
|
| 121 |
"labels_positive": datasets.Value("uint16"),
|
| 122 |
"agreement": datasets.Value("float"),
|
|
@@ -147,4 +147,4 @@ class OSDGCD(datasets.GeneratorBasedBuilder):
|
|
| 147 |
for row in osdg:
|
| 148 |
row["label"] = int(row["sdg"]) - 1
|
| 149 |
yield key, row
|
| 150 |
-
key += 1
|
|
|
|
| 116 |
"text_id": datasets.Value("string"),
|
| 117 |
"text": datasets.Value("string"),
|
| 118 |
"sdg": datasets.Value("uint16"),
|
| 119 |
+
"label": datasets.ClassLabel(num_classes=15, names=[f"SDG {sdg}" for sdg in range(1, 16)]),
|
| 120 |
"labels_negative": datasets.Value("uint16"),
|
| 121 |
"labels_positive": datasets.Value("uint16"),
|
| 122 |
"agreement": datasets.Value("float"),
|
|
|
|
| 147 |
for row in osdg:
|
| 148 |
row["label"] = int(row["sdg"]) - 1
|
| 149 |
yield key, row
|
| 150 |
+
key += 1
|