Downloads · 30 days
6
12% of all-time downloads
auphong2707/wm-grsa-lstm-baseline-results
wm-grsa-lstm-baseline-results is a text classification model from auphong2707. Use it when you need a label for a piece of text. The card lists the license as mit.
This model performs sentiment analysis on game reviews, classifying them into three categories: - Positive: Favorable reviews - Mixed: Neutral or mixed sentiment reviews - Negative: Unfavorable reviews
Downloads · 30 days
6
12% of all-time downloads
All-time downloads
50
Public
Repo size
545 MB
Likes
0
Public
Click a slice to open those files.
.pt283 MB · 72%
From the Hugging Face model README
This model performs sentiment analysis on game reviews, classifying them into three categories:
Model Type: Wm-Grsa-Lstm-Baseline
Training Date: 2025-12-23
| Metric | Score |
|---|---|
| Accuracy | 0.8266 |
| F1-Score | 0.7587 |
| Precision | 0.7560 |
| Recall | 0.7617 |
{
"embed_dim": 128,
"hidden_dim": 128,
"learning_rate": 0.0005,
"batch_size": 64,
"epochs": 20,
"max_len": 200,
"vocab_size": 73738,
"dropout_rate": 0.5,
"fc_sizes": [
64,
64,
16
],
"subset": 1.0
}
from pathlib import Path
import pickle
# Load the model components
model_dir = Path("path/to/model")
with open(model_dir / 'vectorizer.pkl', 'rb') as f:
vectorizer = pickle.load(f)
with open(model_dir / 'classifier.pkl', 'rb') as f:
classifier = pickle.load(f)
with open(model_dir / 'label_encoder.pkl', 'rb') as f:
label_encoder = pickle.load(f)
# Example reviews
reviews = [
"This game is absolutely amazing! Best game I've played this year.",
"It's okay, nothing special but not terrible either.",
"Terrible game, waste of money and time."
]
# Transform and predict
X = vectorizer.transform(reviews)
predictions_encoded = classifier.predict(X)
predictions = label_encoder.inverse_transform(predictions_encoded)
print(predictions)
# Output: ['positive', 'mixed', 'negative']
# Get probabilities
probabilities = classifier.predict_proba(X)
print(probabilities)
| Class | Precision | Recall | F1-Score | Support |
|---|---|---|---|---|
| Positive | 0.9148 | 0.8990 | 0.9068 | 45859 |
| Mixed | 0.5301 | 0.5493 | 0.5395 | 12697 |
| Negative | 0.8232 | 0.8366 | 0.8298 | 20181 |
The model identifies important words/phrases for each sentiment class. See results.json for the complete feature importance analysis.
This model was trained as part of a game review sentiment analysis project. For more information, see the project repository.
vectorizer.pkl: TF-IDF vectorizerclassifier.pkl: Trained classifierlabel_encoder.pkl: Label encoder for sentiment classesconfig.json: Model configurationresults.json: Complete training results and metricsIf you use this model, please cite:
@misc{game_review_sentiment,
author = {Game Review Sentiment Analysis Project},
title = {Sentiment Analysis Model for Game Reviews},
year = {2025},
url = {https://huggingface.co/wm-grsa-lstm-baseline}
}