Downloads · 30 days
15
22% of all-time downloads
JohanHeinsen/Labour_ads_demand
Labour_ads_demand is a text classification model from JohanHeinsen. Use it when you need a label for a piece of text. It is set up for setfit.
This is a SetFit model that can be used for Text Classification. This SetFit model uses JohanHeinsen/OldNewsSegmentationSBERTV0.1 as the Sentence Transformer embedding model. A LogisticRegression instance is used for…
Downloads · 30 days
15
22% of all-time downloads
All-time downloads
67
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. This SetFit model uses JohanHeinsen/Old_News_Segmentation_SBERT_V0.1 as the Sentence Transformer embedding model. A LogisticRegression instance is used for classification.
The model has been trained using an efficient few-shot learning technique that involves:
| Label | Examples |
|---|---|
| 0 | <ul><li>'En skikkelig Karl fra Jylland søger Condition til St. Hansdag og er at finde paa Christianshavn paa Hiørnet af Dronningensgade og Torvegagen i Kielderen i Nr. 359.'</li><li>'En Amme søger Plads, eller i Mangel som Goldamme, er at finde i Nyehavn, anden Port fra Charlottenborg.'</li><li>'En skikkelig Pige, som kan forevise de bedste Skudsmaale, ønsker sig en Tieneste som Frøkenpige eller Stuepige til 1ste Novbr. enten paa en Herregaard eller hos en honet Familie i Kiøbstæden. Hun anvises fra Adressecomtoiret.'</li></ul> |
| 1 | <ul><li>'En skikkelig Jomfru, som forstaaer godt Madlavning, Vadsk, Reengjøren og deslige, kan faae Condition paa Vesterbro Nr. 63, men uden gode Recommendationer om Troskab og god Opførsel nytter det ikke at mælde sig.'</li><li>'En Pige, som kan paatage sig et Kjøkken, kan strax faae Condition, naar hun mælder sig i Toldbodgaden Nr. 44, i Stuen.'</li><li>'En Goldamme kan strax faae Condition i Kronprindsensgaden Nr. 39, 3die Sal.'</li></ul> |
| Label | Accuracy | F1 | Precision | Recall |
|---|---|---|---|---|
| all | 0.9434 | 0.9239 | 0.8922 | 0.9579 |
First install the SetFit library:
pip install setfit
Then you can load this model and run inference.
from setfit import SetFitModel
# Download from the 🤗 Hub
model = SetFitModel.from_pretrained("setfit_model_id")
# Run inference
preds = model("En Pige søger Tieneste hos eenlige Folk, eller hvor der er et Par Børn at passe, anvises i lille Færgestrædet Nr. 231.")
<!--
### Downstream Use
*List how someone could finetune this model on their own dataset.*
-->
<!--
### Out-of-Scope Use
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
-->
<!--
## Bias, Risks and Limitations
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
-->
<!--
### Recommendations
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
-->
| Training set | Min | Median | Max |
|---|---|---|---|
| Word count | 8 | 32.1640 | 176 |
| Label | Training Sample Count |
|---|---|
| 0 | 389 |
| 1 | 227 |
| Epoch | Step | Training Loss | Validation Loss |
|---|---|---|---|
| 0.0011 | 1 | 0.0621 | - |
| 0.0541 | 50 | 0.2937 | - |
| 0.1082 | 100 | 0.1367 | - |
| 0.1623 | 150 | 0.037 | - |
| 0.2165 | 200 | 0.0215 | - |
| 0.2706 | 250 | 0.0165 | - |
| 0.3247 | 300 | 0.0103 | - |
| 0.3788 | 350 | 0.0134 | - |
| 0.4329 | 400 | 0.0146 | - |
| 0.4870 | 450 | 0.003 | - |
| 0.5411 | 500 | 0.0028 | - |
| 0.5952 | 550 | 0.0027 | - |
| 0.6494 | 600 | 0.0039 | - |
| 0.7035 | 650 | 0.0003 | - |
| 0.7576 | 700 | 0.0001 | - |
| 0.8117 | 750 | 0.0001 | - |
| 0.8658 | 800 | 0.0001 | - |
| 0.9199 | 850 | 0.0001 | - |
| 0.9740 | 900 | 0.0 | - |
| 1.0281 | 950 | 0.0 | - |
| 1.0823 | 1000 | 0.0 | - |
| 1.1364 | 1050 | 0.0 | - |
| 1.1905 | 1100 | 0.0 | - |
| 1.2446 | 1150 | 0.0 | - |
| 1.2987 | 1200 | 0.0 | - |
| 1.3528 | 1250 | 0.0 | - |
| 1.4069 | 1300 | 0.0 | - |
| 1.4610 | 1350 | 0.0 | - |
| 1.5152 | 1400 | 0.0 | - |
| 1.5693 | 1450 | 0.0 | - |
| 1.6234 | 1500 | 0.0 | - |
| 1.6775 | 1550 | 0.0 | - |
| 1.7316 | 1600 | 0.0 | - |
| 1.7857 | 1650 | 0.0 | - |
| 1.8398 | 1700 | 0.0 | - |
| 1.8939 | 1750 | 0.0 | - |
| 1.9481 | 1800 | 0.0 | - |
@article{https://doi.org/10.48550/arxiv.2209.11055,
doi = {10.48550/ARXIV.2209.11055},
url = {https://arxiv.org/abs/2209.11055},
author = {Tunstall, Lewis and Reimers, Nils and Jo, Unso Eun Seo and Bates, Luke and Korat, Daniel and Wasserblat, Moshe and Pereg, Oren},
keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
title = {Efficient Few-Shot Learning Without Prompts},
publisher = {arXiv},
year = {2022},
copyright = {Creative Commons Attribution 4.0 International}
}
<!--
## Glossary
*Clearly define terms in order to be accessible across audiences.*
-->
<!--
## Model Card Authors
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
-->
<!--
## Model Card Contact
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
-->