system HF staff commited on
Commit
687a086
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

.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,148 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - no-annotation
4
+ language_creators:
5
+ - found
6
+ languages:
7
+ - ar
8
+ multilinguality:
9
+ - monolingual
10
+ size_categories:
11
+ - n>1M
12
+ source_datasets:
13
+ - original
14
+ task_categories:
15
+ - other
16
+ task_ids:
17
+ - other-other-data-mining
18
+ ---
19
+
20
+ # Dataset Card for ArCOV19
21
+
22
+ ## Table of Contents
23
+ - [Dataset Description](#dataset-description)
24
+ - [Dataset Summary](#dataset-summary)
25
+ - [Supported Tasks](#supported-tasks-and-leaderboards)
26
+ - [Languages](#languages)
27
+ - [Dataset Structure](#dataset-structure)
28
+ - [Data Instances](#data-instances)
29
+ - [Data Fields](#data-instances)
30
+ - [Data Splits](#data-instances)
31
+ - [Dataset Creation](#dataset-creation)
32
+ - [Curation Rationale](#curation-rationale)
33
+ - [Source Data](#source-data)
34
+ - [Annotations](#annotations)
35
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
36
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
37
+ - [Social Impact of Dataset](#social-impact-of-dataset)
38
+ - [Discussion of Biases](#discussion-of-biases)
39
+ - [Other Known Limitations](#other-known-limitations)
40
+ - [Additional Information](#additional-information)
41
+ - [Dataset Curators](#dataset-curators)
42
+ - [Licensing Information](#licensing-information)
43
+ - [Citation Information](#citation-information)
44
+
45
+ ## Dataset Description
46
+
47
+ - **Homepage:**
48
+ - **Repository:** https://gitlab.com/bigirqu/ArCOV-19
49
+ - **Paper:** [ArCOV-19: The First Arabic COVID-19 Twitter Dataset with Propagation Networks](https://arxiv.org/abs/2004.05861)
50
+ - **Leaderboard:** [More Information Needed]
51
+ - **Point of Contact:** [Fatima Haouari](mailto:200159617@qu.edu.qa)
52
+
53
+ ### Dataset Summary
54
+
55
+ ArCOV-19 is an Arabic COVID-19 Twitter dataset that covers the period from 27th of January till 30th of April 2020. ArCOV-19 is the first publicly-available Arabic Twitter dataset covering COVID-19 pandemic that includes over 1M tweets alongside the propagation networks of the most-popular subset of them (i.e., most-retweeted and-liked). The propagation networks include both retweets and conversational threads (i.e., threads of replies). ArCOV-19 is designed to enable research under several domains including natural language processing, information retrieval, and social computing, among others. Preliminary analysis shows that ArCOV-19 captures rising discussions associated with the first reported cases of the disease as they appeared in the Arab world. In addition to the source tweets and the propagation networks, we also release the search queries and the language-independent crawler used to collect the tweets to encourage the curation of similar datasets.
56
+
57
+ ### Supported Tasks and Leaderboards
58
+
59
+ [More Information Needed]
60
+
61
+ ### Languages
62
+
63
+ Arabic
64
+
65
+ ## Dataset Structure
66
+
67
+ ### Data Instances
68
+
69
+ [More Information Needed]
70
+
71
+ ### Data Fields
72
+
73
+ tweet_id: the Twitter assigned ID for the tweet object.
74
+
75
+ ### Data Splits
76
+
77
+ [More Information Needed]
78
+
79
+ ## Dataset Creation
80
+
81
+ The dataset collection approach is presented in the following paper: [ArCOV-19: The First Arabic COVID-19 Twitter Dataset with Propagation Networks](https://arxiv.org/abs/2004.05861)
82
+ ### Curation Rationale
83
+
84
+ [More Information Needed]
85
+
86
+ ### Source Data
87
+
88
+
89
+ #### Initial Data Collection and Normalization
90
+
91
+ [More Information Needed]
92
+
93
+ #### Who are the source language producers?
94
+
95
+ [More Information Needed]
96
+
97
+ ### Annotations
98
+ No annotation was provided with the dataset.
99
+
100
+ #### Annotation process
101
+
102
+ No annotation was provided with the dataset.
103
+
104
+ #### Who are the annotators?
105
+
106
+ No annotation was provided with the dataset.
107
+
108
+ ### Personal and Sensitive Information
109
+
110
+ [More Information Needed]
111
+
112
+ ## Considerations for Using the Data
113
+
114
+ ### Social Impact of Dataset
115
+
116
+ [More Information Needed]
117
+
118
+ ### Discussion of Biases
119
+
120
+ [More Information Needed]
121
+
122
+ ### Other Known Limitations
123
+
124
+ [More Information Needed]
125
+
126
+ ## Additional Information
127
+
128
+ ### Dataset Curators
129
+
130
+ **Team:** [bigIR](https://sites.google.com/view/bigir) from Qatar University ([@bigIR_group](https://twitter.com/bigIR_group))
131
+
132
+ - [Fatima Haouari](mailto:200159617@qu.edu.qa)
133
+ - [Maram Hasanain](mailto:maram.hasanain@qu.edu.qa)
134
+ - [Reem Suwaileh](mailto:rs081123@qu.edu.qa)
135
+ - [Dr. Tamer Elsayed](mailto:telsayed@qu.edu.qa)
136
+
137
+ ### Licensing Information
138
+
139
+ [More Information Needed]
140
+
141
+ ### Citation Information
142
+
143
+ @article{haouari2020arcov19,
144
+ title={ArCOV-19: The First Arabic COVID-19 Twitter Dataset with Propagation Networks},
145
+ author={Fatima Haouari and Maram Hasanain and Reem Suwaileh and Tamer Elsayed},
146
+ journal={arXiv preprint arXiv:2004.05861},
147
+ year={2020}
148
+ }
ar_cov19.py ADDED
@@ -0,0 +1,139 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ """TODO: Add a description here."""
16
+
17
+ from __future__ import absolute_import, division, print_function
18
+
19
+ import glob
20
+ import os
21
+
22
+ import pandas as pd
23
+
24
+ import datasets
25
+
26
+
27
+ # TODO: Add BibTeX citation
28
+ # Find for instance the citation on arxiv or on the dataset repo/website
29
+ _CITATION = """\
30
+ @article{haouari2020arcov19,
31
+ title={ArCOV-19: The First Arabic COVID-19 Twitter Dataset with Propagation Networks},
32
+ author={Fatima Haouari and Maram Hasanain and Reem Suwaileh and Tamer Elsayed},
33
+ journal={arXiv preprint arXiv:2004.05861},
34
+ year={2020}
35
+ """
36
+
37
+ # TODO: Add description of the dataset here
38
+ # You can copy an official description
39
+ _DESCRIPTION = """\
40
+ ArCOV-19 is an Arabic COVID-19 Twitter dataset that covers the period from 27th of January till 30th of April 2020. ArCOV-19 is designed to enable research under several domains including natural language processing, information retrieval, and social computing, among others
41
+ """
42
+
43
+ # TODO: Add a link to an official homepage for the dataset here
44
+ _HOMEPAGE = "https://gitlab.com/bigirqu/ArCOV-19"
45
+
46
+ # TODO: Add the licence for the dataset here if you can find it
47
+ # _LICENSE = ""
48
+
49
+ # TODO: Add link to the official dataset URLs here
50
+ # The HuggingFace dataset library don't host the datasets but only point to the original files
51
+ # This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
52
+ _URL = "https://gitlab.com/bigirqu/ArCOV-19/-/archive/master/ArCOV-19-master.zip"
53
+ # _URL="https://gitlab.com/bigirqu/ArCOV-19/-/archive/master/ArCOV-19-master.zip?path=dataset/all_tweets"
54
+
55
+
56
+ class ArCov19Config(datasets.BuilderConfig):
57
+ """BuilderConfig for ArCOV19."""
58
+
59
+ def __init__(self, **kwargs):
60
+ """BuilderConfig for ArCOV19.
61
+
62
+ Args:
63
+ **kwargs: keyword arguments forwarded to super.
64
+ """
65
+ super(ArCov19Config, self).__init__(version=datasets.Version("1.0.0", ""), **kwargs)
66
+
67
+
68
+ # TODO: Name of the dataset usually match the script name with CamelCase instead of snake_case
69
+ class ArCov19(datasets.GeneratorBasedBuilder):
70
+ """ArCOV-19 is an Arabic COVID-19 Twitter dataset that covers the period from 27th of January till 30th of April 2020. ArCOV-19 is designed to enable research under several domains including natural language processing, information retrieval, and social computing, among others"""
71
+
72
+ VERSION = datasets.Version("1.1.0")
73
+
74
+ # This is an example of a dataset with multiple configurations.
75
+ # If you don't want/need to define several sub-sets in your dataset,
76
+ # just remove the BUILDER_CONFIG_CLASS and the BUILDER_CONFIGS attributes.
77
+
78
+ # If you need to make complex sub-parts in the datasets with configurable options
79
+ # You can create your own builder configuration class to store attribute, inheriting from datasets.BuilderConfig
80
+ # BUILDER_CONFIG_CLASS = MyBuilderConfig
81
+
82
+ # You will be able to load one or the other configurations in the following list with
83
+ # data = datasets.load_dataset('my_dataset', 'first_domain')
84
+ # data = datasets.load_dataset('my_dataset', 'second_domain')
85
+ BUILDER_CONFIGS = [
86
+ ArCov19Config(
87
+ name="ar_cov19",
88
+ description="Plain text",
89
+ )
90
+ ]
91
+
92
+ def _info(self):
93
+
94
+ features = {}
95
+
96
+ features["tweetID"] = datasets.Value("int64")
97
+
98
+ return datasets.DatasetInfo(
99
+ # This is the description that will appear on the datasets page.
100
+ description=_DESCRIPTION,
101
+ # This defines the different columns of the dataset and their types
102
+ features=datasets.Features(
103
+ features
104
+ ), # Here we define them above because they are different between the two configurations
105
+ # If there's a common (input, target) tuple from the features,
106
+ # specify them here. They'll be used if as_supervised=True in
107
+ # builder.as_dataset.
108
+ supervised_keys=None,
109
+ # Homepage of the dataset for documentation
110
+ homepage=_HOMEPAGE,
111
+ # License for the dataset if available
112
+ # license=_LICENSE,
113
+ # Citation for the dataset
114
+ citation=_CITATION,
115
+ )
116
+
117
+ def _split_generators(self, dl_manager):
118
+ """Returns SplitGenerators."""
119
+ # TODO: This method is tasked with downloading/extracting the data and defining the splits depending on the configuration
120
+ # If several configurations are possible (listed in BUILDER_CONFIGS), the configuration selected by the user is in self.config.name
121
+ # dl_manager is a datasets.download.DownloadManager that can be used to download and extract URLs
122
+ # It can accept any type or nested list/dict and will give back the same structure with the url replaced with path to local files.
123
+ # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
124
+ data_dir = dl_manager.download_and_extract(_URL)
125
+ return [datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"data_dir": data_dir})]
126
+
127
+ def _generate_examples(self, data_dir):
128
+ """ Yields examples. """
129
+ # TODO: This method will receive as arguments the `gen_kwargs` defined in the previous `_split_generators` method.
130
+ # It is in charge of opening the given file and yielding (key, example) tuples from the dataset
131
+ # The key is not important, it's more here for legacy reason (legacy from tfds)
132
+ for fname in sorted(glob.glob(os.path.join(data_dir, "ArCOV-19-master/dataset/all_tweets/2020-*"))):
133
+
134
+ df = pd.read_csv(fname, names=["tweetID"])
135
+ for id_, record in df.iterrows():
136
+
137
+ tweetID = record["tweetID"]
138
+
139
+ yield str(id_), {"tweetID": tweetID}
dataset_infos.json ADDED
@@ -0,0 +1 @@
 
1
+ {"ar_cov19": {"description": "ArCOV-19 is an Arabic COVID-19 Twitter dataset that covers the period from 27th of January till 30th of April 2020. ArCOV-19 is designed to enable research under several domains including natural language processing, information retrieval, and social computing, among others\n", "citation": "@article{haouari2020arcov19,\n title={ArCOV-19: The First Arabic COVID-19 Twitter Dataset with Propagation Networks},\n author={Fatima Haouari and Maram Hasanain and Reem Suwaileh and Tamer Elsayed},\n journal={arXiv preprint arXiv:2004.05861},\n year={2020}\n", "homepage": "https://gitlab.com/bigirqu/ArCOV-19", "license": "", "features": {"tweetID": {"dtype": "int64", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "ar_cov19", "config_name": "ar_cov19", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 8724728, "num_examples": 1090591, "dataset_name": "ar_cov19"}}, "download_checksums": {"https://gitlab.com/bigirqu/ArCOV-19/-/archive/master/ArCOV-19-master.zip": {"num_bytes": 54902390, "checksum": "96211408035f8082c072a5eb4fbccf28ef4de00379abfc9523c552ab84646579"}}, "download_size": 54902390, "post_processing_size": null, "dataset_size": 8724728, "size_in_bytes": 63627118}}
dummy/ar_cov19/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8f7432206ea29c32b6565ec452741811b33e3597a4c50d2a13ca81475c990362
3
+ size 705