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}
```
Metadata
Release files for esanalyzer 1.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| esanalyzer-1.2.2-py3-none-any.whl | Python 3 | none | any | Details for esanalyzer-1.2.2-py3-none-any.whl |
Release files / esanalyzer-1.2.2-py3-none-any.whl
| Download URL | esanalyzer-1.2.2-py3-none-any.whl |
|---|---|
| Size | 8.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
997ef996fac73d4023649bd11d8d53988f8bb5399654401284925f693e78cc54
|
|
BLAKE2b-256 checksum How to use checksums |
540975e6dc966c7306d38d38fc0399da85480379228f369d5b482ecf71d2cd08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.7
|
Security for esanalyzer 1.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.