Back to Trending
RepositoryPythonCNChina
Lan-ce-lot

Lan-ce-lot/pythorch-text-classification

对豆瓣影评进行文本分类情感分析,利用爬虫豆瓣爬取评论,进行数据清洗,分词,采用BERT、CNN、LSTM等模型进行训练,采用tensorboardX可视化训练过程,自然语言处理项目\A project for text classification, based on torch 1.7.1

174stars
10forks
1issues
3views

🤖 Phân loại văn bản và phân tích cảm xúc Douban bằng mạng nơợn

Dự án mã nguồn phân tích cảm xúc bình luận Douban sử dụng BERT, CNN, LSTM và giao diện Qt5.

Dự án pythorch-text-classification là một dự án khoa học đơn giản dựa trên mạng nơợn, dùng để phân loại văn bản và phân tích cảm xúc từ các bình luận trên Douban. Dự án thu thập dữ liệu bằng Scrapy, xử lý và huấn luyện mô hình bằng PyTorch, đồng thời hỗ trợ đa dạng kiến trúc như BERT, ERNIE, RNN, CNN.

✨ Điểm nổi bật

  • Cào dữ liệu Douban: Sử dụng Scrapy thu thập bình luận từ Douban, xử lý chống chặn IP bằng proxy và User-Agent ngẫu nhiên.
  • Đa mô hình hỗ trợ: Hỗ trợ huấn luyện với BERT, ERNIE, RNN, CNN chỉ bằng một lệnh.
  • Tích hợp TensorBoard: Theo dõi quá trình huấn luyện và đánh giá bằng TensorBoard.
  • Giao diện Qt5: Ứng dụng desktop sử dụng PythonQt để nhập văn bản và hiển thị kết quả phân tích cảm xúc.
  • Kết quả huấn luyện rõ rệt: BERT đạt 92% độ chính xác trên tập test, vượt trội so với BiLSTM.
  • Môi trường tái tạo: Hỗ trợ cài đặt qua conda hoặc pip.

💡 Vì sao đáng chú ý

Dự án cung cấp một pipeline hoàn chỉnh từ thu thập dữ liệu, tiền xử lý, huấn luyện mô hình đến triển khai giao diện người dùng. Sự kết hợp giữa các mô hình hiện đại như BERT và ERNIE giúp dự án đạt được độ chính xác cao, đồng thời hỗ trợ so sánh hiệu năng với các mô hình truyền thống như CNN hoặc LSTM. Dự án phù hợp cho việc học tập và nghiên cứu trong lĩnh vực NLP.


#NLP #TextClassification #BERT #SentimentAnalysis #Douban #TiniX

Similar Projects

Discover other similar projects and AI models.

Modeltext-classification
ProsusAI/finbert

FinBERT is a pre-trained NLP model to analyze sentiment of financial text. It is built by further training the BERT language model in the finance domain, using a large financial corpus and thereby fine-tuning it for financial sentiment classification...

♥0
3.2M
Oct 12, 2026
RepositoryPython
hankcs/HanLP

Natural Language Processing for the next decade. Tokenization, Part-of-Speech Tagging, Named Entity Recognition, Syntactic & Semantic Dependency Parsing, Document Classification

36.5k
Nov 7, 2026
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.4k
Nov 22, 2026
RepositoryJupyter Notebook
graykode/nlp-tutorial

Natural Language Processing Tutorial for Deep Learning Researchers

14.9k
Feb 21, 2024
RepositoryRust
huggingface/tokenizers

💥 Fast State-of-the-Art Tokenizers optimized for Research and Production

11.2k
Nov 17, 2026
RepositoryJupyter Notebook
bentrevett/pytorch-sentiment-analysis

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

4.6k
Mar 27, 2024
RepositoryPython
666ghj/BettaFish

微舆:人人可用的多Agent舆情分析助手,打破信息茧房,还原舆情原貌,预测未来走向,辅助决策!从0实现,不依赖任何框架。

42.8k
Oct 16, 2026
RepositoryPython
google-research/bert

TensorFlow code and pre-trained models for BERT

40.0k
Jul 23, 2024
RepositoryPython
explosion/spaCy

💫 Industrial-strength Natural Language Processing (NLP) in Python

34.1k
Oct 27, 2026