
Product
Socket Now Protects the Chrome Extension Ecosystem
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Emotion("fear", "anger", "surprise", "sadness", "disgust", "joy") and Sentiment("Positive","Negative","Neutral") Analysis
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}
```
FAQs
Emotion("fear", "anger", "surprise", "sadness", "disgust", "joy") and Sentiment("Positive","Negative","Neutral") Analysis
We found that esanalyzer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.