DISTILBERT BASE UNCASED

#35
by JEEVANKUMAR2005 - opened

from transformers import pipeline

Load the pre-trained sentiment analysis pipeline

sentiment_analyzer = pipeline('sentiment-analysis')

Example function to determine sentiment

def analyze_sentiment(text):
result = sentiment_analyzer(text)
return result[0]

Sign up or log in to comment