Datasets:
Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,76 @@
|
|
1 |
-
---
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
pretty_name: TheBlueScrubs-v1 (train) — fixed schema
|
3 |
+
tags:
|
4 |
+
- medical
|
5 |
+
- healthcare
|
6 |
+
- biology
|
7 |
+
- text
|
8 |
+
- pretraining
|
9 |
+
- safety
|
10 |
+
- classification
|
11 |
+
- generation
|
12 |
+
task_categories:
|
13 |
+
- text-generation
|
14 |
+
- text-classification
|
15 |
+
language:
|
16 |
+
- en
|
17 |
+
license: apache-2.0
|
18 |
+
size_categories:
|
19 |
+
- 10B<n<100B
|
20 |
+
dataset_info:
|
21 |
+
features:
|
22 |
+
- name: text
|
23 |
+
dtype: string
|
24 |
+
---
|
25 |
+
|
26 |
+
# mkurman/TheBlueScrubs-v1-fixed
|
27 |
+
|
28 |
+
## What is this?
|
29 |
+
|
30 |
+
**TheBlueScrubs-v1-fixed** is a maintenance fork of the upstream [TheBlueScrubs/TheBlueScrubs-v1](https://huggingface.co/datasets/TheBlueScrubs/TheBlueScrubs-v1) *train split* that resolves a schema bug in the `meta` column.
|
31 |
+
In the original train files, some rows serialized `meta` incorrectly (appearing as the literal string `"dict"`). This fork **re-exports the entire train split without `meta` column**, preserving text field and values.
|
32 |
+
|
33 |
+
- **Document count:** 11,520,321 texts (train)
|
34 |
+
- **Tokens (upstream estimate across all splits):** ~25.16B tokens
|
35 |
+
- **Sources:** Curated from SlimPajama/RedPajama (Common Crawl, C4, GitHub, Books, arXiv, Wikipedia, StackExchange)
|
36 |
+
- **Quality signals:** per-text medical probability (0.8–1.0) + three 1–5 LLM-based scores (relevance, precision/factual detail, safety/ethics); oncology label covering ~11B tokens across the full corpus.
|
37 |
+
|
38 |
+
> Upstream details: The Blue Scrubs is a large, curated medical corpus designed for clinical LLMs, filtered via a logistic-regression screen and then Llama-3.1-70B evaluation; clinician and external checks reported high concordance. An oncology classifier adds cancer labels at scale.
|
39 |
+
|
40 |
+
---
|
41 |
+
|
42 |
+
## Why this fork?
|
43 |
+
|
44 |
+
- **Fix:** Removes the `meta` column, unblocking usage with `datasets` streaming and dataframe backends.
|
45 |
+
- **Scope:** Content is otherwise **unchanged** relative to upstream train split (same rows, fields, and values).
|
46 |
+
- **Goal:** Provide a drop-in train split that **loads cleanly** in `datasets` without ad-hoc parsing workarounds.
|
47 |
+
|
48 |
+
---
|
49 |
+
|
50 |
+
## Data fields (train)
|
51 |
+
|
52 |
+
| Field | Type | Description |
|
53 |
+
|---|---|---|
|
54 |
+
| `text` | string | Raw medical text extracted from SlimPajama/RedPajama sources. |
|
55 |
+
|
56 |
+
---
|
57 |
+
|
58 |
+
## Splits
|
59 |
+
|
60 |
+
This repository publishes the **train** split only (11,520,321 documents). For methods, scope, and aggregate corpus statistics (including validation/test in the upstream project), see the original dataset card and paper.
|
61 |
+
|
62 |
+
---
|
63 |
+
|
64 |
+
## How to load
|
65 |
+
|
66 |
+
```python
|
67 |
+
from datasets import load_dataset
|
68 |
+
|
69 |
+
# streaming
|
70 |
+
ds = load_dataset("mkurman/TheBlueScrubs-v1-fixed", split="train", streaming=True)
|
71 |
+
row = next(iter(ds))
|
72 |
+
row["metadata"] # dict
|
73 |
+
|
74 |
+
# non-streaming (if you have local storage/network bandwidth)
|
75 |
+
ds = load_dataset("mkurman/TheBlueScrubs-v1-fixed", split="train")
|
76 |
+
ds.features
|