Downloads · 30 days
4
6% of all-time downloads
Huiyeong/setfit-curekart-neg
setfit-curekart-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
4
6% of all-time downloads
All-time downloads
68
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 |
|---|---|
| CALL_CENTER | <ul><li>'What time is your call centre operational during COVID?'</li><li>'is the call center still functioning during lockdown'</li><li>'what are the working hours of your call center during covid lockdown'</li></ul> |
| CANCEL_ORDER | <ul><li>"I'd like to cancel my pending order"</li><li>'How can I cancel my pending order?'</li><li>'Kindly cancel my order'</li></ul> |
| CHAT_WITH_AGENT | <ul><li>'Chat with agent'</li><li>'I need customer support'</li><li>'I want to chat with an agent'</li></ul> |
| CONSULT_START | <ul><li>'Tell me weight gaining'</li><li>'Consult Start'</li><li>'suggest me beginner diet'</li></ul> |
| DELAY_IN_PARCEL | <ul><li>'Is there a delay in delivery becuase of the pandemic?'</li><li>'How long is parcel delayed because of COVID?'</li><li>'Why is my delivery late'</li></ul> |
| EXPIRY_DATE | <ul><li>'What if I receive expired product'</li><li>'I have received an Expired product'</li><li>'Expiry Date'</li></ul> |
| FRANCHISE | <ul><li>'Get Franchise'</li><li>'would like to associated as seller'</li><li>'i want to enroll my self as a seller'</li></ul> |
| ORDER_STATUS | <ul><li>'Track my order'</li><li>'What is my shipment status'</li><li>'What is the progress of my orders'</li></ul> |
| INTERNATIONAL_SHIPPING | <ul><li>'Delivery out of India'</li><li>'International Shipping'</li><li>'Out of India'</li></ul> |
| MODES_OF_PAYMENTS | <ul><li>'Modes of payments'</li><li>'ways of paymets'</li><li>'Accepted modes of payments'</li></ul> |
| MODIFY_ADDRESS | <ul><li>'Change delivery address?'</li><li>'Delivery address is wrong it is to be changed'</li><li>'I want to change my delivery address'</li></ul> |
| ORDER_QUERY | <ul><li>'I have a query related to my order'</li><li>'Help required on order'</li><li>'details needed for my order'</li></ul> |
| ORDER_TAKING | <ul><li>'Are you taking orders during COVID?'</li><li>'i know its lockdown due to coronavirus but can i still place an order?'</li><li>'I wanted to order some things, can I place an order on the website?'</li></ul> |
| ORIGINAL_PRODUCT | <ul><li>'Original Products'</li><li>'do you have authentic products'</li><li>'Is your product original'</li></ul> |
| REFUNDS_RETURNS_REPLACEMENTS | <ul><li>'I want to know my refund status'</li><li>'I want to know about my replacements'</li><li>'I havent received my refund it has been many days since the return'</li></ul> |
| PAYMENT_AND_BILL | <ul><li>'I want to know about my payments'</li><li>'Payments and Bills'</li><li>'I have Payment & Bill Related Queries'</li></ul> |
| PORTAL_ISSUE | <ul><li>'Portal not working'</li><li>'Option is not visible'</li><li>'Unable to see product in my cart'</li></ul> |
| CHECK_PINCODE | <ul><li>'Product Service'</li><li>'pincode serviceable'</li><li>'I wanted to know whether you are delivering in'</li></ul> |
| RECOMMEND_PRODUCT | <ul><li>'Recommend a product'</li><li>'What are all the products you have?'</li><li>"I am confused about what to buy since there are too many options I and I really don't know what I should focus on right now"</li></ul> |
| REFER_EARN | <ul><li>'Reedem referral'</li><li>'My friend refer me to CureKart'</li><li>'Refer Amount'</li></ul> |
| RESUME_DELIVERY | <ul><li>'When will you resume delivery due to COVID?'</li><li>'are you going to start delivery during this lockdown period as well?'</li><li>'other websites like lagoon are delivering when will curekart start again to deliver?'</li></ul> |
| SIDE_EFFECT | <ul><li>'It has any side effects or not'</li><li>'Does it have side effects?'</li><li>'is there any side effects'</li></ul> |
| SIGN_UP | <ul><li>'New to CureKart?'</li><li>'Where can I sign up'</li><li>'I am a new user'</li></ul> |
| START_OVER | <ul><li>'Show me the main menu'</li><li>'Start again'</li><li>'Start over'</li></ul> |
| STORE_INFORMATION | <ul><li>'Can I visit your store'</li><li>'Àre your shops operational'</li><li>'Are stores still opening?'</li></ul> |
| USER_GOAL_FORM | <ul><li>'Re-assess my profile'</li><li>'I would want to take re-assessment'</li><li>'Fill my goal'</li></ul> |
| WORK_FROM_HOME | <ul><li>'Is your head office working during lockdown?'</li><li>'is curekart office open during the lockdown?'</li><li>'I wanted to talk to contact your head office for some work but is it open?'</li></ul> |
| IMMUNITY | <ul><li>'How can I increase my immunity'</li><li>'I want to increase my immunity power'</li><li>'Increase immunity power'</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-curekart-neg")
# Run inference
preds = model("+1 offer kya h")
<!--
### 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 | 6.1288 | 26 |
| Label | Training Sample Count |
|---|---|
| CALL_CENTER | 22 |
| CANCEL_ORDER | 15 |
| CHAT_WITH_AGENT | 46 |
| CHECK_PINCODE | 17 |
| CONSULT_START | 31 |
| DELAY_IN_PARCEL | 28 |
| EXPIRY_DATE | 10 |
| FRANCHISE | 13 |
| IMMUNITY | 7 |
| INTERNATIONAL_SHIPPING | 3 |
| MODES_OF_PAYMENTS | 9 |
| MODIFY_ADDRESS | 18 |
| ORDER_QUERY | 11 |
| ORDER_STATUS | 55 |
| ORDER_TAKING | 48 |
| ORIGINAL_PRODUCT | 28 |
| PAYMENT_AND_BILL | 29 |
| PORTAL_ISSUE | 4 |
| RECOMMEND_PRODUCT | 106 |
| REFER_EARN | 13 |
| REFUNDS_RETURNS_REPLACEMENTS | 63 |
| RESUME_DELIVERY | 56 |
| SIDE_EFFECT | 4 |
| SIGN_UP | 10 |
| START_OVER | 5 |
| STORE_INFORMATION | 18 |
| USER_GOAL_FORM | 16 |
| WORK_FROM_HOME | 14 |
| Epoch | Step | Training Loss | Validation Loss |
|---|---|---|---|
| 0.0023 | 1 | 0.267 | - |
| 0.1144 | 50 | 0.2317 | - |
| 0.2288 | 100 | 0.1862 | - |
| 0.3432 | 150 | 0.1462 | - |
| 0.4577 | 200 | 0.1121 | - |
| 0.5721 | 250 | 0.0857 | - |
| 0.6865 | 300 | 0.0749 | - |
| 0.8009 | 350 | 0.0605 | - |
| 0.9153 | 400 | 0.0472 | - |
| 1.0297 | 450 | 0.0484 | - |
| 1.1442 | 500 | 0.0395 | - |
| 1.2586 | 550 | 0.0333 | - |
| 1.3730 | 600 | 0.0316 | - |
| 1.4874 | 650 | 0.0259 | - |
| 1.6018 | 700 | 0.0288 | - |
| 1.7162 | 750 | 0.0201 | - |
| 1.8307 | 800 | 0.0264 | - |
| 1.9451 | 850 | 0.0213 | - |
| 2.0595 | 900 | 0.0207 | - |
| 2.1739 | 950 | 0.0136 | - |
| 2.2883 | 1000 | 0.014 | - |
| 2.4027 | 1050 | 0.0126 | - |
| 2.5172 | 1100 | 0.0161 | - |
| 2.6316 | 1150 | 0.0105 | - |
| 2.7460 | 1200 | 0.01 | - |
| 2.8604 | 1250 | 0.0091 | - |
| 2.9748 | 1300 | 0.0107 | - |
| 3.0892 | 1350 | 0.0077 | - |
| 3.2037 | 1400 | 0.0073 | - |
| 3.3181 | 1450 | 0.0073 | - |
| 3.4325 | 1500 | 0.0067 | - |
| 3.5469 | 1550 | 0.0086 | - |
| 3.6613 | 1600 | 0.006 | - |
| 3.7757 | 1650 | 0.005 | - |
| 3.8902 | 1700 | 0.0046 | - |
| 4.0046 | 1750 | 0.0053 | - |
| 4.1190 | 1800 | 0.0043 | - |
| 4.2334 | 1850 | 0.0043 | - |
| 4.3478 | 1900 | 0.0058 | - |
| 4.4622 | 1950 | 0.0062 | - |
| 4.5767 | 2000 | 0.0041 | - |
| 4.6911 | 2050 | 0.0033 | - |
| 4.8055 | 2100 | 0.0045 | - |
| 4.9199 | 2150 | 0.0036 | - |
@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.*
-->