SoulDGXu/Sentiment-Analysis-Chinese-pytorch

中文的情感分析任务:基于Bi-LSTM+Attention模型,对2万条中文影评数据进行情感分类。Chinese sentiment analysis task: Based on the Bi-LSTM+Attention model, sentiment classification is performed on 20,000 Chinese film review data.

31
/ 100
Emerging

Implements a complete NLP pipeline with Chinese text preprocessing using jieba tokenization, stopword filtering, and pre-trained Word2Vec embeddings to build semantic representations before classification. The BiLSTM+Attention architecture uses a bidirectional encoder with learned attention weights to dynamically focus on different input sequence positions, enabling the model to identify salient sentiment-bearing phrases across variable-length reviews. Built in PyTorch with modular components for data processing, model training, and evaluation metrics (accuracy, precision, recall, F1), featuring balanced binary classification (positive/negative) on 20K Chinese film reviews with separate train/validation/test splits.

127 stars. No commits in the last 6 months.

No License Stale 6m No Package No Dependents
Maintenance 0 / 25
Adoption 10 / 25
Maturity 8 / 25
Community 13 / 25

How are scores calculated?

Stars

127

Forks

13

Language

Python

License

Last pushed

Mar 03, 2022

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/nlp/SoulDGXu/Sentiment-Analysis-Chinese-pytorch"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.