Schandkroete/SLC_Sentiment_Analysis
Viewer โข Updated โข 175 โข 7
How to use Schandkroete/DBertSLC with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="Schandkroete/DBertSLC") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Schandkroete/DBertSLC")
model = AutoModelForSequenceClassification.from_pretrained("Schandkroete/DBertSLC", device_map="auto")