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.5.tar.gz
(8.4 kB
view hashes)
Built Distribution
Close
Hashes for esanalyzer-1.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f23ef9b14f2dc99a0c149901684dfa2ca5683785d353ae0a58fb67f42103f6a4 |
|
MD5 | 4a1c3a390e5dedeab4767cf7d9f11fb0 |
|
BLAKE2b-256 | 3a834585402fd66a47506655977821f3da450c835308118faf65370fb7e4be64 |