prahtz commited on
Commit
91f9f8d
·
verified ·
1 Parent(s): 9e67172

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +59 -0
README.md ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ id: cardio-ner-it-disease-cardioberta-multiclass
3
+ name: cardio-ner-it-disease-cardioberta-multiclass
4
+ description: Finetuned CardioBERTa.it multiclass model for detection of disease spans
5
+ in Italian cardiology text.
6
+ license: mit
7
+ language: it
8
+ tags:
9
+ - biomedical
10
+ - clinical ner
11
+ - span classification
12
+ - cardiology
13
+ - italian
14
+ base_model: DT4H/CardioBERTa.it
15
+ pipeline_tag: token-classification
16
+ ---
17
+
18
+ # Model Card for cardio-ner-it-disease-cardioberta-multiclass
19
+
20
+ This is a DT4H/CardioBERTa.it base model finetuned for span classification on Italian
21
+ cardiology clinical text, using IOB tagging.
22
+
23
+ ### Expected input and output
24
+ The input should be a string of **Italian** cardiology clinical text.
25
+
26
+ cardio-ner-it-disease-cardioberta-multiclass is a multiclass (single-entity-type) span classification model.
27
+ The classes that can be predicted are: DISEASE.
28
+
29
+ #### Extracting span classification from cardio-ner-it-disease-cardioberta-multiclass
30
+
31
+ ```python
32
+ from transformers import pipeline
33
+
34
+ ner_pipe = pipeline('ner',
35
+ model="cardio-ner-it-disease-cardioberta-multiclass",
36
+ tokenizer="cardio-ner-it-disease-cardioberta-multiclass",
37
+ aggregation_strategy="simple",
38
+ trust_remote_code=True)
39
+
40
+ named_ents = ner_pipe(SOME_TEXT)
41
+ ```
42
+
43
+ For text longer than the model's max sequence length, use a sliding stride:
44
+ ```python
45
+ named_ents = ner_pipe(SOME_TEXT, stride=125)
46
+ ```
47
+
48
+ # Data description
49
+
50
+ 10-fold cross-validation on the Italian portion of CardioCCC (DataTools4Heart Cardiology Clinical Case Corpus), batches 1+2, 508 documents, version `1_validated_without_sugs`. The uploaded checkpoint is the arithmetic mean of the 10 per-fold checkpoints ("Run 1"/weight-averaging in the CardioLM paper).
51
+
52
+ # Acknowledgement
53
+
54
+ This is part of the [DT4H project](https://www.datatools4heart.eu/).
55
+
56
+ For more details about training/eval and other scripts, see the CardioNER
57
+ [github repo](https://github.com/DataTools4Heart/CardioNER) and for more
58
+ information on the background, see DataTools4Heart's
59
+ [Huggingface](https://huggingface.co/DT4H)/[Website](https://www.datatools4heart.eu/).