Downloads · 30 days
117
20% of all-time downloads
KnutJaegersberg/wikipedia_categories_setfit
wikipedia_categories_setfit is a sentence similarity model from KnutJaegersberg. Use it when you need a score for how close two texts are. It is set up for setfit. The card lists the license as mit.
This English model (e5-large as basis) predicts wikipedia categories (roundabout 37 labels). It is trained on the concatenation of the headlines of the lower level categories articles in few shot setting (i.e. 8 subca…
Downloads · 30 days
117
20% of all-time downloads
All-time downloads
599
Public
Repo size
4 GB
Likes
1
Public
Click a slice to open those files.
.bin1.3 GB · 100%
From the Hugging Face model README
This English model (e5-large as basis) predicts wikipedia categories (roundabout 37 labels). It is trained on the concatenation of the headlines of the lower level categories articles in few shot setting (i.e. 8 subcategories with their headline concatenations per level 2 category).
Accuracy on test data split is 85 %.
Note that these numbers are just an indicator that training worked, it will differ in production settings, which is why this classifier is meant for corpus exploration.
Use the wikipedia_categories_labels dataset as key.
from setfit import SetFitModel
Download from Hub and run inference model = SetFitModel.from_pretrained("KnutJaegersberg/wikipedia_categories_setfit")
Run inference preds = model(["i loved the spiderman movie!", "pineapple on pizza is the worst 🤮"])