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.2-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: esanalyzer-1.2.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 997ef996fac73d4023649bd11d8d53988f8bb5399654401284925f693e78cc54
MD5 4b32d3863b2789c01f9dd17d631a0c56
BLAKE2b-256 540975e6dc966c7306d38d38fc0399da85480379228f369d5b482ecf71d2cd08

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