NLP - Sentiment Analysis Advanced
You run this code to analyze sentiment but get an error:
from transformers import AutoTokenizer, AutoModelForSequenceClassification
model = AutoModelForSequenceClassification.from_pretrained('nlptown/bert-base-multilingual-uncased-sentiment')
tokenizer = AutoTokenizer.from_pretrained('nlptown/bert-base-multilingual-uncased-sentiment')
inputs = tokenizer('Das ist schlecht', return_tensors='pt')
outputs = model(inputs)
What is the cause of the error?