Languages and Tools:
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
- Used Python Based Framework Flask.
Note: We used Python version: 3.10
- Install Anaconda
- To install Virtual Environment, naming sentiment :
$ conda create -n sentiment python=3.10
- To activate the Virtual Environment:
$ conda activate sentiment
- 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
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
- 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 !!!!!
- 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