Demonstration only. Corollary is a non-commercial research demo — no warranty, no support, not for commercial use or clinical decisions. Read the disclaimer

All datasets

Medical Pretraining Corpus · doctolib-lab

finemed-fr

A 19.2B-word French medical pretraining corpus drawn from web text, PDFs, and Wikipedia with multi-axis quality labels.

What finemed-fr is

FineMed-fr is a large corpus of French medical text designed for pretraining language models, consisting of 21,064,129 documents and 19.21 billion words. Published by doctolib-lab, it addresses the scarcity, limited scale, and narrow stylistic diversity seen in traditional curated medical corpora by compiling French-language health writing directly from open-web sources.

The dataset is derived from three parent corpora: FineWeb-2, FinePDFs, and FineWiki. To support downstream research and flexible data filtering, every document in the corpus is annotated across three quality dimensions: 15 clinical and biomedical subdomains, an educational quality score adapted from FineWeb-Edu, and medical-term density based on extracted terminology spans.

FineMed-fr serves as the pretraining data source for medical language models such as DoctoBERT and DoctoModernBERT. It is released without filtering, enabling researchers to tune thresholds and select document subsets suited to tasks such as fill-mask representation learning or text generation.

How it was made

The corpus builds on upstream curation from FineWeb-2, FinePDFs, and FineWiki, including language identification, heuristic quality filtering, and deduplication. To isolate medical content from broader web text, a multilingual DeBERTa-v3 domain classifier covering 26 domains evaluates the first 512 tokens of each document, retaining only texts whose top prediction is Health. This prefiltering step retains approximately 5.3% of FineWeb-2, 7.7% of FinePDFs, and 1.5% of FineWiki documents.

Retained documents are processed through three lightweight annotator models trained via two-stage knowledge distillation from larger language models. A subdomain classifier evaluates the text and URL to assign one of 15 medical subdomains. An educational scorer assigns an educational-quality rating from 0 to 5 based on a medical adaptation of the FineWeb-Edu rubric. A medical-entity extractor labels spans across eight taxonomic classes derived from UMLS (disease, drug, body part, medical procedure, molecular marker, clinical device, vital function, and living beings), and calculates medical entity density from the proportion of characters within these spans over the middle 512-token window.

Key facts

Total documents
21,064,129
Total word count
19.21 billion words
Language
French (fra_Latn)
Data format
Parquet
Release version
v1.0 (June 2026)
Primary tasks
fill-mask, text-generation

What you can use it for

Medical language model pretraining
Pretrain French clinical or biomedical encoder and decoder models, providing general foundation representations as used in DoctoBERT and DoctoModernBERT.
Domain-specific quality filtering
Filter large-scale web text using educational quality scores and medical-entity density thresholds to construct high-signal biomedical training sets.
Subdomain-targeted fine-tuning
Isolate specialized subsets across 15 distinct health subdomains, such as clinical guidelines, clinical vignettes, pharmacology trials, or public health policy, to train task-specific models.

Explore the data

The schema, real rows, full-text search and a SQL filter — read in your browser, nothing downloaded.

Explore

Read the real rows without downloading anything

Reading rows…

LiveRead from doctolib-lab/finemed-fr at the moment you asked. Nothing is cached or stored — every row above came from that request.

How the columns are distributed

Over 1,988,236 rows of fineweb-2/train

date

datetime

domain_classification_best_class

string_label
  • Health100%

domain_classification_best_score

float
min
0.07
median
1.00
mean
0.94
max
1

domain_classification_scores

list
min
26
median
26
mean
26
max
26

dump

string_label
  • CC-MAIN-2022-402%
  • CC-MAIN-2020-402%
  • CC-MAIN-2022-212%

edu_quality_normalized_score

int
min
0
median
2
mean
2.08
max
5

edu_quality_score

float
min
-0.95
median
1.77
mean
2.08
max
5.72

file_path

string_text
min
125
median
126
mean
128.01
max
155

health_domain_classification_best_class

string_label
  • Public health, policy & programs22%
  • Patient education & lifestyle20%
  • Commercial & promotional13%

health_domain_classification_best_score

float
min
0.15
median
0.84
mean
0.79
max
1

health_domain_classification_scores

list
min
15
median
15
mean
15
max
15

id

string_text
min
47
median
47
mean
47
max
47

language

string_label
  • fra100%

language_score

float
min
0.82
median
1.00
mean
1.00
max
1.00

language_script

string_label
  • Latn100%

medical_entity_density

float
min
0
median
0.05
mean
0.08
max
1.12

minhash_cluster_size

int
min
1
median
6
mean
20.05
max
1.5M

num_words

int
min
39
median
339
mean
599.70
max
96,560

text

string_text
min
230
median
2,170
mean
3834.92
max
597k

top_langs

string_label
  • {}100%

url

string_text
min
13
median
74
mean
80.31
max
6,536

Strengths and limits

Good at

  • Provides extensive real-world French medical text spanning 19.2 billion words across web pages, documents, and encyclopaedic content.
  • Delivers rich multi-axis metadata, including 15 subdomains, graded educational quality, and UMLS-derived term entities.
  • Features a distillation-based annotation strategy that keeps annotations consistent while leaving the corpus unfiltered for tailored subset extraction.

Watch out for

  • The raw corpus is released unfiltered and requires user-defined thresholding to remove low-scoring or promotional content.
  • It consists of public web and PDF data that has not been clinically validated and does not constitute medical advice.
  • It may contain personal or protected health information present in public web data that was not removed or masked, requiring user-side de-identification before sensitive use.

Questions

Can I look inside finemed-fr without downloading it?

Yes. This page reads its schema, real rows and per-column statistics in the browser, with full-text search and a SQL filter. Nothing is downloaded to your machine.

What licence is finemed-fr under?

Its authors declare odc-by. Read the terms on the original page before reusing the data.

How is educational quality scored?

Educational quality is scored on a rubric adapted from FineWeb-Edu for medicine, provided both as a raw continuous score (edu_quality_score) and a rounded integer score from 0 to 5 (edu_quality_normalized_score), where 5 indicates excellent instructional utility.

How is medical entity density calculated?

Density is calculated as the fraction of characters covered by identified medical-term spans across eight entity classes, measured over the document's middle 512-token window or across the entire document if it contains fewer than 512 tokens.

What medical entity categories are annotated?

Terms are extracted into eight classes adapted from UMLS: disease, drug, body_part, medical_procedure, molecular_marker, clinical_device, vital_function, and living_beings.

How to cite it

Huang, Bofeng, Sun, Jacques, Bouchacourt, Diane, Barascud, Nicolas, and Fogel, Fajwel. Where Does the Signal Live? A Web Data Recipe for Medical Encoder Pretraining. arXiv:2606.22079, 2026.

Written from finemed-fr's own dataset card. Statements citing a figure that does not appear there are removed before publication. Licence and running details come from our registry.