farnazzeidi
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -54,6 +54,9 @@ print(predictions)
|
|
54 |
|
55 |
### Load model directly
|
56 |
```python
|
|
|
|
|
|
|
57 |
# Load model and tokenizer
|
58 |
|
59 |
tokenizer = AutoTokenizer.from_pretrained("farnazzeidi/ner-legalturk-bert-model")
|
|
|
54 |
|
55 |
### Load model directly
|
56 |
```python
|
57 |
+
from transformers import AutoTokenizer, AutoModelForTokenClassification
|
58 |
+
import torch
|
59 |
+
|
60 |
# Load model and tokenizer
|
61 |
|
62 |
tokenizer = AutoTokenizer.from_pretrained("farnazzeidi/ner-legalturk-bert-model")
|