Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
taranis-sentiment-analysis
Advanced tools
This project integrates sentiment analysis into Taranis AI, allowing for the classification of news items as positive, negative, or neutral using transformer models. The API intelligently chooses the appropriate model based on the text length, utilizing XLM-RoBERTa for shorter texts and Longformer for longer texts.
To install dependencies:
pip install -r requirements.txt
To start the Flask API:
python -m sentiment_analysis.api.api_multimodel
By default, the API runs at http://127.0.0.1:5003/.
To test the API with a POST request, use curl:
curl -X POST http://127.0.0.1:5003/analyze_sentiment \
-H "Content-Type: application/json" \
-d '{"text": "This is an example sentence to analyze sentiment."}'
{
"sentiment": {
"label": "POSITIVE",
"score": 0.94
}
}
EUROPEAN UNION PUBLIC LICENCE v. 1.2
FAQs
Sentiment analysis Bot for Taranis AI
We found that taranis-sentiment-analysis 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.