GiulioRossetti / emoatlas

A Python library for the detection and visualization of emotions in texts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A Python library for the detection and visualization of emotions in texts, coming soon with the first release ✨

Description

EmoAtlas is a Python library that checks against the input text, after having enriched it and structured as a semantic network, against the multilingual NRC Lexicon. The library is built upon the Formamentis Networks from Stella et al. and the PyPlutchik library (paper here).

It has already been used for our analysis of the semantic and emotional frames around COVID-19 vaccines, repository here.

Installation

emolib installs with pip:

~$ pip install git+https://github.com/alfonsosemeraro/emoatlas

then install the relevant language using:

~$ python -m spacy download en_core_web_lg

the command above installs English, but a list of possible language codes can be found here, and different languages installed by changing en in the final argument to one of the listed language codes.

Usage

See the Jupyter notebooks in demos/ for examples of how to use emoatlas (Jupyter notebook required)

About

A Python library for the detection and visualization of emotions in texts


Languages

Language:Python 100.0%