Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.