Downloads · 30 days
0
snowfire/tagwise-cattagger1
tagwise-cattagger1 is a text classification model from snowfire. Use it when you need a label for a piece of text. The card lists the license as apache-2.0.
A multi-class text category tagger: given a text description it returns one of 8 categories with a confidence score, for auto-cataloguing. This repository contains two models:
Downloads · 30 days
0
Access
Public
Updated Sep 2, 2026
Repo size
96.2 MB
Likes
0
Public
Click a slice to open those files.
.safetensors90.9 MB · 94%
From the Hugging Face model README
A multi-class text category tagger: given a text description it returns one of 8 categories with a confidence score, for auto-cataloguing. This repository contains two models:
cattagger1/ — a fine-tuned MiniLM-L6 encoder (CatTagger-1).baseline_tfidf_logreg.joblib — a TF-IDF + logistic-regression reference tagger.| Model | Macro-F1 |
|---|---|
| TF-IDF baseline | 0.85 |
| CatTagger-1 (MiniLM) | 0.82 |
Honest finding: on this long, keyword-rich corpus the simple TF-IDF baseline outperforms the fine-tuned transformer on every category. Both are provided so you can pick the right trade-off.
Apache-2.0 — free to use, modify, and redistribute with attribution.
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
repo = "snowfire/tagwise-cattagger1"
tok = AutoTokenizer.from_pretrained(repo, subfolder="cattagger1")
model = AutoModelForSequenceClassification.from_pretrained(repo, subfolder="cattagger1").eval()
text = "my mortgage escrow account was mishandled by the loan servicer"
enc = tok(text, truncation=True, max_length=160, return_tensors="pt")
with torch.no_grad():
probs = model(**enc).logits.softmax(-1)[0]
print(model.config.id2label[int(probs.argmax())], float(probs.max()))
Developed on a public-domain text corpus, organised into 8 balanced categories.