File size: 6,718 Bytes
358f457
ab0dd95
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
358f457
ab0dd95
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0093e86
ab0dd95
 
 
 
 
 
 
 
 
 
 
 
0093e86
ab0dd95
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9e2958a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
---
pretty_name: DrugsCom Reviews
annotations_creators:
- no-annotation
language_creators:
- found
language:
- en
tags:
- health
- medicine
- patient reviews
- drug reviews
- sentiment analysis
license:
- cc-by-4.0
multilinguality:
- monolingual
size_categories:
- 100K<n<1M
source_datasets:
- original
task_categories:
- text-classification
task_ids:
- sentiment-classification
---

# Dataset Card for "DrugsCom Reviews"

## Table of Contents
- [Dataset Description](#dataset-description)
  - [Dataset Summary](#dataset-summary)
  - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
  - [Languages](#languages)
- [Dataset Structure](#dataset-structure)
  - [Data Instances](#data-instances)
  - [Data Fields](#data-fields)
  - [Data Splits](#data-splits)
- [Dataset Creation](#dataset-creation)
  - [Curation Rationale](#curation-rationale)
  - [Source Data](#source-data)
  - [Annotations](#annotations)
- [Considerations for Using the Data](#considerations-for-using-the-data)
  - [Social Impact of Dataset](#social-impact-of-dataset)
  - [Discussion of Biases](#discussion-of-biases)
  - [Other Known Limitations](#other-known-limitations)
- [Additional Information](#additional-information)
  - [Dataset Curators](#dataset-curators)
  - [Licensing Information](#licensing-information)
  - [Citation Information](#citation-information)
  - [Contributions](#contributions)

## Dataset Description

- **Homepage:** [UCI Machine Learning Repository](https://archive.ics.uci.edu/dataset/462/drug+review+dataset+drugs+com)
- **Repository:** [DrugsCom Reviews on Hugging Face](https://huggingface.co/datasets/Zakia/drugscom_reviews)
- **Size of the training dataset file:** 82.314 MB
- **Size of the test dataset file:** 27.414 MB
- **Total size of downloaded dataset files:** 109.73 MB

### Dataset Summary

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.

### Supported Tasks and Leaderboards

This dataset can be used for sentiment analysis and text classification tasks.

### Languages

The text in the dataset is in English.

## Dataset Structure

### Data Instances

A data instance from the `train` split:

```
{
    "drugName": "Buprenex",
    "condition": "Pain",
    "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.",
    "rating": 10,
    "date": "May 11, 2012",
    "usefulCount": 27
}
```

A data instance from the `test` split:

```
{
    "drugName": "Nasacort Allergy 24HR",
    "condition": "Allergic Rhinitis",
    "review": "Since I start using this product I experienced change of vision and headaches.",
    "rating": 3,
    "date": "September 8, 2015",
    "usefulCount": 27
}
```


#### plain_text

- **Size of the training dataset file:** 82.314 MB
- **Size of the test dataset file:** 27.414 MB
- **Total size of downloaded dataset files:** 109.73 MB

A data instance consists of the following fields:

- `drugName`: The name of the drug reviewed.
- `condition`: The condition for which the drug was prescribed.
- `review`: The text of the review by the patient.
- `rating`: A patient satisfaction rating out of 10.
- `date`: The date when the review was posted.
- `usefulCount`: The number of users who found the review useful.

### Data Fields

- `drugName`: string
- `condition`: string
- `review`: string
- `rating`: integer (0-10)
- `date`: date
- `usefulCount`: integer

### Data Splits

The dataset is split into training and testing sets as follows:

- `train`: 161,297 instances
- `test`: 53,766 instances

## Dataset Creation

### Curation Rationale

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.

### Source Data

#### Initial Data Collection and Normalization

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.

#### Who are the source language producers?

The reviews were written by patients and users of the drugs.com website.

### Annotations

#### Annotation process

No additional annotation process was followed as the data contains self-reported patient ratings.

#### Who are the annotators?

N/A

### Personal and Sensitive Information

The dataset contains sensitive information in the form of patient drug reviews.

## Considerations for Using the Data

### Social Impact of Dataset

The dataset can be used to study the impact of drugs on patients, which can be beneficial for healthcare research.

### Discussion of Biases

No known biases but users should consider the self-reported nature of the data.

### Other Known Limitations

The dataset may not generalize well to drugs or conditions not represented in the data.

## Additional Information

### Dataset Curators

Curated by the UCI Machine Learning Repository.

### Licensing Information

Licensed under the Creative Commons Attribution 4.0 International (CC BY 4.0).


### Citation Information

When using this dataset, please cite the original source and also the Hugging Face dataset repository:

```
@misc{misc_drug_review_dataset_(drugs.com)_462,
author = {Kallumadi,Surya and Grer,Felix},
title = {Drug Review Dataset (Drugs.com)},
year = {2018},
howpublished = {UCI Machine Learning Repository},
note = {DOI: https://doi.org/10.24432/C5SK5S}
}

```

And:

```
@misc{huggingface:drugscom_reviews,
title = {Drug Review Dataset (Drugs.com) - Hugging Face Version},
author = {Salod, Zakia},
year = {2023},
publisher = {Hugging Face},
howpublished = {Hugging Face Datasets Library},
url = {https://huggingface.co/datasets/Zakia/drugscom_reviews}
}

```

### Contributions

This dataset was uploaded to Hugging Face by [Zakia](https://huggingface.co/Zakia). 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 in the [discussions section of this dataset's Hugging Face page](https://huggingface.co/datasets/Zakia/drugscom_reviews/discussions).