system HF staff commited on
Commit
278f959
0 Parent(s):

Update files from the datasets library (from 1.13.0)

Browse files

Release notes: https://github.com/huggingface/datasets/releases/tag/1.13.0

Files changed (5) hide show
  1. .gitattributes +27 -0
  2. README.md +166 -0
  3. dataset_infos.json +1 -0
  4. dummy/0.0.0/dummy_data.zip +3 -0
  5. kan_hope.py +89 -0
.gitattributes ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bin.* filter=lfs diff=lfs merge=lfs -text
5
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.model filter=lfs diff=lfs merge=lfs -text
12
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
13
+ *.onnx filter=lfs diff=lfs merge=lfs -text
14
+ *.ot filter=lfs diff=lfs merge=lfs -text
15
+ *.parquet filter=lfs diff=lfs merge=lfs -text
16
+ *.pb filter=lfs diff=lfs merge=lfs -text
17
+ *.pt filter=lfs diff=lfs merge=lfs -text
18
+ *.pth filter=lfs diff=lfs merge=lfs -text
19
+ *.rar filter=lfs diff=lfs merge=lfs -text
20
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
21
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
22
+ *.tflite filter=lfs diff=lfs merge=lfs -text
23
+ *.tgz filter=lfs diff=lfs merge=lfs -text
24
+ *.xz filter=lfs diff=lfs merge=lfs -text
25
+ *.zip filter=lfs diff=lfs merge=lfs -text
26
+ *.zstandard filter=lfs diff=lfs merge=lfs -text
27
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,166 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - expert-generated
4
+ language_creators:
5
+ - crowdsourced
6
+ languages:
7
+ - en-IN
8
+ - kn-IN
9
+ licenses:
10
+ - cc-by-4-0
11
+ multilinguality:
12
+ - multilingual
13
+ pretty_name: KanHope
14
+ size_categories:
15
+ - 1K<n<10K
16
+ source_datasets:
17
+ - original
18
+ task_categories:
19
+ - text-classification
20
+ task_ids:
21
+ - multi-label-classification
22
+ - text-classification-other-Hope Speech Detection
23
+ ---
24
+
25
+ # Dataset Card for KanHope
26
+
27
+ ## Table of Contents
28
+ - [Dataset Description](#dataset-description)
29
+ - [Dataset Summary](#dataset-summary)
30
+ - [Supported Tasks](#supported-tasks-and-leaderboards)
31
+ - [Languages](#languages)
32
+ - [Dataset Structure](#dataset-structure)
33
+ - [Data Instances](#data-instances)
34
+ - [Data Fields](#data-instances)
35
+ - [Data Splits](#data-instances)
36
+ - [Dataset Creation](#dataset-creation)
37
+ - [Curation Rationale](#curation-rationale)
38
+ - [Source Data](#source-data)
39
+ - [Annotations](#annotations)
40
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
41
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
42
+ - [Social Impact of Dataset](#social-impact-of-dataset)
43
+ - [Discussion of Biases](#discussion-of-biases)
44
+ - [Other Known Limitations](#other-known-limitations)
45
+ - [Additional Information](#additional-information)
46
+ - [Dataset Curators](#dataset-curators)
47
+ - [Licensing Information](#licensing-information)
48
+ - [Citation Information](#citation-information)
49
+
50
+ ## Dataset Description
51
+
52
+ - **Homepage:** https://zenodo.org/record/4904729
53
+ - **Repository:** [KanHope](https://github.com/adeepH/KanHope)
54
+ - **Paper:** [Hope speech detection in Under-resourced Kannada langauge](https://arxiv.org/abs/2108.04616)
55
+ - **Leaderboard:** [N/A]
56
+ - **Point of Contact:** [Adeep Hande](adeeph18c@iiitt.ac.in)
57
+
58
+ ### Dataset Summary
59
+
60
+ KanHope dataset is a code-mixed Kannada-English dataset for hope speech detection. All texts are scraped from the comments section of YouTube. The dataset consists of 6,176 user-generated comments in code mixed Kannada scraped from YouTube and manually annotated as bearing hope speech or Not-hope speech.
61
+
62
+ ### Supported Tasks and Leaderboards
63
+
64
+ This task aims to detect Hope speech content of the code-mixed dataset of comments/posts in Dravidian Languages ( Kannada-English) collected from social media. The comment/post may contain more than one sentence, but the average sentence length of the corpora is 1. Each comment/post is annotated at the comment/post level. This dataset also has class imbalance problems depicting real-world scenarios.
65
+
66
+ ### Languages
67
+
68
+ Code-mixed text in Dravidian languages (Kannada-English).
69
+
70
+
71
+ ## Dataset Structure
72
+
73
+ ### Data Instances
74
+
75
+ An example from the Kannada dataset looks as follows:
76
+
77
+ | text | label |
78
+ | :------ | :----- |
79
+ | ��������� ��ͭ� heartly heltidini... plz avrigella namma nimmellara supprt beku | 0 (Non_hope speech) |
80
+ | Next song gu kuda alru andre evaga yar comment madidera alla alrru like madi share madi nam industry na next level ge togond hogaona. | 1 (Hope Speech) |
81
+
82
+
83
+ ### Data Fields
84
+
85
+ Kannada
86
+ - `text`: Kannada-English code mixed comment.
87
+ - `label`: integer from either of 0 or 1 that corresponds to these values: "Non_hope Speech", "Hope Speech"
88
+
89
+ ### Data Splits
90
+
91
+ | | Tain | Valid | Test |
92
+ | ----- | ------: | -----: | ----:|
93
+ | Kannada | 4941 | 618 | 617 |
94
+
95
+ ## Dataset Creation
96
+
97
+ ### Curation Rationale
98
+
99
+ Numerous methods have been developed to monitor the spread of negativity in modern years by eliminating vulgar, offensive, and fierce comments from social media platforms. However, there are relatively lesser amounts of study that converges on embracing positivity, reinforcing supportive and reassuring content in online forums.
100
+
101
+ ### Source Data
102
+
103
+ #### Initial Data Collection and Normalization
104
+
105
+ [Needs More Information]
106
+
107
+ #### Who are the source language producers?
108
+
109
+ Youtube users
110
+
111
+ ### Annotations
112
+
113
+ #### Annotation process
114
+
115
+ [Needs More Information]
116
+
117
+ #### Who are the annotators?
118
+
119
+ [Needs More Information]
120
+
121
+
122
+ ### Personal and Sensitive Information
123
+
124
+ [Needs More Information]
125
+
126
+ ## Considerations for Using the Data
127
+
128
+ ### Social Impact of Dataset
129
+
130
+ [Needs More Information]
131
+
132
+ ### Discussion of Biases
133
+
134
+ [Needs More Information]
135
+
136
+ ### Other Known Limitations
137
+
138
+ [Needs More Information]
139
+
140
+ ## Additional Information
141
+
142
+ ### Dataset Curators
143
+
144
+ [Needs More Information]
145
+
146
+
147
+ ### Licensing Information
148
+
149
+ [Needs More Information]
150
+
151
+
152
+ ### Citation Information
153
+ ```
154
+ @misc{hande2021hope,
155
+ title={Hope Speech detection in under-resourced Kannada language},
156
+ author={Adeep Hande and Ruba Priyadharshini and Anbukkarasi Sampath and Kingston Pal Thamburaj and Prabakaran Chandran and Bharathi Raja Chakravarthi},
157
+ year={2021},
158
+ eprint={2108.04616},
159
+ archivePrefix={arXiv},
160
+ primaryClass={cs.CL}
161
+ }
162
+ ```
163
+
164
+ ### Contributions
165
+
166
+ Thanks to [@adeepH](https://github.com/adeepH) for adding this dataset.
dataset_infos.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"default": {"description": "Numerous methods have been developed to monitor the spread of negativity in modern years by\neliminating vulgar, offensive, and fierce comments from social media platforms. However, there are relatively\nlesser amounts of study that converges on embracing positivity, reinforcing supportive and reassuring content in online forums.\nConsequently, we propose creating an English Kannada Hope speech dataset, KanHope and comparing several experiments to benchmark the dataset.\nThe dataset consists of 6,176 user generated comments in code mixed Kannada scraped from YouTube and manually annotated as bearing hope\nspeech or Not-hope speech.\nThis dataset was prepared for hope-speech text classification benchmark on code-mixed Kannada, an under-resourced language.\n", "citation": "@misc{hande2021hope,\n title={Hope Speech detection in under-resourced Kannada language},\n author={Adeep Hande and Ruba Priyadharshini and Anbukkarasi Sampath and Kingston Pal Thamburaj and Prabakaran Chandran and Bharathi Raja Chakravarthi},\n year={2021},\n eprint={2108.04616},\n archivePrefix={arXiv},\n primaryClass={cs.CL}\n}\n", "homepage": "https://github.com/adeepH/kan_hope", "license": "Creative Commons Attribution 4.0 International Licence", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 2, "names": ["Not-Hope", "Hope"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "kan_hope", "config_name": "default", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 494898, "num_examples": 4940, "dataset_name": "kan_hope"}, "test": {"name": "test", "num_bytes": 65722, "num_examples": 618, "dataset_name": "kan_hope"}}, "download_checksums": {"https://raw.githubusercontent.com/adeepH/kan_hope/main/dataset/KanHope_train.csv": {"num_bytes": 502381, "checksum": "1dbf257728dc2788a35c63396f9827e4f984904ae948d83bbacc49f68632b0f7"}, "https://raw.githubusercontent.com/adeepH/kan_hope/main/dataset/KanHope_test.csv": {"num_bytes": 66591, "checksum": "4d11cab46f93dfbf552712e8a7e6089f8482941e9f31b5259507d9b673ba6872"}}, "download_size": 568972, "post_processing_size": null, "dataset_size": 560620, "size_in_bytes": 1129592}}
dummy/0.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:49e682ebb4c73f4dea56f190e0f86d8fe6b059ab518aaa43d992b8fdbda78916
3
+ size 1348
kan_hope.py ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding=utf-8
2
+ # Copyright 2021 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
+ """Kannada Hope Speech Dataset"""
16
+
17
+
18
+ import csv
19
+
20
+ import datasets
21
+
22
+
23
+ _CITATION = """\
24
+ @misc{hande2021hope,
25
+ title={Hope Speech detection in under-resourced Kannada language},
26
+ author={Adeep Hande and Ruba Priyadharshini and Anbukkarasi Sampath and Kingston Pal Thamburaj and Prabakaran Chandran and Bharathi Raja Chakravarthi},
27
+ year={2021},
28
+ eprint={2108.04616},
29
+ archivePrefix={arXiv},
30
+ primaryClass={cs.CL}
31
+ }
32
+ """
33
+
34
+ _DESCRIPTION = """\
35
+ Numerous methods have been developed to monitor the spread of negativity in modern years by
36
+ eliminating vulgar, offensive, and fierce comments from social media platforms. However, there are relatively
37
+ lesser amounts of study that converges on embracing positivity, reinforcing supportive and reassuring content in online forums.
38
+ Consequently, we propose creating an English Kannada Hope speech dataset, KanHope and comparing several experiments to benchmark the dataset.
39
+ The dataset consists of 6,176 user generated comments in code mixed Kannada scraped from YouTube and manually annotated as bearing hope
40
+ speech or Not-hope speech.
41
+ This dataset was prepared for hope-speech text classification benchmark on code-mixed Kannada, an under-resourced language.
42
+ """
43
+
44
+ _HOMEPAGE = "https://github.com/adeepH/kan_hope"
45
+
46
+ _LICENSE = "Creative Commons Attribution 4.0 International Licence"
47
+
48
+ _TRAIN_DOWNLOAD_URL = "https://raw.githubusercontent.com/adeepH/kan_hope/main/dataset/KanHope_train.csv"
49
+ _TEST_DOWNLOAD_URL = "https://raw.githubusercontent.com/adeepH/kan_hope/main/dataset/KanHope_test.csv"
50
+
51
+
52
+ class kan_hope(datasets.GeneratorBasedBuilder):
53
+ """Code-Mixed Kannada Hope Speech Dataset"""
54
+
55
+ def _info(self):
56
+ features = datasets.Features(
57
+ {
58
+ "text": datasets.Value("string"),
59
+ "label": datasets.features.ClassLabel(names=["Not-Hope", "Hope"]),
60
+ }
61
+ )
62
+ return datasets.DatasetInfo(
63
+ description=_DESCRIPTION,
64
+ features=features,
65
+ supervised_keys=None,
66
+ homepage=_HOMEPAGE,
67
+ license=_LICENSE,
68
+ citation=_CITATION,
69
+ )
70
+
71
+ def _split_generators(self, dl_manager):
72
+ """Returns SplitGenerators"""
73
+
74
+ train_path = dl_manager.download_and_extract(_TRAIN_DOWNLOAD_URL)
75
+ test_path = dl_manager.download_and_extract(_TEST_DOWNLOAD_URL)
76
+ return [
77
+ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": train_path}),
78
+ datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": test_path}),
79
+ ]
80
+
81
+ def _generate_examples(self, filepath):
82
+ """Generate Kannada Hope Speech examples."""
83
+
84
+ with open(filepath, encoding="utf-8") as csv_file:
85
+ reader = csv.reader(csv_file, quotechar='"', delimiter="\t", quoting=csv.QUOTE_ALL, skipinitialspace=True)
86
+ next(reader, None)
87
+ for id_, row in enumerate(reader):
88
+ dummy, text, label = row
89
+ yield id_, {"text": text, "label": label}