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.1.tar.gz (9.7 MB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for emoatlas-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c0476ccb34e06338dc730dcc82490a5854d0c242ee13673cfe1be1757aed5b86
MD5 bdf721f41a01c3966343b025d71ae2b2
BLAKE2b-256 26ea12992705689efcc4bbe262409081a5e0b4857fcf278439caab7a81cf6e34

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for emoatlas-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6fe1950a4ab5648a93728118eacfc1c725f9c3c8eae93461ca66bfadb2872fbd
MD5 7d89dc60144f53b46301abb17cdb9099
BLAKE2b-256 4da53ae71a6d7d228f50fb1cffbbcc5877cbe8db6188b5e31dff5f92f1546cdb

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