Update README.md
Browse files
README.md
CHANGED
@@ -59,7 +59,7 @@ The following hyperparameters were used during training:
|
|
59 |
```python
|
60 |
# Use a pipeline as a high-level helper
|
61 |
from transformers import pipeline
|
62 |
-
pipe = pipeline("token-classification", model="
|
63 |
result = pipe('45 year old woman diagnosed with CAD')
|
64 |
|
65 |
|
@@ -67,8 +67,8 @@ result = pipe('45 year old woman diagnosed with CAD')
|
|
67 |
# Load model directly
|
68 |
from transformers import AutoTokenizer, AutoModelForTokenClassification
|
69 |
|
70 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
71 |
-
model = AutoModelForTokenClassification.from_pretrained("
|
72 |
```
|
73 |
|
74 |
### Training results
|
|
|
59 |
```python
|
60 |
# Use a pipeline as a high-level helper
|
61 |
from transformers import pipeline
|
62 |
+
pipe = pipeline("token-classification", model="blaze999/clinical-ner", aggregation_strategy='simple')
|
63 |
result = pipe('45 year old woman diagnosed with CAD')
|
64 |
|
65 |
|
|
|
67 |
# Load model directly
|
68 |
from transformers import AutoTokenizer, AutoModelForTokenClassification
|
69 |
|
70 |
+
tokenizer = AutoTokenizer.from_pretrained("blaze999/clinical-ner")
|
71 |
+
model = AutoModelForTokenClassification.from_pretrained("blaze999/clinical-ner")
|
72 |
```
|
73 |
|
74 |
### Training results
|