Zakia commited on
Commit
ab0dd95
·
1 Parent(s): e43398a

Update the Dataset Card for DrugsCom Reviews

Browse files
Files changed (1) hide show
  1. README.md +221 -1
README.md CHANGED
@@ -1,3 +1,223 @@
1
  ---
2
- license: cc-by-4.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ pretty_name: DrugsCom Reviews
3
+ annotations_creators:
4
+ - no-annotation
5
+ language_creators:
6
+ - found
7
+ language:
8
+ - en
9
+ tags:
10
+ - health
11
+ - medicine
12
+ - patient reviews
13
+ - drug reviews
14
+ - sentiment analysis
15
+ license:
16
+ - cc-by-4.0
17
+ multilinguality:
18
+ - monolingual
19
+ size_categories:
20
+ - 100K<n<1M
21
+ source_datasets:
22
+ - original
23
+ task_categories:
24
+ - text-classification
25
+ - sentiment-analysis
26
+ task_ids:
27
+ - sentiment-classification
28
  ---
29
+
30
+ # Dataset Card for "DrugsCom Reviews"
31
+
32
+ ## Table of Contents
33
+ - [Dataset Description](#dataset-description)
34
+ - [Dataset Summary](#dataset-summary)
35
+ - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
36
+ - [Languages](#languages)
37
+ - [Dataset Structure](#dataset-structure)
38
+ - [Data Instances](#data-instances)
39
+ - [Data Fields](#data-fields)
40
+ - [Data Splits](#data-splits)
41
+ - [Dataset Creation](#dataset-creation)
42
+ - [Curation Rationale](#curation-rationale)
43
+ - [Source Data](#source-data)
44
+ - [Annotations](#annotations)
45
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
46
+ - [Social Impact of Dataset](#social-impact-of-dataset)
47
+ - [Discussion of Biases](#discussion-of-biases)
48
+ - [Other Known Limitations](#other-known-limitations)
49
+ - [Additional Information](#additional-information)
50
+ - [Dataset Curators](#dataset-curators)
51
+ - [Licensing Information](#licensing-information)
52
+ - [Citation Information](#citation-information)
53
+ - [Contributions](#contributions)
54
+
55
+ ## Dataset Description
56
+
57
+ - **Homepage:** [UCI Machine Learning Repository](https://archive.ics.uci.edu/dataset/462/drug+review+dataset+drugs+com)
58
+ - **Repository:** [DrugsCom Reviews on Hugging Face](https://huggingface.co/datasets/Zakia/drugscom_reviews)
59
+ - **Size of the training dataset file:** 82.314 MB
60
+ - **Size of the test dataset file:** 27.414 MB
61
+ - **Total size of downloaded dataset files:** 109.73 MB
62
+
63
+ ### Dataset Summary
64
+
65
+ The DrugsCom Reviews dataset is originally sourced from the UCI Machine Learning Repository. It provides patient reviews on specific drugs along with related conditions and a 10-star patient rating reflecting overall patient satisfaction. The dataset has been uploaded to Hugging Face to facilitate easier access and use by the machine learning community. It contains 161,297 instances in the training set and 53,766 instances in the test set.
66
+
67
+ ### Supported Tasks and Leaderboards
68
+
69
+ This dataset can be used for sentiment analysis and text classification tasks.
70
+
71
+ ### Languages
72
+
73
+ The text in the dataset is in English.
74
+
75
+ ## Dataset Structure
76
+
77
+ ### Data Instances
78
+
79
+ A data instance from the `train` split:
80
+
81
+ ```
82
+ {
83
+ "drugName": "Buprenex",
84
+ "condition": "Pain",
85
+ "review": "I have severe drug allergies especially opiates, I have been on Buprenorphine for many years now and found it to be an excellent pain reliever. I have found that at times though it is hard to find and have had to go to the patch.",
86
+ "rating": 10,
87
+ "date": "2012-05-11",
88
+ "usefulCount": 27
89
+ }
90
+ ```
91
+
92
+ A data instance from the `test` split:
93
+
94
+ ```
95
+ {
96
+ "drugName": "Nasacort Allergy 24HR",
97
+ "condition": "Allergic Rhinitis",
98
+ "review": "Since I start using this product I experienced change of vision and headaches.",
99
+ "rating": 3,
100
+ "date": "2015-09-08",
101
+ "usefulCount": 27
102
+ }
103
+ ```
104
+
105
+
106
+ #### plain_text
107
+
108
+ - **Size of the training dataset file:** 82.314 MB
109
+ - **Size of the test dataset file:** 27.414 MB
110
+ - **Total size of downloaded dataset files:** 109.73 MB
111
+
112
+ A data instance consists of the following fields:
113
+
114
+ - `drugName`: The name of the drug reviewed.
115
+ - `condition`: The condition for which the drug was prescribed.
116
+ - `review`: The text of the review by the patient.
117
+ - `rating`: A patient satisfaction rating out of 10.
118
+ - `date`: The date when the review was posted.
119
+ - `usefulCount`: The number of users who found the review useful.
120
+
121
+ ### Data Fields
122
+
123
+ - `drugName`: string
124
+ - `condition`: string
125
+ - `review`: string
126
+ - `rating`: integer (0-10)
127
+ - `date`: date
128
+ - `usefulCount`: integer
129
+
130
+ ### Data Splits
131
+
132
+ The dataset is split into training and testing sets as follows:
133
+
134
+ - `train`: 161,297 instances
135
+ - `test`: 53,766 instances
136
+
137
+ ## Dataset Creation
138
+
139
+ ### Curation Rationale
140
+
141
+ The dataset was curated with the intention to study sentiment analysis of drug experience and the transferability of models among different domains and data sources.
142
+
143
+ ### Source Data
144
+
145
+ #### Initial Data Collection and Normalization
146
+
147
+ The dataset was collected by crawling online pharmaceutical review sites. No additional preprocessing or normalization has been conducted on the data provided in this repository; it is presented in its original form as obtained from the source.
148
+
149
+ #### Who are the source language producers?
150
+
151
+ The reviews were written by patients and users of the drugs.com website.
152
+
153
+ ### Annotations
154
+
155
+ #### Annotation process
156
+
157
+ No additional annotation process was followed as the data contains self-reported patient ratings.
158
+
159
+ #### Who are the annotators?
160
+
161
+ N/A
162
+
163
+ ### Personal and Sensitive Information
164
+
165
+ The dataset contains sensitive information in the form of patient drug reviews.
166
+
167
+ ## Considerations for Using the Data
168
+
169
+ ### Social Impact of Dataset
170
+
171
+ The dataset can be used to study the impact of drugs on patients, which can be beneficial for healthcare research.
172
+
173
+ ### Discussion of Biases
174
+
175
+ No known biases but users should consider the self-reported nature of the data.
176
+
177
+ ### Other Known Limitations
178
+
179
+ The dataset may not generalize well to drugs or conditions not represented in the data.
180
+
181
+ ## Additional Information
182
+
183
+ ### Dataset Curators
184
+
185
+ Curated by the UCI Machine Learning Repository.
186
+
187
+ ### Licensing Information
188
+
189
+ Licensed under the Creative Commons Attribution 4.0 International (CC BY 4.0).
190
+
191
+
192
+ ### Citation Information
193
+
194
+ When using this dataset, please cite the original source and also the Hugging Face dataset repository:
195
+
196
+ ```
197
+ @misc{misc_drug_review_dataset_(drugs.com)_462,
198
+ author = {Kallumadi,Surya and Grer,Felix},
199
+ title = {Drug Review Dataset (Drugs.com)},
200
+ year = {2018},
201
+ howpublished = {UCI Machine Learning Repository},
202
+ note = {DOI: https://doi.org/10.24432/C5SK5S}
203
+ }
204
+
205
+ ```
206
+
207
+ And:
208
+
209
+ ```
210
+ @misc{huggingface:drugscom_reviews,
211
+ title = {Drug Review Dataset (Drugs.com) - Hugging Face Version},
212
+ author = {Salod, Zakia},
213
+ year = {2023},
214
+ publisher = {Hugging Face},
215
+ howpublished = {Hugging Face Datasets Library},
216
+ url = {https://huggingface.co/datasets/Zakia/drugscom_reviews}
217
+ }
218
+
219
+ ```
220
+
221
+ ### Contributions
222
+
223
+ This dataset was uploaded to Hugging Face by [@Zakia](https://github.com/ZakiaSalod). Special thanks to the community for their interest and engagement. Future contributions, including discussions, issues, and improvements to the dataset card, are welcomed and greatly appreciated.