Downloads · 30 days
21
35% of all-time downloads
clairedhx/camembert_dp_ft_top40_bdx
camembert_dp_ft_top40_bdx is a text classification model from clairedhx. Use it when you need a label for a piece of text. The card lists the license as apache-2.0.
Modèle de classification du Diagnostic Principal (40 codes CIM-10) fine-tuné sur des comptes rendus fictifs.
Downloads · 30 days
21
35% of all-time downloads
All-time downloads
60
Public
Parameters
111M
443 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors443 MB · 99%
From the Hugging Face model README
Modèle de classification du Diagnostic Principal (40 codes CIM-10) fine-tuné sur des comptes rendus fictifs.
from transformers import AutoTokenizer, AutoModelForSequenceClassification
repo = "clairedhx/camembert_dp_ft_top40_bdx"
tok = AutoTokenizer.from_pretrained(repo, use_fast=True)
model = AutoModelForSequenceClassification.from_pretrained(repo)
x = tok("Douleur thoracique avec sus-décalage ST...", return_tensors="pt")
pred_id = int(model(**x).logits.argmax(-1))
print(model.config.id2label[pred_id])