Downloads · 30 days
7
9% of all-time downloads
JohanHeinsen/Labour_ads_gender
Labour_ads_gender 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 used to classify gender in labour advertisements from the eigtheenth and nineteenth centuries. It was trained by Sofus Landor Dam and Johan Heinsen.
Downloads · 30 days
7
9% of all-time downloads
All-time downloads
77
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 used to classify gender in labour advertisements from the eigtheenth and nineteenth centuries. It was trained by Sofus Landor Dam and Johan Heinsen.
The model has been trained using an efficient few-shot learning technique that involves:
| Label | Examples |
|---|---|
| 1 | <ul><li>'En skikkelig Pige søger Condition strar eller til St. Hansdag som Opvartningspige, i Mangel deraf som Stue= eller Enevighvor Konen gaaer i Huusholdningen, anvises paa Hiørnet af Larsbjørnstræde og Volden 236 i Stuen.'</li><li>'En Pige fra Landet søger strax Condition for Amme eller Goldamme, er at finde paa Vesterbro Nr. 9.'</li><li>'En Kone, der godt kan vaske, stryge og tillige godt lave Mad, ønsker sig Condition hos en honet Familie som Kokke eller Enepige, eller og at gaae i ugeviis, hun kan tillige i malke, om forlanges, anvises i Bredgaden Nr. 202 paa 5 første Sal.'</li></ul> |
| 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 svensk Karl, nyelig kommen her til Staden, ønsker sig Condition som Kudsk eller Tienercher i Byen, eller paa Landet, har sine behørige Skudsmaal, er at finde i store Kongensgade No. 51.'</li><li>'En Student, der er øvet i at informere, tilbyder sig at give Underviisning i det tydske Sprog, Regning, Skrivning, Religion, samt andre til Akademiet hørende Videnskaber Anviisningen gives i Adelgaden Nr. 206, første Sal, det første Huus paa høire Haand fra Gottersgaden.'</li></ul> |
| Label | Accuracy | F1 | Precision | Recall |
|---|---|---|---|---|
| all | 0.9924 | 0.9944 | 0.9944 | 0.9944 |
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("JohanHeinsen/Labour_ads_gender")
# Run inference
preds = model("En Stuepige, som forstaaer hvad hun bør, søger til Paaske; er at finde i Dronningens Tvergade Nr. 363 i Stuen.")
<!--
### 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.4388 | 176 |
| Label | Training Sample Count |
|---|---|
| 0 | 194 |
| 1 | 419 |
| Epoch | Step | Training Loss | Validation Loss |
|---|---|---|---|
| 0.0011 | 1 | 0.2907 | - |
| 0.0543 | 50 | 0.2618 | - |
| 0.1087 | 100 | 0.0493 | - |
| 0.1630 | 150 | 0.0181 | - |
| 0.2174 | 200 | 0.0038 | - |
| 0.2717 | 250 | 0.001 | - |
| 0.3261 | 300 | 0.0005 | - |
| 0.3804 | 350 | 0.0003 | - |
| 0.4348 | 400 | 0.0002 | - |
| 0.4891 | 450 | 0.0001 | - |
| 0.5435 | 500 | 0.0001 | - |
| 0.5978 | 550 | 0.0001 | - |
| 0.6522 | 600 | 0.0001 | - |
| 0.7065 | 650 | 0.0001 | - |
| 0.7609 | 700 | 0.0001 | - |
| 0.8152 | 750 | 0.0001 | - |
| 0.8696 | 800 | 0.0001 | - |
| 0.9239 | 850 | 0.0 | - |
| 0.9783 | 900 | 0.0 | - |
| 1.0326 | 950 | 0.0 | - |
| 1.0870 | 1000 | 0.0 | - |
| 1.1413 | 1050 | 0.0 | - |
| 1.1957 | 1100 | 0.0 | - |
| 1.25 | 1150 | 0.0 | - |
| 1.3043 | 1200 | 0.0 | - |
| 1.3587 | 1250 | 0.0 | - |
| 1.4130 | 1300 | 0.0 | - |
| 1.4674 | 1350 | 0.0 | - |
| 1.5217 | 1400 | 0.0 | - |
| 1.5761 | 1450 | 0.0 | - |
| 1.6304 | 1500 | 0.0 | - |
| 1.6848 | 1550 | 0.0 | - |
| 1.7391 | 1600 | 0.0 | - |
| 1.7935 | 1650 | 0.0 | - |
| 1.8478 | 1700 | 0.0 | - |
| 1.9022 | 1750 | 0.0 | - |
| 1.9565 | 1800 | 0.0 | - |
| 2.0109 | 1850 | 0.0 | - |
| 2.0652 | 1900 | 0.0 | - |
| 2.1196 | 1950 | 0.0 | - |
| 2.1739 | 2000 | 0.0 | - |
| 2.2283 | 2050 | 0.0 | - |
| 2.2826 | 2100 | 0.0 | - |
| 2.3370 | 2150 | 0.0 | - |
| 2.3913 | 2200 | 0.0 | - |
| 2.4457 | 2250 | 0.0 | - |
| 2.5 | 2300 | 0.0 | - |
| 2.5543 | 2350 | 0.0 | - |
| 2.6087 | 2400 | 0.0 | - |
| 2.6630 | 2450 | 0.0 | - |
| 2.7174 | 2500 | 0.0 | - |
| 2.7717 | 2550 | 0.0 | - |
| 2.8261 | 2600 | 0.0 | - |
| 2.8804 | 2650 | 0.0 | - |
| 2.9348 | 2700 | 0.0 | - |
| 2.9891 | 2750 | 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.*
-->