Datasets:
Upload 2 files
Browse files- .gitattributes +1 -0
- MedQuAD_Formatted_QA.csv +3 -0
- readme.md +80 -0
.gitattributes
CHANGED
|
@@ -57,3 +57,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 57 |
# Video files - compressed
|
| 58 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 59 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 57 |
# Video files - compressed
|
| 58 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 59 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 60 |
+
MedQuAD_Formatted_QA.csv filter=lfs diff=lfs merge=lfs -text
|
MedQuAD_Formatted_QA.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1cefa0e0b2e3cbf2fe2a2c32f987aab53d5c372cef7efcccec71fa8dde44e270
|
| 3 |
+
size 45009379
|
readme.md
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# MedQuAD - Medical Question Answering Dataset
|
| 2 |
+
|
| 3 |
+
## Dataset Overview
|
| 4 |
+
|
| 5 |
+
MedQuAD (Medical Question Answering Dataset) is a collection of **16,407** medical question-answer pairs derived from **9 NIH websites**. It covers **37 question types** related to diseases, drugs, medical tests, and treatments. This dataset is useful for building **medical question-answering models**, **retrieval-augmented generation (RAG) systems**, and other **NLP applications** in the healthcare domain.
|
| 6 |
+
|
| 7 |
+
## Dataset Structure
|
| 8 |
+
|
| 9 |
+
The dataset is stored in CSV format with the following columns:
|
| 10 |
+
|
| 11 |
+
| Column Name | Description |
|
| 12 |
+
| --------------------- | -------------------------------------------------------------- |
|
| 13 |
+
| **text** | A formatted string that includes both the question and answer. |
|
| 14 |
+
| **query** | The question asked. |
|
| 15 |
+
| **answers** | The corresponding answer. |
|
| 16 |
+
| **topic\_embeddings** | Placeholder for clustering or topic embeddings. (Default: -1) |
|
| 17 |
+
| **group\_name** | The medical category of the question-answer pair. |
|
| 18 |
+
|
| 19 |
+
### Example Entry
|
| 20 |
+
|
| 21 |
+
```plaintext
|
| 22 |
+
text: <HUMAN>: What is (are) Adult Acute Lymphoblastic Leukemia ?
|
| 23 |
+
<ASSISTANT>: Key Points
|
| 24 |
+
- Adult acute lymphoblastic leukemia (ALL) is a type of cancer in which the bone marrow makes too many lymphocytes (a type of white blood cell).....
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
query: What is (are) Adult Acute Lymphoblastic Leukemia ?
|
| 29 |
+
answers: Key Points
|
| 30 |
+
- Adult acute lymphoblastic leukemia (ALL) is a type of cancer in which the bone marrow makes too many lymphocytes (a type of white blood cell). ...
|
| 31 |
+
topic_embeddings: 1
|
| 32 |
+
group_name: 1_CancerGov_QA
|
| 33 |
+
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
+
## Usage
|
| 37 |
+
|
| 38 |
+
You can load the dataset using **Hugging Face Datasets Library**:
|
| 39 |
+
|
| 40 |
+
```python
|
| 41 |
+
from datasets import load_dataset
|
| 42 |
+
|
| 43 |
+
dataset = load_dataset("mukulb/clustered_MEDQUAD_dataset_with_groups")
|
| 44 |
+
print(dataset["train"][0])
|
| 45 |
+
```
|
| 46 |
+
|
| 47 |
+
### Applications
|
| 48 |
+
|
| 49 |
+
- **Medical Question-Answering Systems**
|
| 50 |
+
- **Retrieval-Augmented Generation (RAG) for Healthcare**
|
| 51 |
+
- **Named Entity Recognition (NER) for Medical Concepts**
|
| 52 |
+
- **Semantic Search and Information Retrieval**
|
| 53 |
+
|
| 54 |
+
## Citation
|
| 55 |
+
|
| 56 |
+
If you use this dataset in your research, please cite:
|
| 57 |
+
|
| 58 |
+
```
|
| 59 |
+
@article{MedQuAD,
|
| 60 |
+
author = {National Institutes of Health (NIH)},
|
| 61 |
+
title = {MedQuAD: Medical Question Answering Dataset},
|
| 62 |
+
year = {2025},
|
| 63 |
+
url = {https://github.com/your_repo_link_here}
|
| 64 |
+
}
|
| 65 |
+
```
|
| 66 |
+
|
| 67 |
+
## License
|
| 68 |
+
|
| 69 |
+
The dataset is available for **research purposes only**. Please refer to individual source websites for copyright information.
|
| 70 |
+
|
| 71 |
+
## Contribution
|
| 72 |
+
|
| 73 |
+
If you have any improvements or suggestions, feel free to open an issue or contribute via a pull request!
|
| 74 |
+
|
| 75 |
+
---
|
| 76 |
+
|
| 77 |
+
**Maintained by:** [Your Name]\
|
| 78 |
+
📧 Contact: [[your.email@example.com](mailto\:your.email@example.com)]\
|
| 79 |
+
🚀 Hosted on Hugging Face: [your\_hf\_username/MedQuAD]
|
| 80 |
+
|