Skip to main content

Emotion("fear", "anger", "surprise", "sadness", "disgust", "joy") and Sentiment("Positive","Negative","Neutral") 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","Neutral")
- Multi Language Support
- Emoji Support
- Unicodedata Support
- Filter Out Special Characters

## 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

If you're not sure about the file name format, learn more about wheel file names.

esanalyzer-1.2.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: esanalyzer-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.7 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e27aed2671a0448e07ffd8f29d3e04deec9cda7d0acc3c912e9815c7ec7a3787
MD5 54c6f15dcd30bcacae8a235abb38c76f
BLAKE2b-256 406f674f82eb5e7a0173cfd24149b77a60b0b323625df5ef7208baa490a2d2c9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page