Update README.md
Browse files
README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
---
|
2 |
license: apache-2.0
|
3 |
datasets:
|
4 |
-
-
|
5 |
language:
|
6 |
- en
|
7 |
metrics:
|
@@ -33,6 +33,7 @@ dr. Izidor Mlakar, Rigon Sallauka, dr. Umut Arioz, dr. Matej Rojc
|
|
33 |
- **Applications**: Suitable for healthcare professionals, clinical data analysis, and research into medical text processing.
|
34 |
- **Supported Entity Types**:
|
35 |
- `PROBLEM`: Diseases, symptoms, and medical conditions.
|
|
|
36 |
- `TEST`: Diagnostic procedures and laboratory tests.
|
37 |
- `TREATMENT`: Medications, therapies, and other medical interventions.
|
38 |
|
@@ -69,7 +70,7 @@ You can easily use this model with the Hugging Face `transformers` library. Here
|
|
69 |
```python
|
70 |
from transformers import AutoTokenizer, AutoModelForTokenClassification
|
71 |
|
72 |
-
model_name = "
|
73 |
|
74 |
# Load the tokenizer and model
|
75 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
@@ -79,5 +80,4 @@ model = AutoModelForTokenClassification.from_pretrained(model_name)
|
|
79 |
text = "The patient complained of severe headaches and nausea that had persisted for two days. To alleviate the symptoms, he was prescribed paracetamol and advised to rest and drink plenty of fluids."
|
80 |
|
81 |
# Tokenize the input text
|
82 |
-
inputs = tokenizer(text, return_tensors="pt")
|
83 |
-
|
|
|
1 |
---
|
2 |
license: apache-2.0
|
3 |
datasets:
|
4 |
+
- HUMADEX/english_ner_dataset
|
5 |
language:
|
6 |
- en
|
7 |
metrics:
|
|
|
33 |
- **Applications**: Suitable for healthcare professionals, clinical data analysis, and research into medical text processing.
|
34 |
- **Supported Entity Types**:
|
35 |
- `PROBLEM`: Diseases, symptoms, and medical conditions.
|
36 |
+
|
37 |
- `TEST`: Diagnostic procedures and laboratory tests.
|
38 |
- `TREATMENT`: Medications, therapies, and other medical interventions.
|
39 |
|
|
|
70 |
```python
|
71 |
from transformers import AutoTokenizer, AutoModelForTokenClassification
|
72 |
|
73 |
+
model_name = "HUMADEX/english_medical_ner"
|
74 |
|
75 |
# Load the tokenizer and model
|
76 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
|
|
80 |
text = "The patient complained of severe headaches and nausea that had persisted for two days. To alleviate the symptoms, he was prescribed paracetamol and advised to rest and drink plenty of fluids."
|
81 |
|
82 |
# Tokenize the input text
|
83 |
+
inputs = tokenizer(text, return_tensors="pt")
|
|