Update README.md
Browse files
README.md
CHANGED
@@ -62,6 +62,9 @@ for i, pred in enumerate(predictions[0]):
|
|
62 |
|
63 |
### Load model directly
|
64 |
```python
|
|
|
|
|
|
|
65 |
# Load model and tokenizer
|
66 |
tokenizer = AutoTokenizer.from_pretrained("farnazzeidi/multilabel-legalturk-bert-model")
|
67 |
model = AutoModelForSequenceClassification.from_pretrained("farnazzeidi/multilabel-legalturk-bert-model")
|
|
|
62 |
|
63 |
### Load model directly
|
64 |
```python
|
65 |
+
from transformers import AutoTokenizer, AutoModelForTokenClassification
|
66 |
+
import torch
|
67 |
+
|
68 |
# Load model and tokenizer
|
69 |
tokenizer = AutoTokenizer.from_pretrained("farnazzeidi/multilabel-legalturk-bert-model")
|
70 |
model = AutoModelForSequenceClassification.from_pretrained("farnazzeidi/multilabel-legalturk-bert-model")
|