Text Classification
Transformers
Safetensors
Turkish
bert
sentiment-analysis
aspect-based-sentiment-analysis
text-embeddings-inference
Instructions to use Sengil/ABSA-Turkish-bert-based-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Sengil/ABSA-Turkish-bert-based-small with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Sengil/ABSA-Turkish-bert-based-small")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Sengil/ABSA-Turkish-bert-based-small") model = AutoModelForSequenceClassification.from_pretrained("Sengil/ABSA-Turkish-bert-based-small", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -81,8 +81,8 @@ Use the code below to get started with the model:
|
|
| 81 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 82 |
|
| 83 |
# Load the model and tokenizer
|
| 84 |
-
|
| 85 |
-
|
| 86 |
|
| 87 |
# Example inference
|
| 88 |
text = "Servis çok yavaştı ama yemekler lezzetliydi."
|
|
|
|
| 81 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 82 |
|
| 83 |
# Load the model and tokenizer
|
| 84 |
+
tokenizer = AutoTokenizer.from_pretrained("Sengil/ABSA-Turkish-bert-based-small")
|
| 85 |
+
model = AutoModelForSequenceClassification.from_pretrained("Sengil/ABSA-Turkish-bert-based-small")
|
| 86 |
|
| 87 |
# Example inference
|
| 88 |
text = "Servis çok yavaştı ama yemekler lezzetliydi."
|