Sentio is a sentiment analysis web application based on LSTM built using TensorFlow, Streamlit and other essential libraries. It allows users to classify text comments as Positive, Negative, or Neutral and classify Toxicity contents in the comment by simply entering text into a text field.
- Classifies comments into Positive, Negative, or Neutral categories.
- Identify Toxic contents in comments
- Provides a user-friendly interface using Streamlit.
- Uses a LSTM model for sentiment classification.
- Visualizes the sentiment prediction and toxicity with color-coded progress bars.
- Streamlit: For building the web interface.
- TensorFlow: For deep learning and sentiment classification.
- Keras: For implementing the neural network model.
- Pandas: For data manipulation.
- NumPy: For numerical computations.
- Pickle: For saving and loading the tokenizer model.
- sklearn: For splitting data and preprocessing
To install the required packages, create a virtual environment and install the dependencies from requirements.txt:
pip install -r requirements.txtThe requirements.txt file should include:
streamlit
pandas
numpy
tensorflow-cpu
pickle-mixin
sklearn
-
Clone the repository to your local machine:
git clone https://github.com/RijoSLal/sentio.git
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the Streamlit app:
streamlit run sentio.py
-
Open your browser and go to
http://localhost:8501to use the Sentio app.
- sentio.py: The Streamlit app for the sentiment analysis interface.
- sentiment.h5: The trained sentiment analysis model.
- tokenizer.pkl: The tokenizer used to preprocess input text.
- train.csv: The training dataset.
- test.csv: The test dataset.
- toxic_data.csv: the dataset for toxicity detection
- sentiment_toxic.h5: The trained toxicity recognition model.
- tokenizer_toxic.pkl: The tokenizer used to preprocess toxic text.
This project is licensed under the MIT License. Feel free to modify, use, and distribute the code in any way you like. See the LICENSE file for details.