Downloads · 30 days
18
7% of all-time downloads
salimalsazu/smart-category-detector-v1
smart-category-detector-v1 is a text classification model from salimalsazu. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
18
7% of all-time downloads
All-time downloads
267
Public
Parameters
67M
804 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
Lightweight Transformer-based classifier for short text categorization (60 categories)
smart-category-detector-v1 is a multi-class text
classification model designed to predict one of 60 categories from
short text inputs such as:
The model is optimized for fast inference and practical categorization tasks.
Field Value
Developer Salim Al Sazu
Hugging Face salimalsazu
Model Type DistilBERT Fine-tuned
Base Model distilbert-base-uncased
Task Multi-class Text Classification
Categories 60
Training Samples ~600,000
Language English
License MIT
The model was trained on a curated dataset of approximately 600,000 samples containing short text entries mapped to one of 60 categories.
Column Description
text Short input text category Target classification label
Example:
Samsung Galaxy S24 Ultra 512GB Mobile -> smartphones
Dhaka International Book Fair 2026 -> book_fair
Jamboo Burger Tk 220 -> burgers
Lenovo ThinkPad X1 Carbon Laptop -> laptops
Chicken Biryani Tk 180 -> biryani
The dataset is divided into three main groups, each containing 20 categories.
sports
music
tech_conference
education_seminar
business_summit
startup_pitch
job_fair
art_exhibition
cultural_festival
religious_event
political_rally
charity_event
workshop
webinar
networking_event
book_fair
food_festival
fashion_show
award_ceremony
hackathon
electronics
smartphones
laptops
fashion_clothing
shoes
beauty_cosmetics
grocery_food
furniture
home_appliances
kitchen_items
sports_equipment
books
toys
baby_products
health_supplements
automotive
gaming
jewelry
office_supplies
pet_products
burgers
pizza
sandwich_wraps
fries_sides
fried_snacks
street_food
biryani
rice_dishes
noodles_pasta
curries
bbq_grill
seafood_dishes
breakfast_items
soups_salads
cakes_pastries
ice_cream
traditional_sweets
coffee_tea
soft_drinks
shakes_smoothies
Input Prediction
Samsung Galaxy S24 Ultra 512GB Mobile smartphones Dhaka International Book Fair 2026 book_fair Jamboo Burger Tk 220 burgers HP Pavilion RTX 4060 Gaming Laptop laptops Beef Burger Combo Tk 350 burgers
from transformers import pipeline
clf = pipeline(
"text-classification",
model="salimalsazu/smart-category-detector-v1",
top_k=5
)
print(clf("Samsung Galaxy S24 Ultra 512GB Mobile"))
print(clf("Dhaka International Book Fair 2026"))
print(clf("Jamboo Burger Tk 220"))
Potential improvements include:
Salim Al Sazu
smart-category-detector-v1