visolex / bilstm-absa-smartphone

huggingface.co
Total runs: 12
24-hour runs: 0
7-day runs: 0
30-day runs: 10
Model's Last Updated: January 05 2026

Introduction of bilstm-absa-smartphone

Model Details of bilstm-absa-smartphone

bilstm-absa-smartphone: Aspect-based Sentiment Analysis for Vietnamese Reviews

This model is a fine-tuned version of bilstm on the ViSFD dataset for aspect-based sentiment analysis in Vietnamese reviews.

Model Details
  • Base Model : bilstm
  • Description : BiLSTM for Vietnamese ABSA
  • Dataset : ViSFD
  • Fine-tuning Framework : HuggingFace Transformers
  • Task : Aspect-based Sentiment Classification (3 classes)
Hyperparameters
  • Batch size: 32
  • Learning rate: 3e-5
  • Epochs: 100
  • Max sequence length: 256
  • Weight decay: 0.01
  • Warmup steps: 500
  • Optimizer: AdamW
Dataset

Model was trained on ViSFD (Vietnamese Smartphone Feedback Dataset) for aspect-based sentiment analysis.

Sentiment Labels:
  • 0 - Negative (Tiêu cực): Negative opinions
  • 1 - Neutral (Trung lập): Neutral, objective opinions
  • 2 - Positive (Tích cực): Positive opinions
Aspect Categories:

Model được train để phân tích sentiment cho các aspects sau:

  • BATTERY
  • CAMERA
  • DESIGN
  • FEATURES
  • GENERAL
  • PERFORMANCE
  • PRICE
  • SCREEN
  • SER&ACC
  • STORAGE
Evaluation Results

The model was evaluated on test set with the following metrics:

  • Accuracy : 0.9016
  • Macro-F1 : 0.0000
  • Weighted-F1 : 0.0000
  • Macro-Precision : 0.0000
  • Macro-Recall : 0.0000
Usage Example
import torch
from transformers import AutoTokenizer, AutoModel

# Load model and tokenizer
repo = "visolex/bilstm-absa-smartphone"
tokenizer = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
model = AutoModel.from_pretrained(repo, trust_remote_code=True)
model.eval()

# Aspect labels for ViSFD
aspect_labels = [
    "BATTERY",
    "CAMERA",
    "DESIGN",
    "FEATURES",
    "GENERAL",
    "PERFORMANCE",
    "PRICE",
    "SCREEN",
    "SER&ACC",
    "STORAGE"
]

# Sentiment labels
sentiment_labels = ["POSITIVE", "NEGATIVE", "NEUTRAL"]

# Example review text
text = "Pin rất tốt, camera đẹp nhưng giá hơi cao."

# Tokenize
inputs = tokenizer(
    text,
    return_tensors="pt",
    padding=True,
    truncation=True,
    max_length=256
)
inputs.pop("token_type_ids", None)

# Predict
with torch.no_grad():
    outputs = model(**inputs)

# Get logits: shape [1, num_aspects, num_sentiments + 1]
logits = outputs.logits.squeeze(0)  # [num_aspects, num_sentiments + 1]
probs = torch.softmax(logits, dim=-1)

# Predict for each aspect
none_id = probs.size(-1) - 1  # Index of "none" class
results = []

for i, aspect in enumerate(aspect_labels):
    prob_i = probs[i]
    pred_id = int(prob_i.argmax().item())
    
    if pred_id != none_id and pred_id < len(sentiment_labels):
        score = prob_i[pred_id].item()
        if score >= 0.5:  # threshold
            results.append((aspect, sentiment_labels[pred_id].lower()))

print(f"Text: {text}")
print(f"Predicted aspects: {results}")
# Output example: [('aspects', 'positive'), ('aspects', 'positive'), ('aspects', 'negative')]
Citation

If you use this model, please cite:

@misc{visolex_absa_bilstm_absa_smartphone,
  title={BiLSTM for Vietnamese ABSA for Vietnamese Aspect-based Sentiment Analysis},
  author={ViSoLex Team},
  year={2025},
  url={https://huggingface.co/visolex/bilstm-absa-smartphone}
}
License

This model is released under the Apache-2.0 license.

Acknowledgments
  • Base model: bilstm
  • Dataset: ViSFD
  • ViSoLex Toolkit

Runs of visolex bilstm-absa-smartphone on huggingface.co

12
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
10
30-day runs

More Information About bilstm-absa-smartphone huggingface.co Model

More bilstm-absa-smartphone license Visit here:

https://choosealicense.com/licenses/apache-2.0

bilstm-absa-smartphone huggingface.co

bilstm-absa-smartphone huggingface.co is an AI model on huggingface.co that provides bilstm-absa-smartphone's model effect (), which can be used instantly with this visolex bilstm-absa-smartphone model. huggingface.co supports a free trial of the bilstm-absa-smartphone model, and also provides paid use of the bilstm-absa-smartphone. Support call bilstm-absa-smartphone model through api, including Node.js, Python, http.

bilstm-absa-smartphone huggingface.co Url

https://huggingface.co/visolex/bilstm-absa-smartphone

visolex bilstm-absa-smartphone online free

bilstm-absa-smartphone huggingface.co is an online trial and call api platform, which integrates bilstm-absa-smartphone's modeling effects, including api services, and provides a free online trial of bilstm-absa-smartphone, you can try bilstm-absa-smartphone online for free by clicking the link below.

visolex bilstm-absa-smartphone online free url in huggingface.co:

https://huggingface.co/visolex/bilstm-absa-smartphone

bilstm-absa-smartphone install

bilstm-absa-smartphone is an open source model from GitHub that offers a free installation service, and any user can find bilstm-absa-smartphone on GitHub to install. At the same time, huggingface.co provides the effect of bilstm-absa-smartphone install, users can directly use bilstm-absa-smartphone installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

bilstm-absa-smartphone install url in huggingface.co:

https://huggingface.co/visolex/bilstm-absa-smartphone

Url of bilstm-absa-smartphone

bilstm-absa-smartphone huggingface.co Url

Provider of bilstm-absa-smartphone huggingface.co

visolex
ORGANIZATIONS

Other API from visolex

huggingface.co

Total runs: 71
Run Growth: 14
Growth Rate: 19.72%
Updated:January 05 2026
huggingface.co

Total runs: 42
Run Growth: 22
Growth Rate: 52.38%
Updated:January 05 2026
huggingface.co

Total runs: 30
Run Growth: 2
Growth Rate: 6.67%
Updated:January 05 2026
huggingface.co

Total runs: 28
Run Growth: 13
Growth Rate: 46.43%
Updated:June 20 2025
huggingface.co

Total runs: 27
Run Growth: -31
Growth Rate: -114.81%
Updated:January 05 2026
huggingface.co

Total runs: 19
Run Growth: 16
Growth Rate: 84.21%
Updated:January 05 2026
huggingface.co

Total runs: 18
Run Growth: 13
Growth Rate: 72.22%
Updated:January 05 2026
huggingface.co

Total runs: 18
Run Growth: 6
Growth Rate: 33.33%
Updated:January 05 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:October 17 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:October 29 2025