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
Built Distribution
File details
Details for the file emoatlas-0.1.5.tar.gz
.
File metadata
- Download URL: emoatlas-0.1.5.tar.gz
- Upload date:
- Size: 9.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3112161519c50854498a47dfe2db87f17d32107dad4c3c17de823f6a05348671 |
|
MD5 | b08d2de1953b7ce68736e3922b98e751 |
|
BLAKE2b-256 | cc97e1845a517b031a4166476a46ff4278fe8bcc864c92d7ac9810f4b59f449d |
File details
Details for the file emoatlas-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: emoatlas-0.1.5-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.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb5434da63339f98e42e33809d17aa68332837951afa7e6d58fcd2a9406c3cda |
|
MD5 | efd4c65f2b697b22cc676e4af9df4ba7 |
|
BLAKE2b-256 | 22289057d28d41eec21cc3d99faa3c90cd56eda5eb9a9a8f37294142015e51b5 |