Downloads · 30 days
6
1% of all-time downloads
Shankhdhar/classifier_woog
classifier_woog is a text classification model from Shankhdhar. 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
6
1% of all-time downloads
All-time downloads
885
Public
Parameters
109M
4.4 GB 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 |
|---|---|
| product discoverability | <ul><li>'Do you have Adidas Superstar shoes?'</li><li>'Do you have any running shoes in pink color?'</li><li>'Do you have black Yeezy sneakers in size 9?'</li></ul> |
| order tracking | <ul><li>"I'm concerned about the delay in the delivery of my order. Can you please provide me with the status?"</li><li>'What is the estimated delivery time for orders within the same city?'</li><li>"I placed an order last week and it still hasn't arrived. Can you check the status for me?"</li></ul> |
| product policy | <ul><li>'Are there any exceptions to the return policy for items that were purchased with a student discount?'</li><li>'Do you offer a try-and-buy option for sneakers?'</li><li>'Do you offer a price adjustment for sneakers if the price drops after purchase?'</li></ul> |
| product faq | <ul><li>'Do you have any limited edition sneakers available?'</li><li>'Are the Adidas Yeezy Foam Runner available in size 7?'</li><li>"Are the Nike Air Force 1 sneakers available in women's sizes?"</li></ul> |
| Label | Accuracy |
|---|---|
| all | 0.8381 |
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("special features for bakery boxes")
<!--
### 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 | 3 | 11.6415 | 24 |
| Label | Training Sample Count |
|---|---|
| order tracking | 30 |
| product discoverability | 30 |
| product faq | 16 |
| product policy | 30 |
| Epoch | Step | Training Loss | Validation Loss |
|---|---|---|---|
| 0.0019 | 1 | 0.1782 | - |
| 0.0965 | 50 | 0.0628 | - |
| 0.1931 | 100 | 0.0036 | - |
| 0.2896 | 150 | 0.0013 | - |
| 0.3861 | 200 | 0.0012 | - |
| 0.4826 | 250 | 0.0003 | - |
| 0.5792 | 300 | 0.0002 | - |
| 0.6757 | 350 | 0.0003 | - |
| 0.7722 | 400 | 0.0002 | - |
| 0.8687 | 450 | 0.0005 | - |
| 0.9653 | 500 | 0.0003 | - |
| 1.0618 | 550 | 0.0001 | - |
| 1.1583 | 600 | 0.0002 | - |
| 1.2548 | 650 | 0.0002 | - |
| 1.3514 | 700 | 0.0002 | - |
| 1.4479 | 750 | 0.0001 | - |
| 1.5444 | 800 | 0.0001 | - |
| 1.6409 | 850 | 0.0001 | - |
| 1.7375 | 900 | 0.0002 | - |
| 1.8340 | 950 | 0.0001 | - |
| 1.9305 | 1000 | 0.0001 | - |
@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.*
-->