Views
No views yet
sealuzh/app_reviews dataset, available on Hugging Face Datasets. This dataset contains a large collection of app reviews with corresponding star ratings.distilbert-base-uncased, a smaller, faster, and lighter version of BERT. It was fine-tuned for sequence classification with 5 labels (corresponding to 1-5 stars).distilbert-base-uncaseddistilbert-base-uncased tokenizer. Reviews were truncated to a maximum length of 128 tokens and padded to ensure uniform input size. Star ratings (1-5) were converted to 0-indexed labels (0-4) for training.transformers library:1from transformers import pipeline
2
3classifier = pipeline(
4 "text-classification",
5 model="GuruPRaju/app-review-sentiment-distilbert", # Using the actual repo_id here
6 tokenizer="GuruPRaju/app-review-sentiment-distilbert"
7)
8
9review = "This app is absolutely amazing, highly recommend!"
10result = classifier(review)
11stars = int(result[0]["label"].split("_")[1]) + 1
12print(f"Review: {review}
13Predicted Stars: {stars}")transformers library and Hub.sealuzh/app_reviews dataset.