Downloads · 30 days
12
1% of all-time downloads
fahrendrakhoirul/indobert-finetuned-ecommerce-reviews
indobert-finetuned-ecommerce-reviews is a text classification model from fahrendrakhoirul. Use it when you need a label for a piece of text. It is set up for transformers.
Title: IndoBERT-EcommerceReview Short Summary: A fine-tuned IndoBERT model for multi-label classification of customer reviews in e-commerce, focusing on product quality, customer service, and shipping/delivery.
Downloads · 30 days
12
1% of all-time downloads
All-time downloads
817
Public
Parameters
124M
1.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors498 MB · 100%
From the Hugging Face model README
Title: IndoBERT-EcommerceReview
Short Summary:
A fine-tuned IndoBERT model for multi-label classification of customer reviews in e-commerce, focusing on product quality, customer service, and shipping/delivery.
Detailed Description: Explain that the model is based on IndoBERT-base-p1, a pre-trained IndoBERT model specifically designed for Indonesian text. Highlight that it's fine-tuned on a dataset of e-commerce reviews, allowing it to understand the nuances of customer sentiment in this domain. Clearly define the three output classes and their corresponding labels:
Optionally, provide brief examples of reviews that would fall into each category to further illustrate how the model interprets sentiment.
How to import in PyTorch:
import torch.nn as nn
from huggingface_hub import PyTorchModelHubMixin
from transformers import BertModel, AutoTokenizer
class IndoBertEcommerceReview(nn.Module, PyTorchModelHubMixin):
def __init__(self, bert):
super().__init__()
self.bert = bert
self.sigmoid = nn.Sigmoid()
def forward(self, input_ids, attention_mask):
outputs = self.bert(input_ids=input_ids, attention_mask=attention_mask)
logits = outputs.logits
probabilities = self.sigmoid(logits)
return probabilities
bert = BertModel.from_pretrained("indobenchmark/indobert-base-p1")
tokenizer = AutoTokenizer.from_pretrained("fahrendrakhoirul/indobert-finetuned-ecommerce-reviews")
model = IndoBertEcommerceReview.from_pretrained("fahrendrakhoirul/indobert-finetuned-ecommerce-reviews", bert=bert)
This model has been pushed to the Hub using the PytorchModelHubMixin integration: