Skip to main content

Emotion("fear", "anger", "surprise", "sadness", "disgust", "joy") and Sentiment("Positive","Negative") Analysis

Project description

esanalyzer

The Python Emotion Analysis and Sentiment Analysis library you've been looking for.

## Services
- Emotion Analysis("fear", "anger", "surprise", "sadness", "disgust", "joy")
- Sentiment Analysis("Positive","Negative")
- Multi Language Support

## Supported Python Version
- 3.12.3

## Usage
- Install using `pip install esanalyzer`

```python
from esanalyzer import EmotionAnalyzer

#Instance Config
#default requiredOnly = {"sentiment":True,"emotions":False,"googleTranslate":False}
requiredOnly = {"sentiment":True,"emotions":True,"googleTranslate":True}

# Create an instance of EmotionAnalyzer
analyzer = EmotionAnalyzer(requiredOnly)

# Call the analyze method with the text
text = "Wow, I am so happy"
result = analyzer.analyze(text)

# Use the result as needed
print(result)


{'library': 'default', 'result': {'surprise': 80}, 'max_prediction': {'label': 'surprise', 'percentage': 80}, 'sentiment': 'Positive', 'sentiment_score': 0.999592125415802, 'threshold_value': 0.8}

```

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

esanalyzer-1.1.0-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file esanalyzer-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: esanalyzer-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.7

File hashes

Hashes for esanalyzer-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6387b0d9c305b5bb49e80ae29ff03c557c820e1418ee78f2e98a2b5e0a6883c3
MD5 80fee3a8bf1950672c8a916453900ead
BLAKE2b-256 e746bef32005bf45fbcbe3fbb3d56f8a08b77c795b92635aeb9a71c4cf01f86d

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