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") # 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")Base model
google-bert/bert-base-uncased