janrodriguez commited on
Commit
9a8b232
·
verified ·
1 Parent(s): 78ae254

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +125 -0
README.md ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - es
4
+ tags:
5
+ - biomedical
6
+ - clinical
7
+ - EHR
8
+ - spanish
9
+ - NER
10
+ - named-entity-recognition
11
+ - biomedical
12
+ - clinical
13
+ - negation
14
+ - uncertainty
15
+ license: cc-by-4.0
16
+ metrics:
17
+ - precision
18
+ - recall
19
+ - f1
20
+ base_model:
21
+ - BSC-NLP4BIA/bsc-bio-ehr-es
22
+
23
+ model-index:
24
+ - name: BSC-NLP4BIA/negation-tagger
25
+ results:
26
+
27
+ - task:
28
+ type: token-classification
29
+ dataset:
30
+ name: NUBes_extended
31
+ type: NUBes_extended
32
+ metrics:
33
+ - name: precision (micro)
34
+ type: precision
35
+ value: 0.888
36
+ - name: recall (micro)
37
+ type: recall
38
+ value: 0.9079
39
+ - name: f1 (micro)
40
+ type: f1
41
+ value: 0.8979
42
+ widget:
43
+ - text: El diagnóstico definitivo de nuestro paciente fue de un Adenocarcinoma de pulmón cT2a cN3 cM1a Estadio IV (por una única lesión pulmonar contralateral) PD-L1 90%, EGFR negativo, ALK negativo y ROS-1 negativo.
44
+ - text: Durante el ingreso se realiza una TC, observándose un nódulo pulmonar en el LII y una masa renal derecha indeterminada. Se realiza punción biopsia del nódulo pulmonar, con hallazgos altamente sospechosos de carcinoma.
45
+ - text: Trombosis paraneoplásica con sospecha de hepatocarcinoma por imagen, sobre hígado cirrótico, en paciente con índice Child-Pugh B.
46
+
47
+ ---
48
+
49
+
50
+ # negation-tagger
51
+
52
+ ## Table of contents
53
+ <details>
54
+ <summary>Click to expand</summary>
55
+
56
+ - [Model description](#model-description)
57
+ - [How to use](#how-to-use)
58
+ - [Evaluation](#evaluation)
59
+ - [Limitations and bias](#limitations-and-bias)
60
+ - [Additional information](#additional-information)
61
+ - [Authors](#authors)
62
+ - [Contact information](#contact-information)
63
+ - [Funding](#funding)
64
+ - [Citing information](#citing-information)
65
+ - [Disclaimer](#disclaimer)
66
+
67
+ </details>
68
+
69
+ ## Model description
70
+ A fine-tuned version of the [bsc-bio-ehr-es](https://huggingface.co/PlanTL-GOB-ES/bsc-bio-ehr-es) model on the [NUBes](https://github.com/Vicomtech/NUBes-negation-uncertainty-biomedical-corpus) corpus extended with a small, unreleased dataset of clinical cases and electronic health records annotated using the same guidelines. The NER classes are: negation clause (NEG), negation scope (NSCO), uncertainty clause (UNC), and uncertainty scope (USCO).
71
+
72
+ ## How to use
73
+
74
+ ⚠ We recommend pre-tokenizing the input text into words instead of providing it directly to the model, as this is how the model was trained. Otherwise, the results and performance might get affected.
75
+
76
+ A usage example can be found [here](https://github.com/nlp4bia-bsc/hugging-face-pipeline/blob/main/simple_inference.py).
77
+
78
+ ## Limitations and bias
79
+ At the time of submission, no measures have been taken to estimate the bias embedded in the model. However, we are well aware that our models may be biased since the corpora have been collected using crawling techniques on multiple web sources. We intend to conduct research in these areas in the future, and if completed, this model card will be updated.
80
+
81
+ ## Evaluation
82
+
83
+ Strict (same class, exact boundary) and overlapping (same class, some overlap) metrics for the NUBes extended test set.
84
+
85
+ | Label | Precision | Recall | F-Score | Ov. Precision | Ov. Recall | Ov. F-Score |
86
+ |-----------|-----------|--------|---------|---------------|------------|-------------|
87
+ | NEG | 0.9554 | 0.9632 | 0.9593 | 0.9584 | 0.9663 | 0.9623 |
88
+ | NSCO | 0.8919 | 0.8969 | 0.8944 | 0.9487 | 0.9540 | 0.9514 |
89
+ | UNC | 0.8490 | 0.8694 | 0.8591 | 0.8792 | 0.9003 | 0.8896 |
90
+ | USCO | 0.7112 | 0.7959 | 0.7512 | 0.8267 | 0.9252 | 0.8732 |
91
+ | micro avg | 0.8880 | 0.9079 | 0.8979 | 0.9283 | 0.9491 | 0.9386 |
92
+
93
+ ## Additional information
94
+
95
+ ### Authors
96
+ NLP4BIA team at the Barcelona Supercomputing Center (nlp4bia@bsc.es).
97
+
98
+ ### Contact information
99
+ jan.rodriguez [at] bsc.es
100
+
101
+ ### Funding
102
+
103
+ More information will be available soon.
104
+
105
+ ### Citing information
106
+
107
+ Please cite the following works:
108
+
109
+ ```bibtex
110
+
111
+
112
+
113
+
114
+ ```
115
+
116
+ ### Disclaimer
117
+
118
+ The models published in this repository are intended for a generalist purpose and are available to third parties. These models may have bias and/or any other undesirable distortions.
119
+
120
+ When third parties deploy or provide systems and/or services to other parties using any of these models (or using systems based on these models) or become users of the models, they should note that it is their responsibility to mitigate the risks arising from their use and, in any event, to comply with applicable regulations, including regulations regarding the use of artificial intelligence.
121
+
122
+ ---
123
+ Los modelos publicados en este repositorio tienen una finalidad generalista y están a disposición de terceros. Estos modelos pueden tener sesgos y/u otro tipo de distorsiones indeseables.
124
+
125
+ Cuando terceros desplieguen o proporcionen sistemas y/o servicios a otras partes usando alguno de estos modelos (o utilizando sistemas basados en estos modelos) o se conviertan en usuarios de los modelos, deben tener en cuenta que es su responsabilidad mitigar los riesgos derivados de su uso y, en todo caso, cumplir con la normativa aplicable, incluyendo la normativa en materia de uso de inteligencia artificial.