visolex / textcnn-absa-restaurant

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

Introduction of textcnn-absa-restaurant

Model Details of textcnn-absa-restaurant

textcnn-absa-restaurant: Aspect-based Sentiment Analysis for Vietnamese Reviews

This model is a fine-tuned version of textcnn on the VLSP2018-ABSA-Restaurant dataset for aspect-based sentiment analysis in Vietnamese reviews.

Model Details
  • Base Model : textcnn
  • Description : TextCNN for Vietnamese ABSA
  • Dataset : VLSP2018-ABSA-Restaurant
  • 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 VLSP2018 ABSA Restaurant 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:

  • AMBIENCE#GENERAL
  • DRINKS#PRICES
  • DRINKS#QUALITY
  • DRINKS#STYLE&OPTIONS
  • FOOD#PRICES
  • FOOD#QUALITY
  • FOOD#STYLE&OPTIONS
  • LOCATION#GENERAL
  • RESTAURANT#GENERAL
  • RESTAURANT#MISCELLANEOUS
  • RESTAURANT#PRICES
  • SERVICE#GENERAL
Evaluation Results

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

  • Accuracy : 0.8684
  • Macro-F1 : 0.3685
  • Weighted-F1 : 0.6495
  • Macro-Precision : 0.5003
  • Macro-Recall : 0.3170
Usage Example
from transformers import AutoTokenizer, AutoModelForSequenceClassification

# Load model and tokenizer
tokenizer = AutoTokenizer.from_pretrained("visolex/textcnn-absa-restaurant")
model = AutoModelForSequenceClassification.from_pretrained("visolex/textcnn-absa-restaurant")

# Example review
text = "Khách sạn rất sạch sẽ, dịch vụ tuyệt vời nhưng giá hơi cao."

# Tokenize
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=256)

# Predict
outputs = model(**inputs)
predicted_sentiment = outputs.logits.argmax(dim=-1).item()

# Map to sentiment name
sentiment_map = {
    0: "Negative",
    1: "Neutral",
    2: "Positive"
}

predicted_name = sentiment_map[predicted_sentiment]
print(f"Text: {text}")
print(f"Predicted sentiment: {predicted_name}")
Citation

If you use this model, please cite:

@misc{visolex_absa_textcnn_absa_restaurant,
  title={TextCNN for Vietnamese ABSA for Vietnamese Aspect-based Sentiment Analysis},
  author={ViSoLex Team},
  year={2025},
  url={https://huggingface.co/visolex/textcnn-absa-restaurant}
}
License

This model is released under the Apache-2.0 license.

Acknowledgments
  • Base model: textcnn
  • Dataset: VLSP2018-ABSA-Restaurant
  • ViSoLex Toolkit

Runs of visolex textcnn-absa-restaurant on huggingface.co

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

More Information About textcnn-absa-restaurant huggingface.co Model

More textcnn-absa-restaurant license Visit here:

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

textcnn-absa-restaurant huggingface.co

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

textcnn-absa-restaurant huggingface.co Url

https://huggingface.co/visolex/textcnn-absa-restaurant

visolex textcnn-absa-restaurant online free

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

visolex textcnn-absa-restaurant online free url in huggingface.co:

https://huggingface.co/visolex/textcnn-absa-restaurant

textcnn-absa-restaurant install

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

textcnn-absa-restaurant install url in huggingface.co:

https://huggingface.co/visolex/textcnn-absa-restaurant

Url of textcnn-absa-restaurant

textcnn-absa-restaurant huggingface.co Url

Provider of textcnn-absa-restaurant huggingface.co

visolex
ORGANIZATIONS

Other API from visolex

huggingface.co

Total runs: 91
Run Growth: 34
Growth Rate: 37.36%
Updated:January 05 2026
huggingface.co

Total runs: 47
Run Growth: 28
Growth Rate: 59.57%
Updated:January 05 2026
huggingface.co

Total runs: 37
Run Growth: 5
Growth Rate: 13.51%
Updated:January 05 2026
huggingface.co

Total runs: 35
Run Growth: -17
Growth Rate: -48.57%
Updated:January 05 2026
huggingface.co

Total runs: 27
Run Growth: 23
Growth Rate: 85.19%
Updated:January 05 2026
huggingface.co

Total runs: 21
Run Growth: 2
Growth Rate: 9.52%
Updated:June 20 2025
huggingface.co

Total runs: 16
Run Growth: 8
Growth Rate: 50.00%
Updated:January 05 2026
huggingface.co

Total runs: 12
Run Growth: -1
Growth Rate: -8.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