Instructions to use nlpie/clinical-distilbert-i2b2-2010 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nlpie/clinical-distilbert-i2b2-2010 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="nlpie/clinical-distilbert-i2b2-2010")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("nlpie/clinical-distilbert-i2b2-2010") model = AutoModelForTokenClassification.from_pretrained("nlpie/clinical-distilbert-i2b2-2010", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
9e2fc5f
1
Parent(s): abb90ae
Update config.json
Browse files- config.json +7 -7
config.json
CHANGED
|
@@ -15,13 +15,13 @@
|
|
| 15 |
"dropout": 0.1,
|
| 16 |
"hidden_dim": 3072,
|
| 17 |
"id2label": {
|
| 18 |
-
"0": "
|
| 19 |
-
"1": "
|
| 20 |
-
"2": "
|
| 21 |
-
"3": "
|
| 22 |
-
"4": "
|
| 23 |
-
"5": "
|
| 24 |
-
"6": "
|
| 25 |
},
|
| 26 |
"initializer_range": 0.02,
|
| 27 |
"label2id": {
|
|
|
|
| 15 |
"dropout": 0.1,
|
| 16 |
"hidden_dim": 3072,
|
| 17 |
"id2label": {
|
| 18 |
+
"0": "I-treatment",
|
| 19 |
+
"1": "O",
|
| 20 |
+
"2": "B-test",
|
| 21 |
+
"3": "I-problem",
|
| 22 |
+
"4": "B-treatment",
|
| 23 |
+
"5": "I-test",
|
| 24 |
+
"6": "B-problem"
|
| 25 |
},
|
| 26 |
"initializer_range": 0.02,
|
| 27 |
"label2id": {
|