Downloads · 30 days
5
16% of all-time downloads
pupugu02/absa-setfit-resto-polarity
absa-setfit-resto-polarity is a text classification model from pupugu02. 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 Aspect Based Sentiment Analysis (ABSA). A LogisticRegression instance is used for classification. In particular, this model is in charge of classifying aspect polarities.
Downloads · 30 days
5
16% of all-time downloads
All-time downloads
32
Public
Parameters
568M
2.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.3 GB · 99%
From the Hugging Face model README
This is a SetFit model that can be used for Aspect Based Sentiment Analysis (ABSA). A LogisticRegression instance is used for classification. In particular, this model is in charge of classifying aspect polarities.
The model has been trained using an efficient few-shot learning technique that involves:
This model was trained within the context of a larger system for ABSA, which looks like so:
| Label | Examples |
|---|---|
| positif | <ul><li>'time, selain tempat yang Sangat bersih:Mcd selalu jadi tempat ternyaman untuk me time, selain tempat yang Sangat bersih dan nyaman, mcdonals juga selalu menjaga kualitas makanan. Bagi saya mcd sangat affdorable dan worth it, selain itu paling digemari oleh kalangan anak muda dan anak anak sangat menyukai ayam nya.'</li><li>'bagus dan ada tempat buat bermain anak2:Makanan nya enak n harga nya juga murah.. View nya bagus dan ada tempat buat bermain anak2.. Naek beca ato perahu angsa..'</li><li>'produknya, memberikan pelayanan yang memuaskan,:McDonald’s adalah menjadi restoran cepat saji dengan pelayanan terbaik di dunia. Untuk mencapai visi ini, McDonald’s selalu menjamin mutu produk-produknya, memberikan pelayanan yang memuaskan, menawarkan kebersihan dan keamanan produk …'</li></ul> |
| negatif | <ul><li>"\nKopi jelly terasa agak 'cawerang:Gang drive-thru sangat sempit sehingga Anda harus ekstra hati-hati.\nLayanan yang pasti cepat dan berbagai pilihan pembayaran.\nKopi jelly terasa agak 'cawerang' tapi okelah. Mereka juga menambahkan segel plastik untuk mencegah tumpah. Pemikiran yang bagus."</li><li>'maap banget yaaaa pelayanan nya lama bgt:aduh maap banget yaaaa pelayanan nya lama bgt ga kaya gacoan2 yg lainn, dr smua gacoan yg pernah dine in cuma ini paling lama ,'</li><li>'suka terlamat dan pelayanannya kurang bagus..:Tempatnya bersih sejuk cocok buat makan sambil bersantai... Tetapi kalo kondisi ramai pesanan suka terlamat dan pelayanannya kurang bagus.. untuk kondisi sepi masih aman pelayanan bagus ramah..'</li></ul> |
| netral | <ul><li>'Banyak lalat. Rasanya biasa. Yg:Banyak lalat. Rasanya biasa. Yg lumayan sop iga bakar madu'</li><li>'Ada harga, ada rasa:Ada harga, ada rasa'</li><li>'D ini, tempat nya menjorok kedalam:Tiba di Bandung, kita mampir di restoran Mc D ini, tempat nya menjorok kedalam, tatanan design nya Mc D semua standard sesuai dengan kapasitas lahan nya. Disini memiliki tempat bermain anak-anak, dan untuk order mereka menyediakan mesin …'</li></ul> |
First install the SetFit library:
pip install setfit
Then you can load this model and run inference.
from setfit import AbsaModel
# Download from the 🤗 Hub
model = AbsaModel.from_pretrained(
"pupugu02/absa-setfit-resto-aspect",
"pupugu02/absa-setfit-resto-polarity",
)
# Run inference
preds = model("The food was great, but the venue is just way too busy.")
<!--
### 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 | 28.0911 | 62 |
| Label | Training Sample Count |
|---|---|
| konflik | 0 |
| negatif | 15 |
| netral | 28 |
| positif | 363 |
@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.*
-->