Datasets:
Tasks:
Text Classification
Modalities:
Text
Formats:
parquet
Sub-tasks:
sentiment-classification
Languages:
Polish
Size:
10K - 100K
License:
Commit
·
47815d6
1
Parent(s):
c966166
Update parquet files
Browse files- README.md +0 -167
- cdt.py +0 -93
- dataset_infos.json +0 -1
- default/cdt-test.parquet +3 -0
- default/cdt-train.parquet +3 -0
README.md
DELETED
|
@@ -1,167 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
annotations_creators:
|
| 3 |
-
- expert-generated
|
| 4 |
-
language_creators:
|
| 5 |
-
- other
|
| 6 |
-
language:
|
| 7 |
-
- pl
|
| 8 |
-
license:
|
| 9 |
-
- bsd-3-clause
|
| 10 |
-
multilinguality:
|
| 11 |
-
- monolingual
|
| 12 |
-
size_categories:
|
| 13 |
-
- 10K<n<100K
|
| 14 |
-
source_datasets:
|
| 15 |
-
- original
|
| 16 |
-
task_categories:
|
| 17 |
-
- text-classification
|
| 18 |
-
task_ids:
|
| 19 |
-
- sentiment-classification
|
| 20 |
-
paperswithcode_id: null
|
| 21 |
-
pretty_name: cdt
|
| 22 |
-
dataset_info:
|
| 23 |
-
features:
|
| 24 |
-
- name: sentence
|
| 25 |
-
dtype: string
|
| 26 |
-
- name: target
|
| 27 |
-
dtype:
|
| 28 |
-
class_label:
|
| 29 |
-
names:
|
| 30 |
-
0: '0'
|
| 31 |
-
1: '1'
|
| 32 |
-
splits:
|
| 33 |
-
- name: train
|
| 34 |
-
num_bytes: 1104322
|
| 35 |
-
num_examples: 10041
|
| 36 |
-
- name: test
|
| 37 |
-
num_bytes: 109681
|
| 38 |
-
num_examples: 1000
|
| 39 |
-
download_size: 375476
|
| 40 |
-
dataset_size: 1214003
|
| 41 |
-
---
|
| 42 |
-
|
| 43 |
-
# Dataset Card for [Dataset Name]
|
| 44 |
-
|
| 45 |
-
## Table of Contents
|
| 46 |
-
- [Dataset Description](#dataset-description)
|
| 47 |
-
- [Dataset Summary](#dataset-summary)
|
| 48 |
-
- [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
|
| 49 |
-
- [Languages](#languages)
|
| 50 |
-
- [Dataset Structure](#dataset-structure)
|
| 51 |
-
- [Data Instances](#data-instances)
|
| 52 |
-
- [Data Fields](#data-fields)
|
| 53 |
-
- [Data Splits](#data-splits)
|
| 54 |
-
- [Dataset Creation](#dataset-creation)
|
| 55 |
-
- [Curation Rationale](#curation-rationale)
|
| 56 |
-
- [Source Data](#source-data)
|
| 57 |
-
- [Annotations](#annotations)
|
| 58 |
-
- [Personal and Sensitive Information](#personal-and-sensitive-information)
|
| 59 |
-
- [Considerations for Using the Data](#considerations-for-using-the-data)
|
| 60 |
-
- [Social Impact of Dataset](#social-impact-of-dataset)
|
| 61 |
-
- [Discussion of Biases](#discussion-of-biases)
|
| 62 |
-
- [Other Known Limitations](#other-known-limitations)
|
| 63 |
-
- [Additional Information](#additional-information)
|
| 64 |
-
- [Dataset Curators](#dataset-curators)
|
| 65 |
-
- [Licensing Information](#licensing-information)
|
| 66 |
-
- [Citation Information](#citation-information)
|
| 67 |
-
- [Contributions](#contributions)
|
| 68 |
-
|
| 69 |
-
## Dataset Description
|
| 70 |
-
|
| 71 |
-
- **Homepage:**
|
| 72 |
-
http://2019.poleval.pl/index.php/tasks/
|
| 73 |
-
- **Repository:**
|
| 74 |
-
https://github.com/ptaszynski/cyberbullying-Polish
|
| 75 |
-
- **Paper:**
|
| 76 |
-
- **Leaderboard:**
|
| 77 |
-
https://klejbenchmark.com/leaderboard/
|
| 78 |
-
- **Point of Contact:**
|
| 79 |
-
|
| 80 |
-
### Dataset Summary
|
| 81 |
-
|
| 82 |
-
The Cyberbullying Detection task was part of 2019 edition of PolEval competition. The goal is to predict if a given Twitter message contains a cyberbullying (harmful) content.
|
| 83 |
-
|
| 84 |
-
### Supported Tasks and Leaderboards
|
| 85 |
-
|
| 86 |
-
[More Information Needed]
|
| 87 |
-
|
| 88 |
-
### Languages
|
| 89 |
-
|
| 90 |
-
Polish
|
| 91 |
-
|
| 92 |
-
## Dataset Structure
|
| 93 |
-
|
| 94 |
-
### Data Instances
|
| 95 |
-
|
| 96 |
-
[More Information Needed]
|
| 97 |
-
|
| 98 |
-
### Data Fields
|
| 99 |
-
|
| 100 |
-
- sentence: an anonymized tweet in polish
|
| 101 |
-
- target: 1 if tweet is described as bullying, 0 otherwise. The test set doesn't have labels so -1 is used instead.
|
| 102 |
-
|
| 103 |
-
### Data Splits
|
| 104 |
-
|
| 105 |
-
[More Information Needed]
|
| 106 |
-
|
| 107 |
-
## Dataset Creation
|
| 108 |
-
|
| 109 |
-
### Curation Rationale
|
| 110 |
-
|
| 111 |
-
[More Information Needed]
|
| 112 |
-
|
| 113 |
-
### Source Data
|
| 114 |
-
|
| 115 |
-
#### Initial Data Collection and Normalization
|
| 116 |
-
|
| 117 |
-
[More Information Needed]
|
| 118 |
-
|
| 119 |
-
#### Who are the source language producers?
|
| 120 |
-
|
| 121 |
-
[More Information Needed]
|
| 122 |
-
|
| 123 |
-
### Annotations
|
| 124 |
-
|
| 125 |
-
#### Annotation process
|
| 126 |
-
|
| 127 |
-
[More Information Needed]
|
| 128 |
-
|
| 129 |
-
#### Who are the annotators?
|
| 130 |
-
|
| 131 |
-
[More Information Needed]
|
| 132 |
-
|
| 133 |
-
### Personal and Sensitive Information
|
| 134 |
-
|
| 135 |
-
[More Information Needed]
|
| 136 |
-
|
| 137 |
-
## Considerations for Using the Data
|
| 138 |
-
|
| 139 |
-
### Social Impact of Dataset
|
| 140 |
-
|
| 141 |
-
[More Information Needed]
|
| 142 |
-
|
| 143 |
-
### Discussion of Biases
|
| 144 |
-
|
| 145 |
-
[More Information Needed]
|
| 146 |
-
|
| 147 |
-
### Other Known Limitations
|
| 148 |
-
|
| 149 |
-
[More Information Needed]
|
| 150 |
-
|
| 151 |
-
## Additional Information
|
| 152 |
-
|
| 153 |
-
### Dataset Curators
|
| 154 |
-
|
| 155 |
-
[More Information Needed]
|
| 156 |
-
|
| 157 |
-
### Licensing Information
|
| 158 |
-
|
| 159 |
-
BSD 3-Clause
|
| 160 |
-
|
| 161 |
-
### Citation Information
|
| 162 |
-
|
| 163 |
-
[More Information Needed]
|
| 164 |
-
|
| 165 |
-
### Contributions
|
| 166 |
-
|
| 167 |
-
Thanks to [@abecadel](https://github.com/abecadel) for adding this dataset.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cdt.py
DELETED
|
@@ -1,93 +0,0 @@
|
|
| 1 |
-
# coding=utf-8
|
| 2 |
-
# Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
|
| 3 |
-
#
|
| 4 |
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 5 |
-
# you may not use this file except in compliance with the License.
|
| 6 |
-
# You may obtain a copy of the License at
|
| 7 |
-
#
|
| 8 |
-
# http://www.apache.org/licenses/LICENSE-2.0
|
| 9 |
-
#
|
| 10 |
-
# Unless required by applicable law or agreed to in writing, software
|
| 11 |
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 12 |
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
-
# See the License for the specific language governing permissions and
|
| 14 |
-
# limitations under the License.
|
| 15 |
-
"""Cyberbullying detection task"""
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
import csv
|
| 19 |
-
import os
|
| 20 |
-
|
| 21 |
-
import datasets
|
| 22 |
-
from datasets.tasks import TextClassification
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
_CITATION = """\
|
| 26 |
-
@article{ptaszynski2019results,
|
| 27 |
-
title={Results of the PolEval 2019 Shared Task 6: First Dataset and Open Shared Task for Automatic Cyberbullying Detection in Polish Twitter},
|
| 28 |
-
author={Ptaszynski, Michal and Pieciukiewicz, Agata and Dybala, Pawel},
|
| 29 |
-
journal={Proceedings of the PolEval 2019 Workshop},
|
| 30 |
-
publisher={Institute of Computer Science, Polish Academy of Sciences},
|
| 31 |
-
pages={89},
|
| 32 |
-
year={2019}
|
| 33 |
-
}
|
| 34 |
-
"""
|
| 35 |
-
|
| 36 |
-
_DESCRIPTION = """\
|
| 37 |
-
The Cyberbullying Detection task was part of 2019 edition of PolEval competition. The goal is to predict if a given Twitter message contains a cyberbullying (harmful) content.
|
| 38 |
-
"""
|
| 39 |
-
|
| 40 |
-
_HOMEPAGE = "https://github.com/ptaszynski/cyberbullying-Polish"
|
| 41 |
-
|
| 42 |
-
_LICENSE = "BSD 3-Clause"
|
| 43 |
-
|
| 44 |
-
_URLs = "https://klejbenchmark.com/static/data/klej_cbd.zip"
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
class Cdt(datasets.GeneratorBasedBuilder):
|
| 48 |
-
"""CyberbullyingDetectionTask"""
|
| 49 |
-
|
| 50 |
-
VERSION = datasets.Version("1.1.0")
|
| 51 |
-
|
| 52 |
-
def _info(self):
|
| 53 |
-
return datasets.DatasetInfo(
|
| 54 |
-
description=_DESCRIPTION,
|
| 55 |
-
features=datasets.Features(
|
| 56 |
-
{
|
| 57 |
-
"sentence": datasets.Value("string"),
|
| 58 |
-
"target": datasets.ClassLabel(names=["0", "1"]),
|
| 59 |
-
}
|
| 60 |
-
),
|
| 61 |
-
supervised_keys=None,
|
| 62 |
-
homepage=_HOMEPAGE,
|
| 63 |
-
license=_LICENSE,
|
| 64 |
-
citation=_CITATION,
|
| 65 |
-
task_templates=[TextClassification(text_column="sentence", label_column="target")],
|
| 66 |
-
)
|
| 67 |
-
|
| 68 |
-
def _split_generators(self, dl_manager):
|
| 69 |
-
"""Returns SplitGenerators."""
|
| 70 |
-
data_dir = dl_manager.download_and_extract(_URLs)
|
| 71 |
-
return [
|
| 72 |
-
datasets.SplitGenerator(
|
| 73 |
-
name=datasets.Split.TRAIN,
|
| 74 |
-
gen_kwargs={
|
| 75 |
-
"filepath": os.path.join(data_dir, "train.tsv"),
|
| 76 |
-
"split": "train",
|
| 77 |
-
},
|
| 78 |
-
),
|
| 79 |
-
datasets.SplitGenerator(
|
| 80 |
-
name=datasets.Split.TEST,
|
| 81 |
-
gen_kwargs={"filepath": os.path.join(data_dir, "test_features.tsv"), "split": "test"},
|
| 82 |
-
),
|
| 83 |
-
]
|
| 84 |
-
|
| 85 |
-
def _generate_examples(self, filepath, split):
|
| 86 |
-
"""Yields examples."""
|
| 87 |
-
with open(filepath, encoding="utf-8") as f:
|
| 88 |
-
reader = csv.DictReader(f, delimiter="\t", quoting=csv.QUOTE_NONE)
|
| 89 |
-
for id_, row in enumerate(reader):
|
| 90 |
-
yield id_, {
|
| 91 |
-
"sentence": row["sentence"],
|
| 92 |
-
"target": -1 if split == "test" else row["target"],
|
| 93 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dataset_infos.json
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
{"default": {"description": "The Cyberbullying Detection task was part of 2019 edition of PolEval competition. The goal is to predict if a given Twitter message contains a cyberbullying (harmful) content.\n", "citation": "@article{ptaszynski2019results,\ntitle={Results of the PolEval 2019 Shared Task 6: First Dataset and Open Shared Task for Automatic Cyberbullying Detection in Polish Twitter},\nauthor={Ptaszynski, Michal and Pieciukiewicz, Agata and Dybala, Pawel},\njournal={Proceedings of the PolEval 2019 Workshop},\npublisher={Institute of Computer Science, Polish Academy of Sciences},\npages={89},\nyear={2019}\n}\n", "homepage": "https://github.com/ptaszynski/cyberbullying-Polish", "license": "BSD 3-Clause", "features": {"sentence": {"dtype": "string", "id": null, "_type": "Value"}, "target": {"num_classes": 2, "names": ["0", "1"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": [{"task": "text-classification", "text_column": "sentence", "label_column": "target", "labels": ["0", "1"]}], "builder_name": "cdt", "config_name": "default", "version": {"version_str": "1.1.0", "description": null, "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 1104322, "num_examples": 10041, "dataset_name": "cdt"}, "test": {"name": "test", "num_bytes": 109681, "num_examples": 1000, "dataset_name": "cdt"}}, "download_checksums": {"https://klejbenchmark.com/static/data/klej_cbd.zip": {"num_bytes": 375476, "checksum": "aee5213938374b25e239a853cd56d579b037f75bef52ec5e79d8a36f7cf76602"}}, "download_size": 375476, "post_processing_size": null, "dataset_size": 1214003, "size_in_bytes": 1589479}}
|
|
|
|
|
|
default/cdt-test.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0bc726570022057b4f9b5a13ea272ce54e42e45c867fd51d6b78487f2c3595b3
|
| 3 |
+
size 59006
|
default/cdt-train.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b809ac06b1811e0e93436daa3f0deb3f1265186b69a098de88196387c03f20c1
|
| 3 |
+
size 590321
|