Downloads · 30 days
28
2% of all-time downloads
abullard1/albert-v2-steam-review-constructiveness-classifier
albert-v2-steam-review-constructiveness-classifier is a text classification model from abullard1. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
<br <br <div style="text-align: center;" <img src="https://i.ibb.co/Ky0wcYy/abullard1-steam-review-constructiveness-classifier-logo-modified-1.png" style="max-width: 30%; display: block; margin: 0 auto;" </div
Downloads · 30 days
28
2% of all-time downloads
All-time downloads
1.3K
Public
Parameters
11.7M
46.7 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors46.7 MB · 95%
From the Hugging Face model README
This model is a fine-tuned version of albert-base-v2, designed to classify whether Steam game reviews are constructive or non-constructive. It was trained on the steam-reviews-constructiveness-binary-label-annotations-1.5k dataset, containing user-generated game reviews labeled as either:
The dataset features were combined into a single string per review, formatted as follows: <br> <br> "Review: {review}, Playtime: {author_playtime_at_review}, Voted Up: {voted_up}, Upvotes: {votes_up}, Votes Funny: {votes_funny}" and then fed to the model accompanied by the respective constructive labels. <br> <br> This approach of concatenating the features into a simple String offers a good trade-off between complexity and performance, compared to other options.
The model can be applied in any scenario where it's important to distinguish between helpful and unhelpful textual feedback, particularly in the context of gaming communities or online reviews. Potential use cases are platforms like Steam, Discord, or any community-driven feedback systems where understanding the quality of feedback is critical.
The model was trained and evaluated using a 80/10/10 Train/Dev/Test split, achieving the following performance metrics during evaluation using the test set:
These results indicate that the model performs reasonably well at identifying the correct label. (~80%)
<hr>Explore and test the model interactively on its Hugging Face Space.
To use the model programmatically, use this Python snippet:
from transformers import pipeline
import torch
device = 0 if torch.cuda.is_available() else -1
torch_d_type = torch.float16 if torch.cuda.is_available() else torch.float32
base_model_name = "albert-base-v2"
finetuned_model_name = "abullard1/albert-v2-steam-review-constructiveness-classifier"
classifier = pipeline(
task="text-classification",
model=finetuned_model_name,
tokenizer=base_model_name,
device=device,
top_k=None,
truncation=True,
max_length=512,
torch_dtype=torch_d_type)
review = "Review: I think this is a great game but it still has some room for improvement., Playtime: 12, Voted Up: True, Upvotes: 1, Votes Funny: 0"
result = classifier(review)
print(result)
This model is licensed under the MIT License, allowing open and flexible use of the model for both academic and commercial purposes.