Datasets:

Sub-tasks:
fact-checking
Languages:
Portuguese
Multilinguality:
monolingual
Size Categories:
1K<n<10K
Language Creators:
found
Annotations Creators:
expert-generated
Source Datasets:
original
Tags:
License:
system HF staff commited on
Commit
d23896c
0 Parent(s):

Update files from the datasets library (from 1.2.0)

Browse files

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

Files changed (5) hide show
  1. .gitattributes +27 -0
  2. README.md +139 -0
  3. dataset_infos.json +1 -0
  4. dummy/1.0.0/dummy_data.zip +3 -0
  5. factckbr.py +135 -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,139 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - expert-generated
4
+ language_creators:
5
+ - found
6
+ languages:
7
+ - pt
8
+ licenses:
9
+ - mit
10
+ multilinguality:
11
+ - monolingual
12
+ size_categories:
13
+ - n<1K
14
+ source_datasets:
15
+ - original
16
+ task_categories:
17
+ - text-classification
18
+ task_ids:
19
+ - fact-checking
20
+ ---
21
+
22
+ # Dataset Card for [Dataset Name]
23
+
24
+ ## Table of Contents
25
+ - [Dataset Description](#dataset-description)
26
+ - [Dataset Summary](#dataset-summary)
27
+ - [Supported Tasks](#supported-tasks-and-leaderboards)
28
+ - [Languages](#languages)
29
+ - [Dataset Structure](#dataset-structure)
30
+ - [Data Instances](#data-instances)
31
+ - [Data Fields](#data-instances)
32
+ - [Data Splits](#data-instances)
33
+ - [Dataset Creation](#dataset-creation)
34
+ - [Curation Rationale](#curation-rationale)
35
+ - [Source Data](#source-data)
36
+ - [Annotations](#annotations)
37
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
38
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
39
+ - [Social Impact of Dataset](#social-impact-of-dataset)
40
+ - [Discussion of Biases](#discussion-of-biases)
41
+ - [Other Known Limitations](#other-known-limitations)
42
+ - [Additional Information](#additional-information)
43
+ - [Dataset Curators](#dataset-curators)
44
+ - [Licensing Information](#licensing-information)
45
+ - [Citation Information](#citation-information)
46
+
47
+ ## Dataset Description
48
+
49
+ - **Homepage:** https://github.com/jghm-f/FACTCK.BR
50
+ - **Repository:** https://github.com/jghm-f/FACTCK.BR
51
+ - **Paper:** https://dl.acm.org/doi/10.1145/3323503.3361698
52
+ - **Leaderboard:**
53
+ - **Point of Contact:**
54
+
55
+ ### Dataset Summary
56
+
57
+ A dataset to study Fake News in Portuguese, presenting a supposedly false News along with their respective fact check and classification.
58
+ The data is collected from the ClaimReview, a structured data schema used by fact check agencies to share their results in search engines, enabling data collect in real time.
59
+ The FACTCK.BR dataset contains 1309 claims with its corresponding label.
60
+
61
+ ### Supported Tasks and Leaderboards
62
+
63
+ [More Information Needed]
64
+
65
+ ### Languages
66
+
67
+ [More Information Needed]
68
+
69
+ ## Dataset Structure
70
+
71
+ ### Data Instances
72
+
73
+ [More Information Needed]
74
+
75
+ ### Data Fields
76
+
77
+ [More Information Needed]
78
+
79
+ ### Data Splits
80
+
81
+ [More Information Needed]
82
+
83
+ ## Dataset Creation
84
+
85
+ ### Curation Rationale
86
+
87
+ [More Information Needed]
88
+
89
+ ### Source Data
90
+
91
+ #### Initial Data Collection and Normalization
92
+
93
+ [More Information Needed]
94
+
95
+ #### Who are the source language producers?
96
+
97
+ [More Information Needed]
98
+
99
+ ### Annotations
100
+
101
+ #### Annotation process
102
+
103
+ [More Information Needed]
104
+
105
+ #### Who are the annotators?
106
+
107
+ [More Information Needed]
108
+
109
+ ### Personal and Sensitive Information
110
+
111
+ [More Information Needed]
112
+
113
+ ## Considerations for Using the Data
114
+
115
+ ### Social Impact of Dataset
116
+
117
+ [More Information Needed]
118
+
119
+ ### Discussion of Biases
120
+
121
+ [More Information Needed]
122
+
123
+ ### Other Known Limitations
124
+
125
+ [More Information Needed]
126
+
127
+ ## Additional Information
128
+
129
+ ### Dataset Curators
130
+
131
+ [More Information Needed]
132
+
133
+ ### Licensing Information
134
+
135
+ [More Information Needed]
136
+
137
+ ### Citation Information
138
+
139
+ [More Information Needed]
dataset_infos.json ADDED
@@ -0,0 +1 @@
 
1
+ {"default": {"description": "A dataset to study Fake News in Portuguese, presenting a supposedly false News along with their respective fact check and classification.\nThe data is collected from the ClaimReview, a structured data schema used by fact check agencies to share their results in search engines, enabling data collect in real time.\nThe FACTCK.BR dataset contains 1309 claims with its corresponding label.\n", "citation": "\n @inproceedings{10.1145/3323503.3361698,\n author = {Moreno, Jo\\~{a}o and Bressan, Gra\\c{c}a},\n title = {FACTCK.BR: A New Dataset to Study Fake News},\n year = {2019},\n isbn = {9781450367639},\n publisher = {Association for Computing Machinery},\n address = {New York, NY, USA},\n url = {https://doi.org/10.1145/3323503.3361698},\n doi = {10.1145/3323503.3361698},\n abstract = {Machine learning algorithms can be used to combat fake news propagation. For the news classification, labeled datasets are required, however, among the existing datasets, few separate verified false from skewed ones with a good variety of sources. This work presents FACTCK.BR, a new dataset to study Fake News in Portuguese, presenting a supposedly false News along with their respective fact check and classification. The data is collected from the ClaimReview, a structured data schema used by fact check agencies to share their results in search engines, enabling data collect in real time.},\n booktitle = {Proceedings of the 25th Brazillian Symposium on Multimedia and the Web},\n pages = {525\u2013527},\n numpages = {3},\n keywords = {fake news, fact check, information extraction, dataset},\n location = {Rio de Janeiro, Brazil},\n series = {WebMedia '19}\n}\n", "homepage": "https://github.com/jghm-f/FACTCK.BR", "license": "MIT", "features": {"url": {"dtype": "string", "id": null, "_type": "Value"}, "author": {"dtype": "string", "id": null, "_type": "Value"}, "date": {"dtype": "string", "id": null, "_type": "Value"}, "claim": {"dtype": "string", "id": null, "_type": "Value"}, "review": {"dtype": "string", "id": null, "_type": "Value"}, "title": {"dtype": "string", "id": null, "_type": "Value"}, "rating": {"dtype": "float32", "id": null, "_type": "Value"}, "best_rating": {"dtype": "float32", "id": null, "_type": "Value"}, "label": {"num_classes": 14, "names": ["falso", "distorcido", "impreciso", "exagerado", "insustent\u00e1vel", "verdadeiro", "outros", "subestimado", "imposs\u00edvel provar", "discut\u00edvel", "sem contexto", "de olho", "verdadeiro, mas", "ainda \u00e9 cedo para dizer"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": {"input": "claim", "output": "label"}, "builder_name": "factckbr", "config_name": "default", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 750646, "num_examples": 1313, "dataset_name": "factckbr"}}, "download_checksums": {"https://github.com/jghm-f/FACTCK.BR/raw/master/FACTCKBR.tsv": {"num_bytes": 721314, "checksum": "1e90fe8b67af22d0f756a7f831b6a2f66072b5d0d66fb1172f3bda1e748201db"}}, "download_size": 721314, "post_processing_size": null, "dataset_size": 750646, "size_in_bytes": 1471960}}
dummy/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0e0df48af919eafc4b2ef167bef7c8022952ec13b405d8fd1871b4b1a5164233
3
+ size 1678
factckbr.py ADDED
@@ -0,0 +1,135 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ """FACTCK.BR: A dataset to study Fake News in Portuguese."""
16
+
17
+ from __future__ import absolute_import, division, print_function
18
+
19
+ import csv
20
+
21
+ import datasets
22
+
23
+
24
+ _CITATION = """
25
+ @inproceedings{10.1145/3323503.3361698,
26
+ author = {Moreno, Jo\\~{a}o and Bressan, Gra\\c{c}a},
27
+ title = {FACTCK.BR: A New Dataset to Study Fake News},
28
+ year = {2019},
29
+ isbn = {9781450367639},
30
+ publisher = {Association for Computing Machinery},
31
+ address = {New York, NY, USA},
32
+ url = {https://doi.org/10.1145/3323503.3361698},
33
+ doi = {10.1145/3323503.3361698},
34
+ abstract = {Machine learning algorithms can be used to combat fake news propagation. For the news classification, labeled datasets are required, however, among the existing datasets, few separate verified false from skewed ones with a good variety of sources. This work presents FACTCK.BR, a new dataset to study Fake News in Portuguese, presenting a supposedly false News along with their respective fact check and classification. The data is collected from the ClaimReview, a structured data schema used by fact check agencies to share their results in search engines, enabling data collect in real time.},
35
+ booktitle = {Proceedings of the 25th Brazillian Symposium on Multimedia and the Web},
36
+ pages = {525–527},
37
+ numpages = {3},
38
+ keywords = {fake news, fact check, information extraction, dataset},
39
+ location = {Rio de Janeiro, Brazil},
40
+ series = {WebMedia '19}
41
+ }
42
+ """
43
+
44
+ _DESCRIPTION = """\
45
+ A dataset to study Fake News in Portuguese, presenting a supposedly false News along with their respective fact check and classification.
46
+ The data is collected from the ClaimReview, a structured data schema used by fact check agencies to share their results in search engines, enabling data collect in real time.
47
+ The FACTCK.BR dataset contains 1309 claims with its corresponding label.
48
+ """
49
+
50
+ _HOMEPAGE = "https://github.com/jghm-f/FACTCK.BR"
51
+
52
+ _LICENSE = "MIT"
53
+
54
+ _URL = "https://github.com/jghm-f/FACTCK.BR/raw/master/FACTCKBR.tsv"
55
+
56
+
57
+ class Factckbr(datasets.GeneratorBasedBuilder):
58
+ """FACTCK.BR: A dataset to study Fake News in Portuguese."""
59
+
60
+ VERSION = datasets.Version("1.0.0")
61
+
62
+ def _info(self):
63
+ return datasets.DatasetInfo(
64
+ description=_DESCRIPTION,
65
+ features=datasets.Features(
66
+ {
67
+ "url": datasets.Value("string"),
68
+ "author": datasets.Value("string"),
69
+ "date": datasets.Value("string"),
70
+ "claim": datasets.Value("string"),
71
+ "review": datasets.Value("string"),
72
+ "title": datasets.Value("string"),
73
+ "rating": datasets.Value("float"),
74
+ "best_rating": datasets.Value("float"),
75
+ "label": datasets.ClassLabel(
76
+ names=[
77
+ "falso",
78
+ "distorcido",
79
+ "impreciso",
80
+ "exagerado",
81
+ "insustentável",
82
+ "verdadeiro",
83
+ "outros",
84
+ "subestimado",
85
+ "impossível provar",
86
+ "discutível",
87
+ "sem contexto",
88
+ "de olho",
89
+ "verdadeiro, mas",
90
+ "ainda é cedo para dizer",
91
+ ]
92
+ ),
93
+ }
94
+ ),
95
+ supervised_keys=("claim", "label"),
96
+ homepage=_HOMEPAGE,
97
+ license=_LICENSE,
98
+ citation=_CITATION,
99
+ )
100
+
101
+ def _split_generators(self, dl_manager):
102
+ """Returns SplitGenerators."""
103
+
104
+ data_file = dl_manager.download_and_extract(_URL)
105
+ return [
106
+ datasets.SplitGenerator(
107
+ name=datasets.Split.TRAIN,
108
+ gen_kwargs={
109
+ "filepath": data_file,
110
+ },
111
+ ),
112
+ ]
113
+
114
+ def _generate_examples(self, filepath):
115
+ """ Yields examples. """
116
+
117
+ with open(filepath, encoding="utf-8") as tsv_file:
118
+ reader = csv.reader(tsv_file, delimiter="\t")
119
+ for id_, row in enumerate(reader):
120
+ if id_ == 0:
121
+ continue
122
+
123
+ label = row[8].lower()
124
+
125
+ yield id_, {
126
+ "url": row[0],
127
+ "author": row[1],
128
+ "date": row[2],
129
+ "claim": row[3],
130
+ "review": row[4],
131
+ "title": row[5],
132
+ "rating": row[6] or 0,
133
+ "best_rating": row[7],
134
+ "label": -1 if label == "" else label,
135
+ }