Downloads · 30 days
6
16% of all-time downloads
Alecit1234/modelo_finanzas_peru_v1
modelo_finanzas_peru_v1 is a text classification model from Alecit1234. 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
6
16% of all-time downloads
All-time downloads
37
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 |
|---|---|
| 0 | <ul><li>'menu en el chifa de la esquina 15.90'</li><li>'almuerzo rapido en tambo 12 soles'</li><li>'desayuno pan con pollo y emoliente 9.50'</li></ul> |
| 1 | <ul><li>'compras básicas en plaza vea 34.20'</li><li>'jabon y pasta dental tottus 18.40'</li><li>'pollo entero mercado 14.90'</li></ul> |
| 2 | <ul><li>'recarga de la tarjeta del metropolitano 10 soles'</li><li>'pasaje de combi a la chamba 2.50'</li><li>'corredor amarillo 3.20'</li></ul> |
| 3 | <ul><li>'uber a casa 9.50'</li><li>'indriver para ir a la oficina 7 soles'</li><li>'didi para recoger un paquete 8.90'</li></ul> |
| 4 | <ul><li>'entré al cine con mi causa y compré canchita 32 soles'</li><li>'unas chelas en el bar de la esquina 18.50'</li><li>'pagué entrada para el concierto de la banda 120 soles'</li></ul> |
| 5 | <ul><li>'pagué la matrícula de la universidad 320.00'</li><li>'curso de python en udemy 29.90'</li><li>'suscripción mensual a platzi 49.00'</li></ul> |
| 6 | <ul><li>'compré un mouse logitech en oferta 49.90'</li><li>'me compré un cable usb c en radioshack 12.00'</li><li>'pagos de chatgpt plus 80.24'</li></ul> |
| 7 | <ul><li>'pagué mi recibo de luz enel 58.20'</li><li>'agua sedapal este mes 32.10'</li><li>'pagos movistar hogar 89.00'</li></ul> |
| 8 | <ul><li>'pagué mi mensualidad del smartfit 89.90'</li><li>'compré proteína whey en oferta 120'</li><li>'clase de baile urbano 25 soles'</li></ul> |
| 9 | <ul><li>'compré medicinas de emergencia 25.90'</li><li>'pagos al cerrajero porque perdí las llaves 40'</li><li>'se rompió mi cargador y compré uno urgente 15'</li></ul> |
| 10 | <ul><li>'pedí un combo en rappi porque me dio flojera cocinar 24.90'</li><li>'pago de envío en pedidosya 4.50'</li><li>'me traje una hamburguesa por rappi 18 soles'</li></ul> |
| 11 | <ul><li>'compré croquetas para mi perro 22.50'</li><li>'arena para gato 14.90'</li><li>'pagué vacuna anual de mi perro 60'</li></ul> |
| 12 | <ul><li>'le mandé a mi mamá para su comida de la semana 40 soles'</li><li>'yape para mi hermano que estaba sin saldo 10 soles'</li><li>'apoyo a mi papá para la luz del mes 50'</li></ul> |
| 13 | <ul><li>'compré pastillas para el dolor de cabeza 12.50'</li><li>'pagué consulta general en la clínica 45'</li><li>'compré jarabe para la tos 18.40'</li></ul> |
| 14 | <ul><li>'la beca me depositó 1250 este mes'</li><li>'me cayó la manutención de la beca 1500'</li><li>'ya entró el pago mensual de la beca 980.50'</li></ul> |
| 15 | <ul><li>'me depositaron el sueldo de este mes 2300'</li><li>'ya cayó mi quincena 1150 soles'</li><li>'pago de planilla recibido 2450'</li></ul> |
| 16 | <ul><li>'mi papá me mandó 200 por yape'</li><li>'mi mamá me depositó 150 para la semana'</li><li>'la abuela me envió 100 para mis cosas'</li></ul> |
| 17 | <ul><li>'vendí mi iphone usado por 900 soles'</li><li>'me pagaron por la venta de mis zapatillas 120'</li><li>'vendí mi silla gamer en marketplace 350'</li></ul> |
| 18 | <ul><li>'me pagaron por el diseño del logo 150 soles'</li><li>'cayó el pago de un cliente de la chamba extra 120'</li><li>'me depositaron por editar un video 80'</li></ul> |
| 19 | <ul><li>'me reembolsaron 80 soles del trabajo'</li><li>'cayó devolución de impuestos 120'</li><li>'gané un sorteo chico de 50 soles'</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("setfit_model_id")
# Run inference
preds = model("short deportivo en saga 35 soles")
<!--
### 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 | 6.2562 | 13 |
| Label | Training Sample Count |
|---|---|
| 0 | 30 |
| 1 | 30 |
| 2 | 30 |
| 3 | 30 |
| 4 | 30 |
| 5 | 30 |
| 6 | 30 |
| 7 | 30 |
| 8 | 30 |
| 9 | 30 |
| 10 | 30 |
| 11 | 30 |
| 12 | 30 |
| 13 | 30 |
| 14 | 30 |
| 15 | 30 |
| 16 | 30 |
| 17 | 30 |
| 18 | 30 |
| 19 | 31 |
| Epoch | Step | Training Loss | Validation Loss |
|---|---|---|---|
| 0.0007 | 1 | 0.2458 | - |
| 0.0333 | 50 | 0.2164 | - |
| 0.0665 | 100 | 0.1939 | - |
| 0.0998 | 150 | 0.178 | - |
| 0.1331 | 200 | 0.1505 | - |
| 0.1663 | 250 | 0.125 | - |
| 0.1996 | 300 | 0.0965 | - |
| 0.2329 | 350 | 0.0782 | - |
| 0.2661 | 400 | 0.0642 | - |
| 0.2994 | 450 | 0.0626 | - |
| 0.3327 | 500 | 0.05 | - |
| 0.3659 | 550 | 0.0403 | - |
| 0.3992 | 600 | 0.0449 | - |
| 0.4325 | 650 | 0.0341 | - |
| 0.4657 | 700 | 0.0285 | - |
| 0.4990 | 750 | 0.0188 | - |
| 0.5323 | 800 | 0.0208 | - |
| 0.5655 | 850 | 0.0225 | - |
| 0.5988 | 900 | 0.0173 | - |
| 0.6321 | 950 | 0.0179 | - |
| 0.6653 | 1000 | 0.0147 | - |
| 0.6986 | 1050 | 0.0178 | - |
| 0.7319 | 1100 | 0.0105 | - |
| 0.7651 | 1150 | 0.0115 | - |
| 0.7984 | 1200 | 0.0075 | - |
| 0.8317 | 1250 | 0.0143 | - |
| 0.8649 | 1300 | 0.0121 | - |
| 0.8982 | 1350 | 0.011 | - |
| 0.9315 | 1400 | 0.0094 | - |
| 0.9647 | 1450 | 0.0115 | - |
| 0.9980 | 1500 | 0.0085 | - |
| 1.0313 | 1550 | 0.0039 | - |
| 1.0645 | 1600 | 0.0049 | - |
| 1.0978 | 1650 | 0.0047 | - |
| 1.1311 | 1700 | 0.0085 | - |
| 1.1643 | 1750 | 0.0038 | - |
| 1.1976 | 1800 | 0.0049 | - |
| 1.2309 | 1850 | 0.0081 | - |
| 1.2641 | 1900 | 0.0051 | - |
| 1.2974 | 1950 | 0.0025 | - |
| 1.3307 | 2000 | 0.0025 | - |
| 1.3639 | 2050 | 0.0059 | - |
| 1.3972 | 2100 | 0.004 | - |
| 1.4305 | 2150 | 0.003 | - |
| 1.4637 | 2200 | 0.003 | - |
| 1.4970 | 2250 | 0.0013 | - |
| 1.5303 | 2300 | 0.0023 | - |
| 1.5635 | 2350 | 0.0039 | - |
| 1.5968 | 2400 | 0.0031 | - |
| 1.6301 | 2450 | 0.0015 | - |
| 1.6633 | 2500 | 0.0019 | - |
| 1.6966 | 2550 | 0.0034 | - |
| 1.7299 | 2600 | 0.0016 | - |
| 1.7631 | 2650 | 0.0029 | - |
| 1.7964 | 2700 | 0.0041 | - |
| 1.8297 | 2750 | 0.0011 | - |
| 1.8629 | 2800 | 0.002 | - |
| 1.8962 | 2850 | 0.003 | - |
| 1.9295 | 2900 | 0.0038 | - |
| 1.9627 | 2950 | 0.004 | - |
| 1.9960 | 3000 | 0.0029 | - |
@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.*
-->