Downloads · 30 days
2
5% of all-time downloads
vidhi0206/setfit-paraphrase-mpnet-emotionv
setfit-paraphrase-mpnet-emotionv is a text classification model from vidhi0206. 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 sentence-transformers/paraphrase-mpnet-base-v2 as the Sentence Transformer embedding model. A LogisticRegression instance is used…
Downloads · 30 days
2
5% of all-time downloads
All-time downloads
39
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 sentence-transformers/paraphrase-mpnet-base-v2 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 |
|---|---|
| 1 | <ul><li>'i don t feel so self assured i need to compete or to justify why i m so clearly not doing as well as someone else'</li><li>'i should do but i think it means that i should always be open to opportunities of inviting and involving others in ministries and that i should be creative in finding ways for others to participate in and feel welcomed into such ministries'</li><li>'i feel like im going to be way more successful a writer because of it'</li></ul> |
| 4 | <ul><li>'i feel so weird and scattered with all wonders about a million different things'</li><li>'i mean already as a parent from the moment the iolani left my body i can tell you i feel like im constantly fearful for something horrible happening to her thats out of my control'</li><li>'i think i was feeling vulnerable due to the stress of having to buy a new sewing machine and printer'</li></ul> |
| 5 | <ul><li>'i feel like this inside theres one thing i wanna know whats so funny bout peace love and understanding'</li><li>'i feel like itd be strange at the least and possibly offensive to tell a gay friend id like to experiment or something like that'</li><li>'i am not sure why in that moment that i thought i would be able to feel it hellip but it was pretty funny'</li></ul> |
| 2 | <ul><li>'i can feel that gentle rhythm imprinted on my skin i vibrates up my arm my stomach clenches my legs squeeze i forget his own leg has somehow ended up between mine'</li><li>'i feel specially fond of'</li><li>'i just feel like i dont like supporting walmart because maceys has such good family values and is closed on sundays and isnt trying to take over mom and pop stores but i have to be a smart consumer too'</li></ul> |
| 3 | <ul><li>'i am sure the vast majority of decent working class people feel insulted about being derided as unable to be respectful towards referees and are the parents who watch their child s match shouting abuse and swearing etc'</li><li>'im feeling irritated by her friggin name'</li><li>'i feel heartless now feeling bored and not believe in love anymore'</li></ul> |
| 0 | <ul><li>'i had just begun to feel like teaching was my metier but am now resigned to the fact that i likely wont teach at university ever again'</li><li>'i think the most common one that everyone has experienced is that doom and gloom feeling where you just feel like something tragic just happened'</li><li>'i feel a bit foolish now because in the last years they havent come back to my home town and i have had to travel to england to see them'</li></ul> |
| Label | Accuracy |
|---|---|
| all | 0.621 |
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("vidhi0206/setfit-paraphrase-mpnet-emotionv")
# Run inference
preds = model("i am feeling very indecisive and spontaneous")
<!--
### 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 | 5 | 20.4375 | 47 |
| Label | Training Sample Count |
|---|---|
| 0 | 8 |
| 1 | 8 |
| 2 | 8 |
| 3 | 8 |
| 4 | 8 |
| 5 | 8 |
| Epoch | Step | Training Loss | Validation Loss |
|---|---|---|---|
| 0.0042 | 1 | 0.2804 | - |
| 0.2083 | 50 | 0.0724 | - |
| 0.4167 | 100 | 0.0512 | - |
| 0.625 | 150 | 0.0108 | - |
| 0.8333 | 200 | 0.0027 | - |
@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.*
-->