https://github.com/danukarangith/simple-sentiment-analyzer_python
This repository contains a simple web application for performing sentiment analysis on text input using Flask and TextBlob. The application allows users to enter text and receive a sentiment analysis result indicating whether the text is positive, negative, or neutral.
https://github.com/danukarangith/simple-sentiment-analyzer_python
python3 textblob
Last synced: 4 days ago
JSON representation
This repository contains a simple web application for performing sentiment analysis on text input using Flask and TextBlob. The application allows users to enter text and receive a sentiment analysis result indicating whether the text is positive, negative, or neutral.
- Host: GitHub
- URL: https://github.com/danukarangith/simple-sentiment-analyzer_python
- Owner: danukarangith
- License: mit
- Created: 2024-09-18T06:34:58.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-04T17:11:13.000Z (over 1 year ago)
- Last Synced: 2025-03-03T13:16:17.419Z (over 1 year ago)
- Topics: python3, textblob
- Language: HTML
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sentiment Analyzer
This is a simple web application for performing sentiment analysis on text input using Flask and TextBlob. The application allows users to enter text and receive a sentiment analysis result indicating whether the text is positive, negative, or neutral. (also have tkinter file upload cheker and normal checker).
## Features
- Text input for sentiment analysis
- Backend powered by Flask
- Sentiment analysis using TextBlob
- User-friendly web interface with HTML,CSS and JavaScript
## Project Structure
- `app.py`: The main Flask application file that handles backend logic and routes.
- `templates/index.html`: The HTML template for the frontend user interface.
## Getting Started
### Prerequisites
- Python 3.6 or higher
- Flask
- TextBlob
### Installation
1. **Clone the repository:**
```bash
git clone https://github.com/danukarangith/sentiment-analysis-app.git
cd sentiment-analysis-app
```
2. **Create and activate a virtual environment:**
```bash
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
```
3. **Install the required packages:**
```bash
pip install flask textblob
```
4. **Run the application:**
```bash
python app.py
```
5. **Open your web browser and navigate to:**
```
http://127.0.0.1:5000
```
### Usage
- Enter text into the textarea and click the "Analyze Text" button.
- The sentiment result will be displayed below the form.
### License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
### Acknowledgements
tbd
- [Flask](https://flask.palletsprojects.com/en/2.1.x/) - Web framework for Python
- [TextBlob](https://textblob.readthedocs.io/en/dev/) - Text processing library for Python
- [HTML](https://www.w3.org/TR/html5/) - Markup language for creating web pages