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

Uploaded Python 3

File details

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

File metadata

  • Download URL: esanalyzer-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 8.6 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6ed33069fdcfc6a7edc29488bdfebb585621523d130194a9926ad326aa442564
MD5 9d938d5976c596eafddaf6052f29ecbc
BLAKE2b-256 04436e6e192d5c99c00b662742c9a7e4c68f5b9d03831eb44b61435e076d4df9

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