Downloads · 30 days
4
13% of all-time downloads
JohanHeinsen/Runaway_advertisement_identifier_V1
Runaway_advertisement_identifier_V1 is a text classification model from JohanHeinsen. Use it when you need a label for a piece of text. It is set up for sentence-transformers. The card lists the license as apache-2.0.
This is a SetFit model that can be used for text classification. The model is designed to identify runaway advertisements from early modern Danish newspapers. It was created from a sample of 4000 texts, of which half…
Downloads · 30 days
4
13% of all-time downloads
All-time downloads
30
Public
Parameters
109M
438 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors438 MB · 100%
From the Hugging Face model README
This is a SetFit model that can be used for text classification. The model is designed to identify runaway advertisements from early modern Danish newspapers. It was created from a sample of 4000 texts, of which half where runaway advertisements. It was created by Johan Heinsen and Sofus Landor Dam.
Base model: JohanHeinsen/Old_News_Segmentation_SBERT_V0.1
Accuracy: 0.99333 F1: 0.99304
from setfit import SetFitModel
model = SetFitModel.from_pretrained("JohanHeinsen/Runaway_advertisement_identifier_V1")
preds = model(["Min tjenstepige løb væk fra mig i nat", "Soldaten Jonas er forsvundet fra mit hus. Enhver bedes paagribe ham, om muligt. Han bærer en sort frakke.", "Jeg savner min hund."])
label_map = {0: "nej", 1: "ja"}
predicted_labels = [label_map[int(preds[0])], label_map[int(preds[1])]]
predicted_labels