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.

Version: 0.1.0
Depends: R (≥ 4.4.0)
Imports: stringr, textclean, magrittr, text2vec, ranger, caret, parallel, stats, Matrix
Suggests: rmarkdown, knitr, testthat (≥ 3.0.0)
Published: 2025-05-12
Author: Yusong Zhao [aut], Fangyi Wang [aut, cre], Zisheng Qu [aut]
Maintainer: Fangyi Wang <123090550 at link.cuhk.edu.cn>
License: GPL-2
NeedsCompilation: no
CRAN checks: text2emotion results

Documentation:

Reference manual: text2emotion.pdf
Vignettes: text2emotion (source, R code)

Downloads:

Package source: text2emotion_0.1.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): text2emotion_0.1.0.tgz, r-oldrel (arm64): text2emotion_0.1.0.tgz, r-release (x86_64): text2emotion_0.1.0.tgz, r-oldrel (x86_64): text2emotion_0.1.0.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=text2emotion to link to this page.