Update README.md
Browse files
README.md
CHANGED
|
@@ -12,6 +12,12 @@ tags:
|
|
| 12 |
- bert
|
| 13 |
---
|
| 14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
#### Summary
|
| 16 |
|
| 17 |
Sentiment classification based on Transformers is a topic that has recently been widely studied in
|
|
|
|
| 12 |
- bert
|
| 13 |
---
|
| 14 |
|
| 15 |
+
# Load model directly
|
| 16 |
+
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 17 |
+
|
| 18 |
+
tokenizer = AutoTokenizer.from_pretrained("Marzu39/bert-turkish-text-classification")
|
| 19 |
+
model = AutoModelForSequenceClassification.from_pretrained("Marzu39/bert-turkish-text-classification")
|
| 20 |
+
|
| 21 |
#### Summary
|
| 22 |
|
| 23 |
Sentiment classification based on Transformers is a topic that has recently been widely studied in
|