RepositoryPythonUSUnited States
kenqgu

kenqgu/Text-GCN

A PyTorch implementation of "Graph Convolutional Networks for Text Classification." (AAAI 2019)

131stars
24forks
11issues
0views

🧠 Text-GCN: Phân loại văn bản bằng Graph Convolutional Network

Một implement PyTorch của giấy "Graph Convolutional Networks for Text Classification" (AAAI 2019), xây dựng đồ thị văn bản duy nhất để học embedding cho cả từ và tài liệu.

Text-GCN là implement PyTorch của nghiên cứu đề xuất dùng Graph Convolutional Networks (GCN) cho phân loại văn bản. Thay vì dùng CNN truyền thống trên lưới tuần tự, dự án xây dựng một đồ thị văn bản dựa trên độ đồng xuất hiện của từ và mối quan hệ giữa tài liệu và từ, sau đó huấn luyện mạng GCN để học đồng thời embedding cho cả từ và tài liệu. Mô hình khởi tạo bằng one-hot và được giám sát bởi nhãn lớp của tài liệu.

✨ Điểm nổi bật

  • One-hot khởi tạo: Không cần embedding từ bên ngoài, mô hình tự học embedding từ và tài liệu.
  • Đồ thị văn bản đơn: Xây dựng một đồ thị duy nhất cho toàn bộ corpus dựa trên độ đồng xuất hiện từ và quan hệ tài liệu-từ.
  • Học đồng thời embedding: Học embedding cho cả từ (green nodes) và tài liệu (red nodes) trong cùng một mạng.
  • Siêu học qua nhãn tài liệu: Sử dụng nhãn lớp của tài liệu để đưa hướng học cho toàn bộ đồ thị.
  • Bất kể dữ liệu huấn luyện ít: Hiệu quả cải thiện lớn hơn khi dùng ít dữ liệu huấn luyện.
  • Hỗ trợ nhiều dataset: Bao gồm dataset twitter chống phân biệt đối xử châu Á, Reuters-8 và AG's News.
  • Cấu hình linh hoạt: Điều chỉnh model và dataset qua file config.py, hỗ trợ tracking bằng comet.ml.

💡 Vì sao đáng chú ý

Text-GCN khác biệt vì không dựa vào embedding từ bên ngoài như Word2Vec hay GloVe mà vẫn vượt trội so với các phương pháp truyền thống. Điều này chứng tỏ khả năng biểu diễn đồ thị văn bản có tiềm năng lớn. Đặc biệt, mô hình vẫn duy trì hiệu suất tốt ngay cả khi lượng dữ liệu huấn luyện giảm, cho thấy tính vững chắc trong thực tế.


#TextGCN #GraphConvolutionalNetworks #TextClassification #PyTorch #MachineLearning #TiniX

Similar Projects

Discover other similar projects and AI models.

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
190.2M
Jun 1, 2026
RepositoryC++
tensorflow/tensorflow

An Open Source Machine Learning Framework for Everyone

201.2k
Oct 24, 2026
Modeltext-ranking
cross-encoder/ms-marco-MiniLM-L6-v2

Cross-Encoder for MS Marco This model was trained on the MS Marco Passage Ranking(https://github.com/microsoft/MSMARCO-Passage-Ranking) task. The model can be used for Information Retrieval: Given a query, encode the query will all possible passages...

♥0
71.4M
Aug 9, 2026
RepositoryPython
keras-team/keras

Deep Learning for humans

64.4k
Oct 20, 2026
RepositoryPython
ultralytics/ultralytics

Ultralytics YOLO27, YOLO26, YOLO11, YOLOv8 — object detection, instance segmentation, semantic segmentation, image classification, pose estimation, object tracking

62.9k
Oct 26, 2026
RepositoryJupyter Notebook
rasbt/LLMs-from-scratch

Implement a ChatGPT-like LLM in PyTorch from scratch, step by step

107.3k
Oct 2, 2026
RepositoryJupyter Notebook
GokuMohandas/Made-With-ML

Learn how to develop, deploy and iterate on production-grade ML applications.

49.8k
Mar 4, 2026
RepositoryPython
labmlai/annotated_deep_learning_paper_implementations

🧑‍🏫 60+ Implementations/tutorials of deep learning papers with side-by-side notes 📝; including transformers (original, xl, switch, feedback, vit, ...), optimizers (adam, adabelief, sophia, ...), gans(cyclegan, stylegan2, ...), 🎮 reinforcement learning (ppo, dqn), capsnet, distillation, ... 🧠

67.6k
Jan 22, 2026
RepositoryPython
labmlai/annotated_deep_learning_paper_implementations

🧑‍🏫 60+ Implementations/tutorials of deep learning papers with side-by-side notes 📝; including transformers (original, xl, switch, feedback, vit, ...), optimizers (adam, adabelief, sophia, ...), gans(cyclegan, stylegan2, ...), 🎮 reinforcement learning (ppo, dqn), capsnet, distillation, ... 🧠

67.6k
Jan 22, 2026