text2emotion: Emotion Analysis and Emoji Mapping for Text

Allows users to analyze text and classify emotions such as happiness, sadness, anger, fear, and neutrality. It combines text preprocessing, TF-IDF (Term Frequency-Inverse Document Frequency) feature extraction, and Random Forest classification to predict emotions and map them to corresponding emojis for enhanced sentiment visualization.

Getting started

Package details

AuthorYusong Zhao [aut], Fangyi Wang [aut, cre], Zisheng Qu [aut]
MaintainerFangyi Wang <123090550@link.cuhk.edu.cn>
LicenseGPL-2
Version0.1.0
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("text2emotion")

Try the text2emotion package in your browser

Any scripts or data that you put into this service are public.

text2emotion documentation built on June 8, 2025, 1:04 p.m.