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.
Metadata
Release files for emoatlas 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| emoatlas-0.1.6.tar.gz | 9.7 MB | Without provenance | Details for emoatlas-0.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| emoatlas-0.1.6-py3-none-any.whl | Python 3 | none | any | Details for emoatlas-0.1.6-py3-none-any.whl |
Total release size: 13.5 MB
Release files / emoatlas-0.1.6.tar.gz
| Download URL | emoatlas-0.1.6.tar.gz |
|---|---|
| Size | 9.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ef9c52ea023992f309933023be6069fa5281ac16b41cda173c96507cba95c8b6
|
|
BLAKE2b-256 checksum How to use checksums |
00c83f56713bbcf47b558bc877706d67e3f78ded2e19c24deffb683bb89717f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / emoatlas-0.1.6-py3-none-any.whl
| Download URL | emoatlas-0.1.6-py3-none-any.whl |
|---|---|
| Size | 3.8 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
99c14c5f7372e8090e0b8c9d578a4a4ec0b9dbae5dc91bab415de6edf6a31a8e
|
|
BLAKE2b-256 checksum How to use checksums |
ed82ff89d850c92dceb8aeb5ea7d4c8bbd4369ee072e41568118e941bf7a855a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Security for emoatlas 0.1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.