RepositoryPython
yafangy

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

102sao
27fork
9issue
2lượt xem

🔍 Trích xuất aspect từ review bằng CNN ba nguồn embedding

Mô hình CNN kết hợp GloVe + embedding miền + POS tag để trích xuất chính xác aspect trong đánh giá nhà hàng.

Dự án Review_aspect_extraction của yafangy dựa trên paper "Double Embeddings and CNN-based Sequence Labeling for Aspect Extraction" (Xu, Liu, Shu, Yu - 2018), nâng cấp thành "triple embeddings" bằng cách thêm POS tag. Mô hình dùng CNN để gán nhãn chuỗi, trích xuất các aspect (đặc điểm) mà người dùng đưa ra trong review, hỗ trợ phân tích cảm xúc chi tiết.

✨ Điểm nổi bật

  • Triple embeddings: Kết hợp GloVe chung + embedding miền (gensim-word2vec) + POS tag Stanford.
  • CNN + Fully-connected: Feature map từ conv layer được nối với embedding và POS, đưa qua mạng NN một hidden layer (size 50).
  • Hỗ trợ CRF: Tùy chọn sử dụng Conditional Random Field để cải thiện kết quả gán nhãn.
  • Pre-trained model: Đã bao gồm mô hình huấn luyện trên SemEval 2016 Restaurant, sẵn sàng đánh giá.
  • Hỗ trợ đánh giá tùy chỉnh: Chạy trên file review bất kỳ (ví dụ: Yelp reviews) để trích xuất aspect.
  • Tùy chỉnh siêu tham số: Điều chỉnh learning rate, dropout, số epoch, kích thước validation.

💡 Vì sao đáng chú ý

Khác với cách tiếp cận chỉ dùng một loại embedding, mô hình này kết hợp ba nguồn thông tin phong phú: kiến thức chung (GloVe), kiến thức miền (word2vec), và cấu trúc ngữ pháp (POS tag). Điều này giúp mô hình hiểu sâu hơn ngữ cảnh và trích xuất chính xác các aspect trong review nhà hàng.

Phù hợp cho các ứng dụng phân tích cảm xúc sâu (aspect-based sentiment analysis), đặc biệt trên dữ liệu đánh giá sản phẩm/dịch vụ. Người dùng có thể huấn luyện lại trên domain khác bằng cách tạo embedding miền mới.


#AspectExtraction #CNN #SentimentAnalysis #NLP #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.

RepositoryHTML
wayfair-incubator/extra-model

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

53
Aug 12, 2026
RepositoryPython
fendouai/PyTorchDocs

PyTorch 官方中文教程包含 60 分钟快速入门教程,强化教程,计算机视觉,自然语言处理,生成对抗网络,强化学习。欢迎 Star,Fork!

3.0k
Jul 28, 2026
RepositoryPython
neomatrix369/nlp_profiler

A simple NLP library allows profiling datasets with one or more text columns. When given a dataset and a column name containing text data, NLP Profiler will return either high-level insights or low-level/granular statistical information about the text in that column.

244
May 12, 2024
RepositoryPython
soujanyaporia/aspect-extraction

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

159
May 16, 2021
Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...

♥0
157.6M
Jun 1, 2026
RepositoryJavaScript
cagataycali/lazy

Lazy, AI chatbot service.

161
Jan 9, 2023
RepositoryPython
huggingface/transformers

🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.

169.5k
Dec 1, 2026
RepositoryTypeScript
firecrawl/firecrawl

Firecrawl is the knowledge infrastructure to make your agents smarter. It connects your agents to the web, and to Alexandria, our library of everything else.

215.1k
Dec 2, 2026
RepositoryC++
tensorflow/tensorflow

An Open Source Machine Learning Framework for Everyone

201.9k
Dec 1, 2026