Views
No views yet
1from transformers import pipeline
2
3classifier = pipeline("text-classification", model="uncleMehrzad/distilbert-base-uncased-imdb-sentiment")
4result = classifier("This movie was absolutely fantastic! The acting was superb.")
5print(result) # [{'label': 'POSITIVE', 'score': 0.999...}]