The Sentiment Analysis Application is a web-based tool designed to analyze user-provided textual input, offering insights into word frequency and sentiment polarity. This project is a Vue.js application that interacts with a Flask backend for text analysis. It allows users to input text and receive word frequency counts and sentiment analysis results.

sediment-chat-analysis/
├── backend/
│ ├── app.py
│ ├── requirements.txt
├── frontend/
│ ├── .gitignore
│ ├── .vscode/
│ │ ├── extensions.json
│ │ ├── settings.json
│ ├── index.html
│ ├── jsconfig.json
│ ├── package.json
│ ├── public/
│ ├── src/
│ │ ├── App.vue
│ │ ├── assets/
│ │ ├── components/
│ │ │ ├── SentimentMeter.vue
│ │ │ ├── TextAnalyzer.vue
│ │ ├── index.css
│ │ ├── main.js
│ │ ├── views/
│ │ │ ├── Home.vue
│ ├── vite.config.js
├── README.md
- public/: Directory for static assets such as images, fonts, and stylesheets.
- src/App.vue: Root Vue component that serves as the main layout for the application.
- src/assets/: Directory for static assets such as images, fonts, and stylesheets.
- src/components/SentimentMeter.vue: Vue component for visualizing sentiment analysis results.
- src/components/TextAnalyzer.vue: Vue component for handling user input and displaying analysis results.
- src/index.css: Global CSS file for styling the application.
- src/main.js: Entry point for the Vue application, initializing the Vue instance and mounting the app.
- src/views/Home.vue: Main view component that includes the TextAnalyzer component.
- app.py: Flask backend application that handles text analysis requests.
- requirements.txt: List of Python dependencies for the Flask backend.
-
Clone the repository:
git clone https://github.com/hillhack/sentiment-chat-analysis-.git cd sentiment-chat-analysis/frontend -
Install dependencies:
npm install
-
Run the application:
npm run dev
-
Open your browser and navigate to http://localhost:5173 to view the application.
-
Navigate to the backend directory:
cd ../backend -
Install Python dependencies:
pip install -r requirements.txt
-
Run the Flask backend:
python app.py
-
The backend will be available at http://localhost:5000.
- Enter text in the input field and submit to analyze.
- View the word frequency count and sentiment score displayed on the page.
- The sentiment score is visualized using a sentiment meter, which ranges from -1 (negative) to 1 (positive).
- Vue.js: JavaScript framework for building the user interface.
- Vite: Build tool for fast development and production builds.
- Vue DevTools: Browser extension for debugging Vue.js applications.
- Flask: Python web framework for handling backend requests.
- Flask-CORS: Middleware for enabling Cross-Origin Resource Sharing (CORS).
- TextBlob: Library for processing textual data, including sentiment analysis.