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.
SentiToolKit is a simple sentiment analysis library that leverages LSTM (Long Short-Term Memory) neural networks for predicting the sentiment of a given text. This toolkit provides a streamlined interface for text preprocessing, model loading, and prediction.
Positive
, Neutral
, or Negative
.You can install the SentiToolKit
package via pip:
pip install SentiToolKit==1.0.8
Alternatively, if you'd like to build from source:
Clone the repository:
git clone https://github.com/yourusername/SentiToolKit.git
Navigate to the project directory and install the package:
cd SentiToolKit
pip install .
To get started with SentiToolKit, follow the example below:
# test_model.py
# Import the SentiToolKit class from your package
from SentiAnalyzer.Main_tensor_model import SentiToolKit
def main():
# Instantiate the model
model = SentiToolKit()
# Get user input for testing
review = input("Enter a review for sentiment analysis: ")
# Call the model to get the sentiment
sentiment = model.__call__(review)
# Print the result
print("Sentiment Analysis Result:", sentiment)
if __name__ == "__main__":
main()
.keras
file.tokenizer.pkl
.Positive
Neutral
Negative
SentiToolKit/
├── converter.py
├── converter1.py
├── dataExtractor.py
├── tensor_model.py
├── usage.py
├── json/
│ ├── backup.json
│ ├── negative_reviews.json
│ ├── neutral_reviews.json
│ ├── positive_reviews.json
│ └── train.json
├── SentiAnalyzer/
│ ├── __init__.py
│ ├── Main_tensor_model.py
│ ├── SentiToolKit.keras
│ └── tokenizer.pkl
├── tests/
├── text/
├── .env
├── .gitignore
├── LICENSE
├── MANIFEST.in
├── pyproject.toml
├── README.md
├── SentiToolKit.keras
├── setup.py
└── tokenizer.pkl
This project is licensed under the GNU AFFERO GENERAL PUBLIC LICENSE Version 3,. See the LICENSE file for details.
Contributions are welcome! If you’d like to contribute to SentiToolKit, feel free to fork the repository and submit a pull request.
FAQs
A sentiment analysis toolkit using a trained TensorFlow model
We found that SentiToolKit 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.