Skip to content

My project, titled "Sentiment Analysis of Social Media Comments on Covid-19 Post-Vaccination in Bangladesh," is an easy-to-use, user-interactive website showcasing the many types of output and the efficacy of the underlying algorithm.

Notifications You must be signed in to change notification settings

shimanto-rehman/Sentiment-Analysis-of-Social-Media-Comments-on-Covid-19-Post-Vaccination-in-Bangladesh

Repository files navigation

Sentiment Analysis of Social Media Comments on Covid-19 Post-Vaccination in Bangladesh

Version release GitHub watchers GitHub all releases GitHub code size in bytes GitHub repo file count GitHub repo size

Languages and Tools:

npm Visual Studio Code

This Initiative will expand Bangladeshi public understanding about COVID-19 vaccine. The project's findings may help Bangladesh's immunization program. The project's methods may be used in other nations to gauge public opinion on COVID-19 immunization, aiding the worldwide battle against the virus. This project will help to find the sentiment polarity. This project is a simple and user interactive website showing the output type and algorithm's performance

For API Part:

  • Used Python Based Framework Flask.

Note: We used Python version: 3.10

Environmental SetUp:

  • Install Anaconda
  • To install Virtual Environment, naming sentiment :
$ conda create -n sentiment python=3.10
  • To activate the Virtual Environment:
$ conda activate sentiment

All set then !!!!!!!!!!!!!!

  • To install all libraries and packages used in our code to for model building, saving, training, and data preprocessing part:
$ pip install -r requirements.txt
  • Open app.py file, for understanding the api routing and model loading using pickle library for machine learning part and keras.models for deep learning part, also for the http get request response structure.
  • Again activate the environment again: conda activate sentiment
  • For serving Flask App (app.py file) on development server :
python app.py
  • Which will return a localhost address with a specific port number like: http://127.0.0.1:5000 Your Port

  • You can also find it on browser by: localhost:5000

Note: Install a Visual Studio Code VS Code extension "Rest Client" / "Thunder Client" to see the api responses:

  • Go to the activity part and Select your localhost port
  • Select method type (GET/POST) and put the routing address for getting prediction which is (localhost:5000/predict)
  • Then, in the Query Section, put the Query Parameter (data) and put the sentence you want to predict as the value of query pararmeter
  • Hit send !!!!
  • Boom !!!
  • See the Api Response <3
  • Or, route to: ( To see the prediction response )
localhost:5000/predict?data=your_sentence

FrontEnd Part

(With Nodejs):

  • Install Node.js, Because Used React Framework
  • Check node -v if installed
  • Got to sentiment-web directory and run this command under the subfolder: npm i
  • To run the frontend development server:
npm run dev
  • Then go to tbe localhost address it provides:
http://localhost:5173/
  • Thats it !!!!!

(With Nextjs):

  • Install Nextjs, Because Used React Framework
  • In the directory run cmd and
npx create-next-app@latest --typescript
  • Install Packages:
npm i @emotion/react @emotion/styled @mui/icons-material @mui/material

Here are some images for better view of the website

Thanks for reading, have a good day! 🙂

About

My project, titled "Sentiment Analysis of Social Media Comments on Covid-19 Post-Vaccination in Bangladesh," is an easy-to-use, user-interactive website showcasing the many types of output and the efficacy of the underlying algorithm.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published