Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- text2sql
|
| 5 |
+
- question-answering
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
tags:
|
| 9 |
+
- ehrsql
|
| 10 |
+
- electronic-health-records
|
| 11 |
+
- sql
|
| 12 |
+
- postgresql
|
| 13 |
+
- sqlite
|
| 14 |
+
pretty_name: EHRSQL PostgreSQL Artifacts
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# EHRSQL PostgreSQL Artifacts
|
| 18 |
+
|
| 19 |
+
This dataset repository hosts database artifacts generated for the companion
|
| 20 |
+
GitHub repository:
|
| 21 |
+
|
| 22 |
+
https://github.com/Jensen-JinhuiLiu/EHRSQL_PostgreSQL
|
| 23 |
+
|
| 24 |
+
## Files
|
| 25 |
+
|
| 26 |
+
- `eicu.sqlite`: original benchmark SQLite database artifact used for eICU.
|
| 27 |
+
- `mimic_iii.sqlite`: original benchmark SQLite database artifact used for MIMIC-III.
|
| 28 |
+
- `postgres_import/eicu/csv/`: CSV exports for loading the eICU PostgreSQL database.
|
| 29 |
+
- `postgres_import/mimic_iii/csv/`: CSV exports for loading the MIMIC-III PostgreSQL database.
|
| 30 |
+
|
| 31 |
+
The companion GitHub repository contains the preprocessing scripts,
|
| 32 |
+
PostgreSQL schema/load files, generated benchmark JSON files, and a checksum
|
| 33 |
+
manifest for these artifacts.
|
| 34 |
+
|
| 35 |
+
## Download
|
| 36 |
+
|
| 37 |
+
Download directly into the companion GitHub repository root:
|
| 38 |
+
|
| 39 |
+
```bash
|
| 40 |
+
hf download JimHue/EHRSQL_PostgreSQL_data --repo-type dataset --local-dir .
|
| 41 |
+
```
|
| 42 |
+
|
| 43 |
+
Or clone this dataset repository separately:
|
| 44 |
+
|
| 45 |
+
```bash
|
| 46 |
+
git clone https://huggingface.co/datasets/JimHue/EHRSQL_PostgreSQL_data
|
| 47 |
+
```
|
| 48 |
+
|
| 49 |
+
## Loading PostgreSQL
|
| 50 |
+
|
| 51 |
+
After downloading the artifacts into the GitHub repository root, follow:
|
| 52 |
+
|
| 53 |
+
- `postgres_import/README.md`
|
| 54 |
+
- `postgres_import/create_databases.sql`
|
| 55 |
+
- `postgres_import/eicu/schema_no_fk.sql`
|
| 56 |
+
- `postgres_import/eicu/load_data.sql`
|
| 57 |
+
- `postgres_import/mimic_iii/schema_no_fk.sql`
|
| 58 |
+
- `postgres_import/mimic_iii/load_data.sql`
|
| 59 |
+
|
| 60 |
+
## Attribution
|
| 61 |
+
|
| 62 |
+
These artifacts are derived from the EHRSQL benchmark:
|
| 63 |
+
|
| 64 |
+
EHRSQL: A Practical Text-to-SQL Benchmark for Electronic Health Records
|
| 65 |
+
https://github.com/glee4810/EHRSQL
|