PrkhrAwsti/Twitter_Sentiment_3M
Viewer โข Updated โข 3.14M โข 18 โข 3
How to use torbob69/bert-base-uncased-twitter-sentiment with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="torbob69/bert-base-uncased-twitter-sentiment") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("torbob69/bert-base-uncased-twitter-sentiment")
model = AutoModelForSequenceClassification.from_pretrained("torbob69/bert-base-uncased-twitter-sentiment", device_map="auto")Base model
google-bert/bert-base-uncased