Medical Pretraining Corpus · doctolib-lab
finemed-rephrased-fr
A 13.6-million-document French medical corpus rewritten by large language models to amplify clinical entity density.
What finemed-rephrased-fr is
FineMed-rephrased-fr is a large-scale corpus of synthetically rewritten French medical text created by doctolib-lab. It consists of 13.6 million documents comprising 4.53 billion words derived from FineMed-fr, an unfiltered medical dataset extracted from FineWeb-2, FinePDFs, and FineWiki. The dataset was designed to serve alongside the original source texts for pretraining French biomedical encoders such as DoctoBERT and DoctoModernBERT.
Web-scraped biomedical corpora often contain extensive non-medical filler, uninformative boilerplate, and optical character recognition errors that standard filtering leaves intact. FineMed-rephrased-fr addresses this by prompting an open-weights large language model to faithfully rephrase raw sources across diverse stylistic registers, audiences, and genres. This process eliminates non-medical filler while retaining factual clinical entities, more than doubling overall medical-term density compared to the original corpus.
The dataset provides both the newly generated texts and the source inputs, complete with recomputed quality ratings and medical entity annotations. This enables researchers to examine how synthetically altered term co-occurrences, register variations, and entity-dense reformulations influence downstream clinical language modelling.
How it was made
The rephrasing pipeline follows a two-stage medical adaptation of the Massive Genre-Audience (MGA) framework powered by Qwen3.5-35B-A3B. Prior to generating text, a coarse pre-screen filters FineMed-fr annotations to avoid processing texts that lack substantial medical subject matter. Stage 1 executes a medical-content gate to discard unsuitable documents, independently brainstorms candidate genres and audiences, pairs them for diversity, and samples one pair per document. Stage 2 rewrites the source for the assigned pair, eliminating non-medical filler while strictly preserving clinical entities, numbers, and facts. To introduce surface variation and mirror authentic clinical communication, the generation specifies formal versus telegraphic registers and controls abbreviation density across expanded, moderate, or heavy settings. Non-medical personally identifiable information is replaced with fictionalised values.
After generation, texts undergo quality filtering via DataTrove to enforce French language identification and remove repetitive text with a Gopher repetition filter. The final records are re-annotated for educational quality and medical-term density across eight Unified Medical Language System (UMLS)-adapted classes, while the underlying 15-class medical subdomain labels are carried over directly from the source.
Key facts
- Release version
- v1.0 (June 2026)
- Language
- French (fra_Latn)
- Document count
- 13,617,409
- Word count
- 4.53 billion words
- Underlying rewriting model
- Qwen3.5-35B-A3B (FP8)
- Median words per document
- 191 (overall)
- Mean medical entity density
- 0.164 (up from 0.079 in original texts)
- Primary format
- Optimised Parquet
What you can use it for
- Biomedical Language Model Pretraining
- Use the corpus alongside raw web text to train French clinical encoders such as DoctoBERT, exposing the models to dense medical vocabulary and diverse syntactic structures.
- Medical Register and Style Adaptation
- Train text-generation models to translate patient-facing communications, narrative forums, or journal literature into telegraphic clinical notes and standardised drug monographs.
- Clinical Named Entity Recognition (NER)
- Benchmark and train French entity extractors using parallel spans mapped across eight entity classes between original and rephrased documents.
- Data De-identification Robustness
- Evaluate de-identification pipelines on synthetically injected fictional names and addresses juxtaposed with authentic medical details.
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-rephrased-fr at the moment you asked. Nothing is cached or stored — every row above came from that request.
Strengths and limits
Good at
- More than doubles the average medical-term density relative to raw web extractions without degrading general educational quality.
- Cleans web artifacts, boilerplate, and PDF OCR corruptions that heuristic filtering pipelines cannot easily resolve.
- Provides paired source and synthetic text alongside identical entity annotations and quality scores for granular comparative filtering.
- Enforces faithful rewriting constraints that forbid the invention of new medical entities, facts, or diagnostic values.
Watch out for
- Synthetic texts may contain paraphrasing artifacts or stylistic anomalies characteristic of large language models.
- Instruction compliance is not validated on a per-document basis, and source-derived protected health information is intentionally retained rather than fully purged.
- The corpus is unvalidated for direct clinical usage and cannot serve as authoritative medical guidance.
Questions
Can I look inside finemed-rephrased-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-rephrased-fr under?
Its authors declare odc-by. Read the terms on the original page before reusing the data.
How does the medical entity density compare between original and rephrased texts?
The overall mean medical-term density increases from 0.079 in the source FineMed-fr texts to 0.164 in the rephrased documents, doubling the representation of clinical concepts across every medical subdomain.
What entity categories are tracked in the annotations?
The annotations record spans and densities across eight UMLS-adapted categories: disease, body_part, medical_procedure, drug, molecular_marker, clinical_device, vital_function, and living_beings.
What models were pretrained using this dataset?
The dataset was developed to pretrain the French biomedical encoder models DoctoBERT and DoctoModernBERT.
How can users isolate the highest quality subset of documents?
Records can be filtered directly in code by setting thresholds on the provided columns, such as keeping documents where edu_quality_normalized_score is 4 or higher and medical_entity_density is at least 0.10.
Written from finemed-rephrased-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.