Skip to main content

Nade Python Package

This is the Python package version of Nade, a model that allows to infer basic emotions from social media messages (live demo). While human raters are often too resource-intensive, lexical approaches face challenges regarding incomplete vocabulary and the handling of informal language. Even advanced machine learning-based approaches require substantial resources (expert knowledge, programming skills, annotated data sets, extensive computational capabilities) and tend to gauge the mere presence, not the intensity, of emotion. This package solves this issue by predicting a vast array of emojis based on the surrounding text, then reduces these predicted emojis to an established set of eight basic emotions.

Architecture

Usage

After installation, the module can be loaded and the predict method can be used for inference.

from nade import Nade

n = Nade()
n.predict('I love this')

The method returns a dictionary containing the scores for all eight basic emotions.

{
 'anger': [0.004],
 'anticipation': [0.15],
 'disgust': [0.017],
 'fear': [0.027],
 'joy': [0.451],
 'sadness': [0.02],
 'surprise': [0.142],
 'trust': [0.242]
}

Installation

The package can be installed as follows:

pip install nade

Performance

The prediction method features a lleaves option that provides much faster inference. However, you will have to install lleaves first.

Notes

  • Usage on Apple M1 chips require additional dependencies (i.e., brew install cmake libomp)

Links

Metadata

Release files for nade 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nade 0.3.1
File Size Uploaded Provenance Actions
nade-0.3.1.tar.gz 13.4 MB With provenance Details for nade-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nade 0.3.1
File Interpreter ABI Platform Actions
nade-0.3.1-py3-none-any.whl Python 3 none any Details for nade-0.3.1-py3-none-any.whl

Total release size: 26.7 MB

Release files / nade-0.3.1.tar.gz

Download URL nade-0.3.1.tar.gz
Size 13.4 MB
Tags Source
SHA-256 checksum
How to use checksums
c3fff7bbf886b77470d2f00b97301299cb13048d38fa0d4a8c73dfbda892842f
BLAKE2b-256 checksum
How to use checksums
f59a8809148f75dc51b8ce292d9ac1595b3c6377c056544c9b86156f7f952f92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 31, 2025.

Transparency log

Release files / nade-0.3.1-py3-none-any.whl

Download URL nade-0.3.1-py3-none-any.whl
Size 13.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
9759bf26307b0515f54aee3f22d25b263c8a8583cd543aa655cfc8ee125db791
BLAKE2b-256 checksum
How to use checksums
8ca6cc0db3a79cdf2210aa5a234fadb5e9886f79e472c55e1294912096fc34df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 31, 2025.

Transparency log

Security for nade 0.3.1

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for nade-0.3.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 31, 2025.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page