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.
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.
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
Optionally create a virtual environment with the command below.
python3 -m venvInstall the package with the command below.
python3 -m pip install reactionrnnIn Python, import
reactionrnn, create an instance withreact = reactionrnn(), and callreact.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.
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

