RepositoryPythonSGSingapore
soujanyaporia

soujanyaporia/aspect-extraction

Aspect extraction from product reviews - window-CNN+maxpool+CRF, BiLSTM+CRF, MLP+CRF

159sao
37fork
1issue
1lượt xem

🔍 Rút trích khía cảnh từ đánh giá sản phẩm bằng TensorFlow

Ba mô hình tuần tự khác nhau: BiLSTM+CRF, CNN+maxpool+CRF, MLP+CRF — đều giải quyết bài toán gán nhãn IOB cho câu.

Dự án cung cấp mã nguồn Python dựa trên TensorFlow để rút trích các khía cần (aspect) trong câu đánh giá sản phẩm. Đưa câu vào, mô hình gán nhãn IOB (B-A, I-A, O) cho từng từ để xác định đoạn chứa khía cảnh.

✨ Điểm nổi bật

  • Dữ liệu XML → IOB: chuyển đổi tự động bằng xmlToIOB.py.
  • Xây dựng từ vựng & GloVe: dùng build_data.py để cắt vector GloVe theo cấu hình.
  • Huấn luyện mô hình: chạy train.py.
  • Đánh giá & tương tác: dùng evaluate.py.
  • Ba kiến trúc paralleling: BiLSTM+CRF, CNN+maxpool+CRF, MLP+CRF.
  • Kết quả mạnh: F1 lên tới 88.42 (đánh giá khớp một phần).

💡 Vì sao đáng chú ý

Ba mô hình dùng cùng một pipeline nhưng kiến trúc khác nhau, phù hợp cho so sánh trực tiếp trên tập dữ liệu SemEval 2014/2016. Kết quả tốt nhất đạt F1 ~88%, tốt cho bài toán khai thác ý kiến người dùng từ đánh giá sản phẩm.


#AspectExtraction #SentimentAnalysis #TensorFlow #BiLSTMCRF #CNNCRF #SemEval #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryPython
nl8590687/ASRT_SpeechRecognition

A Deep-Learning-Based Chinese Speech Recognition System 基于深度学习的中文语音识别系统

8.4k
Apr 10, 2026
RepositoryPython
ScalaConsultants/Aspect-Based-Sentiment-Analysis

💭 Aspect-Based-Sentiment-Analysis: Transformer & Explainable ML (TensorFlow)

584
Sep 7, 2026
RepositoryPython
jidasheng/bi-lstm-crf

A PyTorch implementation of the BI-LSTM-CRF model.

263
Oct 30, 2024
RepositoryPython
heshenghuan/LSTM-CRF

A (CNN+)RNN(LSTM/BiLSTM)+CRF model for sequence labelling.:smirk:

139
Jan 9, 2018
RepositoryPython
yafangy/Review_aspect_extraction

CNN-based model to realize aspect extraction of restaurant reviews based on pre-trained word embeddings and part-of-speech tagging

102
Jul 12, 2019
RepositoryJupyter Notebook
bentrevett/pytorch-sentiment-analysis

Tutorials on getting started with PyTorch and TorchText for sentiment analysis.

4.6k
Mar 27, 2024
Modeltext-classification
yangheng/deberta-v3-base-absa-v1.1

State-of-the-Art Multilingual Sentiment Analysis Multilingual - English, Chinese, Arabic, Dutch, French, Russian, Spanish, Turkish, etc. Tired of the high costs, slow latency, and massive computational footprint of Large Language Models? This is the...

♥0
47.2k
Aug 12, 2025
Repository
HanXinzi-AI/awesome-NLP-resources

a collection of NLP projects&tools. 自然语言处理方向项目和工具集合。

240
Jun 3, 2024
RepositoryHTML
wayfair-incubator/extra-model

Code to run the ExtRA algorithm for unsupervised topic/aspect extraction on English texts.

53
Aug 12, 2026