Emotion("fear", "anger", "surprise", "sadness", "disgust", "joy") and Sentiment("Positive","Negative") Analysis
Project description
esanalyzer
The Python Emotion 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
## Usage
- Install using `pip install esanalyzer`
```python
from esanalyzer import EmotionAnalyzer
# Create an instance of EmotionAnalyzer
analyzer = EmotionAnalyzer()
# 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
esanalyzer-1.0.4.tar.gz
(8.2 kB
view hashes)
Built Distribution
Close
Hashes for esanalyzer-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 873cfd04d2920574b94ef26514505588f7743199f69b6f49ac42dd02065c5085 |
|
MD5 | 42a54ece58648de1dcb04d168931396d |
|
BLAKE2b-256 | 032ed9705f243d51cfd6ce7d341ae8ea41ced01c4761892e4af8d2eb1d2ff2e2 |