OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Models

Reactionrnn

Reactionrnn is a Python module and R package that uses a pretrained recurrent neural network to estimate proportions for five reactions—love, wow, haha, sad and angry—from text. It also provides a 256-dimensional text encoding.

Independent OpenViST project profile, based on linked sources.

Reactionrnn — Short text inputs of up to 140 characters
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it to derive reaction-proportion features from short text when five specific reaction labels are relevant to the analysis.

Who it is for

  • Python or R developers adding reaction-based signals to text analysis.
  • Practitioners who want reaction proportions as an additional sentiment-analysis feature.

Documented uses

  • Estimate the relative distribution of five reaction labels for a text.
  • Generate a 256-dimensional representation of text for another machine-learning model.
Before you choose

Requirements & limits

The repository identifies the project as MIT-licensed open source. The README documents installation through pip for Python and through devtools from GitHub for R.

  • The five output values are proportions that sum to one, rather than separate probabilities.
  • Text is handled at the character level, incorporating capitalization, grammar, length and punctuation.
  • Inputs longer than 140 characters are truncated to the first 140 characters.
  • The README says the model reflects 2016–2017 language and may score rhetorical or ironic statements unexpectedly.
  • A GPU is not required; the package includes the pretrained model weights.

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

Install and predict reaction proportions with Python

Install the Python package and use its pretrained model to predict reaction proportions for a text string.

Before you start

  • Python 3 with pip; a virtual environment may be created first.

Steps

  1. Optionally create a virtual environment with the command below.

    Documented command
    python3 -m venv 
  2. Install the package with the command below.

    Documented command
    python3 -m pip install reactionrnn
  3. In Python, import reactionrnn, create an instance with react = reactionrnn(), and call react.predict("Happy Mother's Day from the Chicago Cubs!").

Expected outcome

The model returns proportional values for love, wow, haha, sad, and angry; the README example sums to 1.

Guide limitations

  • The model accepts input of up to 140 characters.
  • Returned values are predicted proportions, not label probabilities.
  • The README notes that full documentation is forthcoming; it links a Python demo notebook for common features.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
20 November 2026
Original website title
minimaxir/reactionrnn · Official homepage title · retained in its source language