Views
No views yet
distilbert-base-uncased trained to classify text (news headlines, article titles, video names) into two categories: Clickbait and Non-Clickbait.Clickbait or Non-Clickbait) with a confidence score.bhargavasthet/clickbait_dataset, which contains a balanced collection of headlines explicitly labeled as clickbait (e.g., from Buzzfeed, Upworthy) and non-clickbait (e.g., from Reuters, The New York Times).marksverdhei/clickbait_title_classification validation set:0.9864 (98.6%)0.9862 (98.6%)0.9867 (98.6%)0.9857 (98.5%)0.0488distilbert-base-uncased (chosen for speed and efficiency)transformers library pipeline:1from transformers import pipeline
2
3# Load the clickbait classifier
4classifier = pipeline("text-classification", model="ENTUM-AI/distilbert-clickbait-classifier")
5
6# Test with a sensational headline
7text_1 = "10 Bizarre Facts About Apples That Will BLOW YOUR MIND! 🍎🤯"
8result_1 = classifier(text_1)
9print(f"Text: '{text_1}'\nPrediction: {result_1}\n")
10
11# Test with a normal news headline
12text_2 = "Apple releases new quarterly earnings report showing 5% growth."
13result_2 = classifier(text_2)
14print(f"Text: '{text_2}'\nPrediction: {result_2}")[{'label': 'Clickbait', 'score': 0.9921}]