Practical overview
When it fits
Use Cs291K when you want source code for a hands-on experiment with two combined CNN and LSTM architectures for Twitter sentiment analysis, rather than a hosted analysis tool.
Who it is for
- Developers exploring neural-network approaches to Twitter sentiment analysis.
- Researchers comparing CNN-LSTM and LSTM-CNN model orderings.
- Developers adapting a short-text preprocessing and tokenization pipeline for sentiment-analysis experiments.
Documented uses
- Select a CNN-LSTM or LSTM-CNN model and train and validate it using the repository’s runner.
- Inspect and modify preprocessing and tokenization functions for a sentiment-analysis dataset.
- Compare the two model orderings by changing the training script’s model-selection variable.
Requirements & limits
The repository is public and provides runnable source code. The available repository information does not state a license.
- The README specifies two model choices through MODEL_TO_RUN: 0 selects CNN-LSTM and 1 selects LSTM-CNN.
- Dependencies are installed from requirements.txt; the README does not specify Python or TensorFlow versions.
- The training runner is documented, but dataset acquisition and configuration are not described in the README.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Select and run a model training script
Choose one of the two model orderings and start training and validation from the repository’s main script.
Before you start
- A local copy of the public repository.
- Python and the dependencies listed in requirements.txt.
Steps
Install the listed dependencies with
sudo -H pip install -r requirements.txt.In train.py, set MODEL_TO_RUN to 0 for CNN-LSTM or 1 for LSTM-CNN.
Run the command below; the README also lists
./train.pyas an option with proper permissions.python train.py
Expected outcome
The main runner instantiates the selected model, trains it and validates it.
Guide limitations
- The README does not specify dataset acquisition or configuration details.
- No particular Python or TensorFlow version is stated.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 20 November 2026
- Original website title
- pmsosa/CS291K · Official homepage title · retained in its source language

