Downloads · 30 days
1
4% of all-time downloads
Huiyeong/setfit-sofmattress-neg
setfit-sofmattress-neg is a text classification model from Huiyeong. 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-multilingual-MiniLM-L12-v2 as the Sentence Transformer embedding model. A LogisticRegression ins…
Downloads · 30 days
1
4% of all-time downloads
All-time downloads
23
Public
Parameters
118M
503 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors471 MB · 94%
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-multilingual-MiniLM-L12-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 |
|---|---|
| EMI | <ul><li>'You guys provide EMI option?'</li><li>'Do you offer Zero Percent EMI payment options?'</li><li>'0% EMI.'</li></ul> |
| COD | <ul><li>'COD option is availble?'</li><li>'Do you offer COD to my pincode?'</li><li>'Can I do COD?'</li></ul> |
| ORTHO_FEATURES | <ul><li>'Features of Ortho mattress'</li><li>'What are the key features of the SOF Ortho mattress'</li><li>'SOF ortho'</li></ul> |
| ERGO_FEATURES | <ul><li>'What are the key features of the SOF Ergo mattress'</li><li>'Features of Ergo mattress'</li><li>'SOF ergo'</li></ul> |
| COMPARISON | <ul><li>'What is the difference between the Ergo & Ortho variants'</li><li>'Difference between Ergo & Ortho Mattress'</li><li>'Difference between the products'</li></ul> |
| WARRANTY | <ul><li>'What is the warranty period?'</li><li>'Warranty'</li><li>'Does mattress cover is included in warranty'</li></ul> |
| 100_NIGHT_TRIAL_OFFER | <ul><li>'How does the 100 night trial work'</li><li>'What is the 100-night offer'</li><li>'Trial details'</li></ul> |
| SIZE_CUSTOMIZATION | <ul><li>'I want to change the size of the mattress.'</li><li>'Need some help in changing size of the mattress'</li><li>'How can I order a custom sized mattress'</li></ul> |
| WHAT_SIZE_TO_ORDER | <ul><li>'Can you help with the size?'</li><li>'How do I know what size to order?'</li><li>'How do I know the size of my bed?'</li></ul> |
| LEAD_GEN | <ul><li>'Get in Touch'</li><li>'Want to talk to an live agent'</li><li>' Please call me'</li></ul> |
| CHECK_PINCODE | <ul><li>'Do you deliver to my pincode'</li><li>'Check pincode'</li><li>'Is delivery possible on this pincode'</li></ul> |
| DISTRIBUTORS | <ul><li>'Do you have any showrooms in Delhi state'</li><li>'Do you have any distributors in Mumbai city'</li><li>'Do you have any retailers in Pune city'</li></ul> |
| MATTRESS_COST | <ul><li>'Price of mattress'</li><li>'Mattress cost'</li><li>'Cost of mattress'</li></ul> |
| PRODUCT_VARIANTS | <ul><li>'What are the product variants'</li><li>'Product Variants'</li><li>'Help me with different products'</li></ul> |
| ABOUT_SOF_MATTRESS | <ul><li>'How is SOF different from other mattress brands'</li><li>'Why SOF mattress'</li><li>'About SOF Mattress'</li></ul> |
| DELAY_IN_DELIVERY | <ul><li>"It's been a month"</li><li>'Why so long?'</li><li>'I did not receive my order yet'</li></ul> |
| ORDER_STATUS | <ul><li>'Order Status'</li><li>'What is my order status?'</li><li>'Order related'</li></ul> |
| RETURN_EXCHANGE | <ul><li>'Need my money back'</li><li>'I want refund'</li><li>'Refund'</li></ul> |
| CANCEL_ORDER | <ul><li>'I want to cancel my order'</li><li>'How can I cancel my order'</li><li>'Cancel order'</li></ul> |
| PILLOWS | <ul><li>'Can I get pillows?'</li><li>'Do you sell pillows?'</li><li>'Pillows'</li></ul> |
| OFFERS | <ul><li>'Offers'</li><li>'What are the available offers'</li><li>'Give me some discount'</li></ul> |
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("huiyeong/setfit-sofmattress-neg")
# Run inference
preds = model("Do you deliver in Canada")
<!--
### 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 | 1 | 4.3619 | 22 |
| Label | Training Sample Count |
|---|---|
| 100_NIGHT_TRIAL_OFFER | 20 |
| ABOUT_SOF_MATTRESS | 11 |
| CANCEL_ORDER | 11 |
| CHECK_PINCODE | 10 |
| COD | 12 |
| COMPARISON | 12 |
| DELAY_IN_DELIVERY | 12 |
| DISTRIBUTORS | 39 |
| EMI | 27 |
| ERGO_FEATURES | 13 |
| LEAD_GEN | 25 |
| MATTRESS_COST | 23 |
| OFFERS | 13 |
| ORDER_STATUS | 24 |
| ORTHO_FEATURES | 23 |
| PILLOWS | 13 |
| PRODUCT_VARIANTS | 24 |
| RETURN_EXCHANGE | 15 |
| SIZE_CUSTOMIZATION | 11 |
| WARRANTY | 13 |
| WHAT_SIZE_TO_ORDER | 22 |
| Epoch | Step | Training Loss | Validation Loss |
|---|---|---|---|
| 0.0043 | 1 | 0.2676 | - |
| 0.2137 | 50 | 0.1931 | - |
| 0.4274 | 100 | 0.1418 | - |
| 0.6410 | 150 | 0.1097 | - |
| 0.8547 | 200 | 0.0838 | - |
| 1.0684 | 250 | 0.0579 | - |
| 1.2821 | 300 | 0.0437 | - |
| 1.4957 | 350 | 0.0338 | - |
| 1.7094 | 400 | 0.0287 | - |
| 1.9231 | 450 | 0.0245 | - |
| 2.1368 | 500 | 0.0167 | - |
| 2.3504 | 550 | 0.0164 | - |
| 2.5641 | 600 | 0.0135 | - |
| 2.7778 | 650 | 0.0118 | - |
| 2.9915 | 700 | 0.0147 | - |
| 3.2051 | 750 | 0.0096 | - |
| 3.4188 | 800 | 0.008 | - |
| 3.6325 | 850 | 0.0094 | - |
| 3.8462 | 900 | 0.0084 | - |
| 4.0598 | 950 | 0.0107 | - |
| 4.2735 | 1000 | 0.0083 | - |
| 4.4872 | 1050 | 0.0068 | - |
| 4.7009 | 1100 | 0.0065 | - |
| 4.9145 | 1150 | 0.0064 | - |
@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.*
-->