smarsol commited on
Commit
75c1c62
verified
1 Parent(s): 1668a37

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +87 -3
README.md CHANGED
@@ -1,3 +1,87 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - es
5
+ pipeline_tag: relation-classification
6
+ tags:
7
+ - sentence-transformers
8
+ - relation-classification
9
+ - bert
10
+ - biomedical
11
+ - lexical semantics
12
+ - bionlp
13
+ ---
14
+
15
+ # Biomedical relation classifier with Transformers in Spanish
16
+
17
+ ## Table of contents
18
+ <details>
19
+ <summary>Click to expand</summary>
20
+
21
+ - [Model description](#model-description)
22
+ - [Intended uses and limitations](#intended-use)
23
+ - [How to use](#how-to-use)
24
+ - [Training](#training)
25
+ - [Evaluation](#evaluation)
26
+ - [Additional information](#additional-information)
27
+ - [Author](#author)
28
+ - [Licensing information](#licensing-information)
29
+ - [Citation information](#citation-information)
30
+ - [Disclaimer](#disclaimer)
31
+
32
+ </details>
33
+
34
+ ## Model description
35
+ This is a Transformer's [AutoModelForSequenceClassification](https://huggingface.co/docs/transformers/model_doc/auto#transformers.AutoModelForSequenceClassification) trained for biomedical text pairs classification in Spanish.
36
+
37
+ ## Intended uses and limitations
38
+ The model is prepared to classify hierarchical relations among medical terms. This includes the following types of relations: BROAD, EXACT, NARROW, NO_RELATION.
39
+
40
+ ## How to use
41
+ This model is implemented as part of the KeyCARE library. Install first the keycare module to call the SetFit classifier:
42
+
43
+ ```bash
44
+ python -m pip install keycare
45
+ ```
46
+
47
+ You can then run the KeyCARE pipeline that uses the SetFit model:
48
+
49
+ ```python
50
+ from keycare install RelExtractor.RelExtractor
51
+
52
+ # initialize the termextractor object
53
+ relextractor = RelExtractor()
54
+ # Run the pipeline
55
+ source = ["c谩ncer", "enfermedad de pulm贸n", "mastectom铆a radical izquierda", "laparoscopia"]
56
+ target = ["c谩ncer de mama", "enfermedad pulmonar", "mastectom铆a", "Streptococus pneumoniae"]
57
+ relextractor(source, target)
58
+ # You can also access the class storing the SetFit model
59
+ relator = relextractor.relation_method
60
+ ```
61
+
62
+ ## Training
63
+ The model has been trained using the hirerarchical structure of [SNOMED-CT](https://www.snomed.org/) mapped to the medical terms present in [UMLS](https://www.nlm.nih.gov/research/umls/index.html).
64
+
65
+ ## Evaluation
66
+ To be published
67
+
68
+ ## Additional information
69
+
70
+ ### Author
71
+ NLP4BIA at the Barcelona Supercomputing Center
72
+
73
+ ### Licensing information
74
+ [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0)
75
+
76
+ ### Citation information
77
+ To be published
78
+
79
+ ### Disclaimer
80
+ <details>
81
+ <summary>Click to expand</summary>
82
+
83
+ 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.
84
+
85
+ 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.
86
+
87
+ </details>