---- Sentiment Analysis Project ----
I built a simple Python application that uses Natural Language Processing (NLP) to figure out the "mood" of a sentence.
Basically, you type something in, and the AI tells you if it's Positive, Negative, or Neutral. It also saves everything to a file so you can check your history later.
🌟 What it does
Checks Mood: It looks at your text and tells you if it's happy, sad, or neutral.
Saves Data: Every time you analyze something, it gets saved to a file called sentiment_records.json.
Shows Stats: You can see how many positive vs. negative sentences you've entered.
Edit/Delete: You can fix mistakes or delete old entries (CRUD).
Reads Files: You can give it a text file, and it will analyze every line inside it automatically.
🛠️ Tools I Used
Language: Python (it's easy to use!)
Library: TextBlob (this does the AI magic)
Storage: JSON (to save data locally)
Type: CLI (It runs in the terminal)
💻 How to Run This
- Download the Code
You can clone my repo to your computer using git:
git clone https://github.com/subhammohanty-sys/Simple-Sentiment-Analyzer
- Install Requirements
You need Python installed. You also need one specific library called textblob for the AI part. Run this command:
pip install textblob
- Start the App
Just run the main python file:
python main.py
📖 Quick Guide
Analyze a Sentence: Choose option 1 and type something like "I love coding". It should say "Positive".
View History: Option 2 shows a table of everything you've checked so far.
Batch Import: If you have a .txt file with sentences, Option 6 will read it for you.
This is just a student project for learning purposes. It's not perfect, but it works!