BUPTLdy/Sentiment-Analysis
Chinese Shopping Reviews sentiment analysis
What it solves
This project provides a system for classifying the sentiment of Chinese product reviews as either positive or negative. It serves as both a historical record of early sentiment analysis techniques and a modern, reproducible baseline for sentiment classification.
How it works
The project offers two main implementation paths:
- Modern Baseline: A Python 3 compatible CLI tool that uses character-level TF-IDF (Term Frequency-Inverse Document Frequency) to represent text without needing a Chinese word segmentation dictionary, paired with a Linear SVM (Support Vector Machine) for classification.
- Legacy Implementations: Historical code using Word2Vec embeddings combined with either RBF SVM or Keras LSTM networks (designed for Python 2.7 and TensorFlow 1).
Who it’s for
Developers and students looking for a simple, reproducible baseline for Chinese sentiment analysis or those researching the evolution of sentiment classification methods from Word2Vec/LSTM to TF-IDF/SVM.
Highlights
- Dictionary-free: The modern implementation uses character-level TF-IDF, removing the dependency on external Chinese segmentation tools.
- Reproducible: Includes a CLI for training and predicting with fixed random seeds for consistent evaluation.
- Historical Context: Preserves legacy implementations for research and comparison purposes.
- Metadata Tracking: Saves training time, data volume, and accuracy metrics alongside the model.
Related
- Dispatch
- Project
- Project
- Dispatch
- Project