Skip to main content

No project description provided

Project description

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 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.

This library uses Natural Language Toolkit (NLTK) as a core dependency. If this is the first time you're using NLTK, you need to download its data depending on the language you are interested in.

import nltk
nltk.download('wordnet') #English

Usage and Guides

See the Jupyter notebooks in demos/ for examples of how to use emoatlas (Jupyter notebook required). Guides and other information about the package are also available in that folder.

Google Colab

A Google Colab simple demo is also available here.

It is suggested to refer to the guides of the demos/ folder to understand how to use the package.

Acknowledgements

Thanks to @FinleyGibson and @GiulioRossetti for their contribution to the testing, debugging and refactoring this library.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

emoatlas-0.1.6.tar.gz (9.7 MB view details)

Uploaded Source

Built Distribution

emoatlas-0.1.6-py3-none-any.whl (3.8 MB view details)

Uploaded Python 3

File details

Details for the file emoatlas-0.1.6.tar.gz.

File metadata

  • Download URL: emoatlas-0.1.6.tar.gz
  • Upload date:
  • Size: 9.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for emoatlas-0.1.6.tar.gz
Algorithm Hash digest
SHA256 ef9c52ea023992f309933023be6069fa5281ac16b41cda173c96507cba95c8b6
MD5 2f68b9b78028d4fc512655f6c075bb9f
BLAKE2b-256 00c83f56713bbcf47b558bc877706d67e3f78ded2e19c24deffb683bb89717f8

See more details on using hashes here.

File details

Details for the file emoatlas-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: emoatlas-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 3.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for emoatlas-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 99c14c5f7372e8090e0b8c9d578a4a4ec0b9dbae5dc91bab415de6edf6a31a8e
MD5 17ed58c1e215ad8fa9564463ed91efd5
BLAKE2b-256 ed82ff89d850c92dceb8aeb5ea7d4c8bbd4369ee072e41568118e941bf7a855a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page