Datasets:
text stringlengths 230 597k | id stringlengths 47 47 | dump stringclasses 96
values | url stringlengths 13 6.54k | date stringdate 2013-05-18 14:12:52 2024-04-25 16:01:54 | file_path stringlengths 125 155 | language stringclasses 1
value | language_score float64 0.82 1 | language_script stringclasses 1
value | minhash_cluster_size int64 1 1.5M | top_langs stringclasses 1
value | domain_classification_scores listlengths 26 26 | domain_classification_best_class stringclasses 1
value | domain_classification_best_score float64 0.07 1 | num_words int64 39 96.6k | health_domain_classification_scores listlengths 15 15 | health_domain_classification_best_class stringclasses 15
values | health_domain_classification_best_score float64 0.15 1 | edu_quality_score float64 -0.95 5.72 | edu_quality_normalized_score int64 0 5 | medical_entities dict | medical_entity_density float32 0 1.12 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
"La réforme du système du médicament, enfin (Rapport)\nRapport d'information n° 675 (2010-2011) (...TRUNCATED) | <urn:uuid:48bc1699-68cf-42ff-8e22-7af21aa3bfe3> | CC-MAIN-2014-23 | http://www.senat.fr/rap/r10-675-1/r10-675-1_mono.html | 2014-07-30T11:14:46Z | "s3://commoncrawl/crawl-data/CC-MAIN-2014-23/segments/1406510270399.7/warc/CC-MAIN-20140728011750-00(...TRUNCATED) | fra | 0.998239 | Latn | 38 | {} | [0.000027324213078827597,5.879978289158316e-6,8.916945262171794e-6,0.000015735147826489992,0.0000114(...TRUNCATED) | Health | 0.941391 | 78,979 | [0.0023193359375,0.00008249282836914062,0.0235595703125,0.00008440017700195312,0.7109375,0.000046968(...TRUNCATED) | Drugs, trials & regulation | 0.710938 | 5.34375 | 5 | {"disease":[],"drug":[],"body_part":[],"medical_procedure":[],"molecular_marker":[],"clinical_device(...TRUNCATED) | 0 |
"L'innovation au service de la santΓ© β De meilleurs soins et services par la recherche\nPlan stra(...TRUNCATED) | <urn:uuid:4615643d-222b-48d4-81a5-f333c1078c2c> | CC-MAIN-2014-23 | http://www.cihr-irsc.gc.ca/f/40490.html | 2014-07-29T02:34:49Z | "s3://commoncrawl/crawl-data/CC-MAIN-2014-23/segments/1406510264575.30/warc/CC-MAIN-20140728011744-0(...TRUNCATED) | fra | 0.99773 | Latn | 105 | {} | [1.966555771559797e-7,2.131713614517139e-7,1.3883422411709034e-7,4.6636071715511207e-7,1.17302313640(...TRUNCATED) | Health | 0.999993 | 15,651 | [0.005950927734375,0.000037670135498046875,0.00921630859375,0.00057220458984375,0.00102996826171875,(...TRUNCATED) | Public health, policy & programs | 0.925781 | 4.40625 | 4 | {"disease":[],"drug":[],"body_part":[],"medical_procedure":[],"molecular_marker":[],"clinical_device(...TRUNCATED) | 0 |
"Influenzavirus A sous-type H5N1\nVirus A (H5N1)\nVirus Influenza A, type H5N1 (en dorΓ©),\nΓ©levΓ©s(...TRUNCATED) | <urn:uuid:cff558a6-c4c1-4162-b44d-227e202a11f9> | CC-MAIN-2014-15 | http://www.territorioscuola.com/wikipedia/fr.wikipedia.php?title=Influenzavirus_A_sous-type_H5N1 | 2014-04-19T03:11:13Z | "s3://commoncrawl/crawl-data/CC-MAIN-2014-15/segments/1397609535745.0/warc/CC-MAIN-20140416005215-00(...TRUNCATED) | fra | 0.996613 | Latn | 157 | {} | [4.5429305828292854e-7,2.3446816044270236e-7,3.93929809661131e-7,6.26274129444937e-7,4.1327743360852(...TRUNCATED) | Health | 0.999985 | 14,844 | [0.035888671875,0.008056640625,0.0147705078125,0.0004596710205078125,0.006805419921875,0.00009202957(...TRUNCATED) | Public health, policy & programs | 0.914063 | 4.625 | 5 | {"disease":["grippe humaine","infection","pneumopathie"],"drug":[],"body_part":["bouche","nez","yeux(...TRUNCATED) | 0.128899 |
"Bulletin Officiel du Travail, de lEmploi et de la Formation Professionnelle\nNo 2004/11 du dimanche(...TRUNCATED) | <urn:uuid:63712714-ad77-4414-bdb1-b24e5233ffa5> | CC-MAIN-2014-23 | http://www.social-sante.gouv.fr/publications/picts/bo/20062004/A0110026.htm | 2014-07-31T11:26:05Z | "s3://commoncrawl/crawl-data/CC-MAIN-2014-23/segments/1406510273012.22/warc/CC-MAIN-20140728011753-0(...TRUNCATED) | fra | 0.993874 | Latn | 20 | {} | [0.000024550516172894277,0.00001998239713429939,0.00004393001654534601,0.00004314897523727268,0.0000(...TRUNCATED) | Health | 0.831587 | 13,722 | [0.00003409385681152344,0.000011146068572998047,0.000736236572265625,0.00002944469451904297,0.000027(...TRUNCATED) | Occupational health & safety | 0.957031 | 4.09375 | 4 | {"disease":[],"drug":[],"body_part":[],"medical_procedure":[],"molecular_marker":[],"clinical_device(...TRUNCATED) | 0.020946 |
"vendredi 30 avril 2010\nIl y a ici un article plus complet sur le sujet.\nEn particulier, il est Γ©(...TRUNCATED) | <urn:uuid:62fa435b-50aa-4c49-8198-2dc011549169> | CC-MAIN-2013-20 | http://mahamudras.blogspot.ca/2010_04_01_archive.html | 2013-06-20T06:55:22Z | "s3://commoncrawl/crawl-data/CC-MAIN-2013-20/segments/1368710605589/warc/CC-MAIN-20130516132325-0003(...TRUNCATED) | fra | 0.997604 | Latn | 76 | {} | [0.00013275888341013342,0.00007637999078724533,0.0000356611235474702,0.001392247388139367,0.00028236(...TRUNCATED) | Health | 0.842184 | 10,842 | [0.11474609375,0.0419921875,0.006988525390625,0.01263427734375,0.0026092529296875,0.0018234252929687(...TRUNCATED) | Others | 0.447266 | 0.953125 | 1 | {"disease":[],"drug":[],"body_part":[],"medical_procedure":[],"molecular_marker":[],"clinical_device(...TRUNCATED) | 0 |
"Achirite (Dioptase, Γmeraudine, Kirghisite)\nVoir Dioptase\n|Aegirine|\nC'est la pierre de la rigu(...TRUNCATED) | <urn:uuid:c60a53f3-d4a3-435e-896b-268cffdf3363> | CC-MAIN-2014-15 | http://www.grimoiredusage.com/pierresmineraux.htm | 2014-04-23T19:34:16Z | "s3://commoncrawl/crawl-data/CC-MAIN-2014-15/segments/1398223203422.8/warc/CC-MAIN-20140423032003-00(...TRUNCATED) | fra | 0.997355 | Latn | 19 | {} | [0.0000533917045686394,0.000022287222236627713,5.211063125898363e-6,0.0009159371838904917,0.00005762(...TRUNCATED) | Health | 0.996718 | 10,426 | [0.000011026859283447266,3.6507844924926758e-6,8.64267349243164e-6,0.000675201416015625,2.9355287551(...TRUNCATED) | Wellness, supplements & CAM | 0.996094 | 0.59375 | 1 | {"disease":["anΓ©mie","dΓ©pression","fracture","hypersensibilitΓ©","inflammation des articulations",(...TRUNCATED) | 0.113099 |
"Le point de vue des acteurs sur la place de la famille dans les services de rΓ©adaptation en toxico(...TRUNCATED) | <urn:uuid:1e915b56-012c-4b97-a153-035eb0e5c85f> | CC-MAIN-2014-10 | http://www.erudit.org/revue/dss/2002/v1/n1/000418ar.html?vue=integral | 2014-03-13T06:18:38Z | "s3://commoncrawl/crawl-data/CC-MAIN-2014-10/segments/1394026215078/warc/CC-MAIN-20140305133015-0009(...TRUNCATED) | fra | 0.995804 | Latn | 80 | {} | [6.922038551238074e-7,5.199092925067816e-7,2.000822831860205e-7,4.5034727236270555e-7,4.328207978687(...TRUNCATED) | Health | 0.999985 | 9,835 | [0.00537109375,0.138671875,0.2119140625,0.0004425048828125,0.000492095947265625,0.000949859619140625(...TRUNCATED) | Health services & facilities | 0.259766 | 4.78125 | 5 | {"disease":[],"drug":[],"body_part":[],"medical_procedure":[],"molecular_marker":[],"clinical_device(...TRUNCATED) | 0 |
"Futurs mΓ©decins : rΓ©former leur enseignement, une nΓ©cessitΓ© !\nLien permanent\nMerci de ne PAS (...TRUNCATED) | <urn:uuid:6e64c689-6bc5-4ba1-97b2-1dd962d62265> | CC-MAIN-2013-20 | http://actuagencebiomed.blogspot.com/2010_11_01_archive.html | 2013-05-24T06:31:01Z | "s3://commoncrawl/crawl-data/CC-MAIN-2013-20/segments/1368704253666/warc/CC-MAIN-20130516113733-0003(...TRUNCATED) | fra | 0.989393 | Latn | 6 | {} | [4.710353209702589e-7,2.552243358877604e-7,2.4016753741307184e-7,5.73795091440843e-7,2.9957266178826(...TRUNCATED) | Health | 0.999986 | 9,410 | [0.2294921875,0.037109375,0.263671875,0.007537841796875,0.068359375,0.006622314453125,0.029418945312(...TRUNCATED) | Clinical guidelines & pathways | 0.263672 | 3.4375 | 3 | {"disease":["handicap","maladie"],"drug":[],"body_part":["embryon"],"medical_procedure":[],"molecula(...TRUNCATED) | 0.028719 |
"\n\nParticularités de la structure endocrinienne de temps dans l'adulte-début noninsulin-dépenda(...TRUNCATED) | <urn:uuid:c12126f7-d7e5-454e-8937-f81d2bc94d23> | CC-MAIN-2014-15 | http://french.lef.org/protocols/abstracts/abstr-042d.htm | 2014-04-25T03:04:48Z | "s3://commoncrawl/crawl-data/CC-MAIN-2014-15/segments/1398223207985.17/warc/CC-MAIN-20140423032007-0(...TRUNCATED) | fra | 0.995124 | Latn | 7 | {} | [3.646216555353021e-7,2.0584137416790327e-7,2.4735055603741785e-7,2.719426959174598e-7,2.39476861452(...TRUNCATED) | Health | 0.999995 | 8,086 | [0.9296875,0.0087890625,0.017578125,0.0003261566162109375,0.02294921875,0.0001277923583984375,0.0000(...TRUNCATED) | Biomedical & mechanistic science | 0.929688 | 4.8125 | 5 | {"disease":["blessure","diabète glomérulaires"],"drug":["BSO","N-acétylcystéine"],"body_part":["(...TRUNCATED) | 0.223329 |
"Cancer Tutor Est CentrΓ© sur les Rares Traitements Alternatifs du Cancer\nAssez Puissants Pour Donn(...TRUNCATED) | <urn:uuid:1ae5464c-d6f6-4995-866d-e4ae8ff9a29b> | CC-MAIN-2014-35 | http://www.cancertutor.com/index_french/ | 2014-09-02T04:14:36Z | "s3://commoncrawl/crawl-data/CC-MAIN-2014-35/segments/1409535921550.2/warc/CC-MAIN-20140901014521-00(...TRUNCATED) | fra | 0.99143 | Latn | 37 | {} | [2.1343907974369358e-7,2.398789149538061e-7,1.7404281038579938e-7,2.070131728260094e-7,3.21763110378(...TRUNCATED) | Health | 0.999993 | 8,018 | [0.0016326904296875,0.0006561279296875,0.03759765625,0.08740234375,0.00543212890625,0.00011777877807(...TRUNCATED) | Wellness, supplements & CAM | 0.648438 | 1.507813 | 2 | {"disease":["Cancer"],"drug":[],"body_part":[],"medical_procedure":[],"molecular_marker":[],"clinica(...TRUNCATED) | 0.010095 |
FineMed-fr
π€ Blog | π» Code | π FineMed | π©Ί DoctoBERT
π Introduction
FineMed-fr is a large, openly available corpus of French medical text for language-model pretraining: 21.1M documents and 19.2B words of real-world medical writing, annotated along several quality axes.
The corpus is drawn from three heterogeneous open-web sources (FineWeb-2, FinePDFs, and FineWiki), which together provide the scale, source diversity, and stylistic range that curated medical corpora often lack. We keep only the French medical content, then label every surviving document along three axes:
- Subdomain: which of 15 medical subdomains the document belongs to, separating biomedical and clinical writing (e.g. scientific papers, clinical guidelines) from consumer-facing material (e.g. wellness blogs, commercial health pages).
- Educational quality: how instructive the document is for medical education, scored 0β5 on an additive rubric adapted from FineWeb-Edu.
- Medical-term density: the richness of medical terminology, measured as the fraction of characters that fall inside extracted medical-term spans.
We release the corpus unfiltered so you can set your own thresholds on the annotation columns to fit your task.
π What's New
- v1.0 (2026-06): first release.
π How to Use
from datasets import load_dataset
ds = load_dataset("doctolib-lab/finemed-fr", split="train") # fineweb-2 (default)
ds = load_dataset("doctolib-lab/finemed-fr", "finepdfs", split="train")
ds = load_dataset("doctolib-lab/finemed-fr", "finewiki", split="train")
Because the corpus is released unfiltered, downstream filtering is left to the user. For example, to retain only high-quality, term-dense documents:
filtered = ds.filter(
lambda x: x["edu_quality_normalized_score"] >= 4 and x["medical_entity_density"] >= 0.10,
num_proc=8,
)
π§ Curation Pipeline
The three source corpora have already undergone standard LLM-pretraining curation upstream (language ID, heuristic quality filtering, deduplication), which we inherit as a quality baseline. Beyond this baseline, we apply two further steps:
Medical prefiltering. Medical content constitutes only a small fraction of each source and is further diluted by commercial pages. We run a multilingual domain classifier (a DeBERTa-v3 covering 26 domains) over the first 512 tokens of each document and retain only those whose top-1 predicted label is
Health, reducing each source to 5.3% of FineWeb-2, 7.7% of FinePDFs, and 1.5% of FineWiki (by document).Multi-axis annotation. Every retained document is then labeled by three dedicated lightweight annotators, each fine-tuned via two-stage knowledge distillation from LLM teachers (a smaller teacher providing high-volume supervision, followed by a larger teacher providing high-quality supervision):
- A subdomain classifier takes the document text and URL as input and predicts one of 15 medical subdomains;
- An educational-quality scorer takes the document text and regresses a 0β5 educational-quality score;
- A medical-entity extractor identifies medical-term spans, whose character coverage defines the medical-term density.
Distilling each annotator from its LLM teachers, rather than applying an LLM directly across the full corpus, reduces annotation cost by roughly an order of magnitude.
Subdomain. health_domain_classification_best_class is one of these 15 values:
| subdomain | description |
|---|---|
| Clinical cases & vignettes | Single-patient narratives: presentation, evaluation, management, outcomes; case-based teaching. |
| Clinical guidelines & pathways | Non-patient-specific recommendations, algorithms, and standards; named guidelines or consensus statements. |
| Patient education & lifestyle | Consumer-facing explanations and how-to advice on prevention, self-care, symptoms, diet, fitness, mental well-being. |
| Wellness, supplements & CAM | Botanicals, vitamins, supplements, complementary or alternative therapies outside mainstream clinical guidance. |
| Public health, policy & programs | Population surveillance, epidemiology, screening, laws and regulation, financing and insurance, community guidance. |
| Commercial & promotional | Marketing or sales content: pricing, booking, calls-to-action, affiliate/SEO, comparative ads, testimonials. |
| Drugs, trials & regulation | Drug development and evaluation: clinical trials, approvals and labels, PK/PD, safety monitoring, pharmacovigilance. |
| Biomedical & mechanistic science | Experimental or preclinical research: labs, omics, pathways, cell/animal models, assays, mechanisms. |
| Medical devices, diagnostics & imaging | Device or modality descriptions and clinical use; diagnostics, wearables, sensors, imaging. |
| Health IT, telemedicine & operations | EHR/EMR, data standards, interoperability, analytics, telemedicine, workflow, staffing, procurement, logistics. |
| Occupational health & safety | Workplace hazards, exposures, PPE, training, and compliance with occupational regulations. |
| Health workforce education & training | Professional curricula, CME, certification, simulation, residency/fellowship information. |
| Health services & facilities | Neutral descriptions of care-delivery models, service lines, facility capabilities, long-term/residential care. |
| Other health | Health-related content that is unclear or insufficient to classify under the other subdomains. |
| Others | Not clearly health-related, too brief, or lacking detail (e.g. navigation/boilerplate). |
Medical-term classes. medical_entities groups the extracted terms under these 8 keys (taxonomy adapted from UMLS):
| class | covers |
|---|---|
disease |
disease, syndrome, infection, cancer, injury, symptom, clinical finding, mental disorder |
drug |
prescription medication, vaccine, therapeutic compound, drug class, contrast agent |
body_part |
organ, tissue, bone, muscle, blood vessel, nerve, cell, body fluid, anatomical region |
medical_procedure |
surgery, diagnostic test, medical examination, laboratory test, imaging procedure |
molecular_marker |
gene, protein, enzyme, receptor, genetic variant, biochemical analyte |
clinical_device |
surgical tool, implant, prosthetic, diagnostic scanner, monitoring equipment |
vital_function |
heart rate, blood pressure, respiratory rate, temperature, oxygen saturation |
living_beings |
bacterium, virus, fungus, parasite, pathogen, model organism |
Educational quality. edu_quality_normalized_score runs from 0 (not useful) to 5 (excellent) for
medical education; edu_quality_score is the raw value before rounding. The exact rubric used to prompt
the LLM annotators is in edu_quality_annotation_prompt.txt.
π Dataset Statistics
Each source is provided as a separate config. Per-source statistics:
| config | source | documents | words | median words/doc |
|---|---|---|---|---|
fineweb-2 |
FineWeb-2 (fra_Latn) | 18,888,234 | 12.03 B | 346 |
finepdfs |
FinePDFs (fra_Latn) | 2,137,275 | 7.16 B | 766 |
finewiki |
FineWiki (frwiki) | 38,620 | 26.55 M | 283 |
| total | 21,064,129 | 19.21 B | 369 |
Annotation values vary substantially across subdomains. Distribution of educational-quality scores across the 15 subdomains:
Distribution of medical-term density across the same subdomains:
Per-source versions of both plots are available in assets/.
π Data Fields
All configs share these columns:
| column | type | description |
|---|---|---|
text |
string | document text |
id |
string | source document id (matches the id in the source dataset) |
url |
string | source URL |
num_words |
int64 | whitespace word count |
domain_classification_best_class / _best_score / _scores |
string / double / list | prefilter domain classifier output (the medical subset is Health) |
health_domain_classification_best_class / _best_score / _scores |
string / double / list | 15-class medical-subdomain classifier output |
edu_quality_score / edu_quality_normalized_score |
double / int64 | educational-quality scorer (FineWeb-Edu rubric adapted to medicine); raw score and its 0β5 rounded form |
medical_entities |
struct | extracted medical terms grouped into 8 classes; each class is a deduplicated list of surface strings |
medical_entity_density |
float | fraction of characters covered by those terms, measured over the document's middle 512-token window (or the whole document when it is shorter than 512 tokens) |
Source-specific provenance columns:
fineweb-2:dump,date,file_path,language,language_score,language_script,minhash_cluster_size,top_langsfinepdfs:dump,date,file_path,offset,token_count,language,page_average_lid,page_average_lid_score,full_doc_lid,full_doc_lid_score,per_page_languages,is_truncated,extractor,page_endsfinewiki:wikiname,page_id,title,date_modified,in_language,wikidata_id,bytes_html,wikitext,version,infoboxes,has_math
Example record. A full fineweb-2 row (provenance columns differ for the other configs):
{
"text": "Attention L'actualitΓ© thΓ©rapeutique sur le VIH Γ©volue rapidement ... Pneumopathie bactΓ©rienne chez les patients infectΓ©s par le VIH ...",
"id": "<urn:uuid:2cc73ad5-d0ae-483c-8b59-78147734bcb8>",
"dump": "CC-MAIN-2014-10",
"url": "http://www.actions-traitements.org/spip.php?article1961",
"date": "2014-03-10T06:59:32Z",
"file_path": "s3://commoncrawl/crawl-data/CC-MAIN-2014-10/segments/.../CC-MAIN-...-00091-....warc.gz",
"language": "fra",
"language_score": 0.9974,
"language_script": "Latn",
"minhash_cluster_size": 7,
"top_langs": "{}",
"domain_classification_scores": [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
"domain_classification_best_class": "Health",
"domain_classification_best_score": 1.0,
"num_words": 600,
"health_domain_classification_scores": [0.0092, 0.0349, 0.832, 0.0, 0.0267, 0.0, 0.0001, 0.0001, 0.0001, 0.0, 0.0001, 0.0, 0.0043, 0.0933, 0.0],
"health_domain_classification_best_class": "Clinical guidelines & pathways",
"health_domain_classification_best_score": 0.832,
"edu_quality_score": 4.75,
"edu_quality_normalized_score": 5,
"medical_entities": {
"disease": ["pneumonie", "méningites", "fièvre", "sida", "..."],
"drug": ["traitement antirΓ©troviral"],
"body_part": [], "medical_procedure": [], "molecular_marker": [],
"clinical_device": [], "vital_function": [],
"living_beings": ["Streptococcus pneumoniae", "Klebsiella pneumoniae", "VIH", "..."]
},
"medical_entity_density": 0.242
}
(a real FineWeb-2 row; text, file_path, and entity lists trimmed for display)
βοΈ Licensing
FineMed-fr inherits the licenses of its source datasets:
fineweb-2andfinepdfs: ODC-BY 1.0 (as in the upstream FineWeb releases)finewiki: CC BY-SA 4.0 (derived from Wikipedia)
β οΈ Considerations
FineMed-fr consists of public text from the web, PDFs, and Wikipedia, restricted to medical content. As real-world web data, it may contain personal information, and medical pages may reference protected health information. All such content was already publicly accessible, and we did not remove or mask it. The corpus has not been clinically validated and does not constitute medical advice. Users handling personal or health data should perform de-identification before use.
ποΈ Acknowledgments
This work was granted access to the HPC resources of IDRIS (Jean Zay) under the allocations 2025-AD011016291 and 2026-A0200617487 made by GENCI.
- Downloads last month
- 120

