turkish-product-comment-sentiment-classification 5c150b2
Gürkan Şahin (ETIYA) commited on
How to use gurkan08/turkish-product-comment-sentiment-classification with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="gurkan08/turkish-product-comment-sentiment-classification") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("gurkan08/turkish-product-comment-sentiment-classification")
model = AutoModelForSequenceClassification.from_pretrained("gurkan08/turkish-product-comment-sentiment-classification", device_map="auto")