OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Models

Cs291K

Cs291K is a Python and TensorFlow code repository for training and validating neural-network models that analyze sentiment in Twitter text. It includes CNN-LSTM and LSTM-CNN model classes, a training runner and functions for dataset preprocessing and tokenization.

Independent OpenViST project profile, based on linked sources.

Cs291K — Training and validating either of the repository’s two model variants
OpenViST project illustration. See the linked sources for product details.
Understand the project

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.
Before you choose

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.

Source-based practical guide

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

  1. Install the listed dependencies with sudo -H pip install -r requirements.txt.

  2. In train.py, set MODEL_TO_RUN to 0 for CNN-LSTM or 1 for LSTM-CNN.

  3. Run the command below; the README also lists ./train.py as an option with proper permissions.

    Documented command
    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.
Evidence and transparency

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