{"id":17830166,"url":"https://github.com/hiteshmeta85/ml-mini-project-api","last_synced_at":"2026-05-09T17:32:42.237Z","repository":{"id":104120746,"uuid":"540065543","full_name":"hiteshmeta85/ml-mini-project-api","owner":"hiteshmeta85","description":"Classification of Disaster related tweets from Social Media using BERT Model","archived":false,"fork":false,"pushed_at":"2022-10-20T14:54:19.000Z","size":4037,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T03:14:11.039Z","etag":null,"topics":["bert","binary-classification","flask","machine-learning","sqlite","twint"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hiteshmeta85.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-22T16:12:44.000Z","updated_at":"2022-10-22T04:03:20.000Z","dependencies_parsed_at":"2023-11-24T18:30:53.285Z","dependency_job_id":null,"html_url":"https://github.com/hiteshmeta85/ml-mini-project-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiteshmeta85%2Fml-mini-project-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiteshmeta85%2Fml-mini-project-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiteshmeta85%2Fml-mini-project-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiteshmeta85%2Fml-mini-project-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hiteshmeta85","download_url":"https://codeload.github.com/hiteshmeta85/ml-mini-project-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246811310,"owners_count":20837752,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bert","binary-classification","flask","machine-learning","sqlite","twint"],"created_at":"2024-10-27T19:25:08.237Z","updated_at":"2026-05-09T17:32:37.195Z","avatar_url":"https://github.com/hiteshmeta85.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ML-MINI-PROJECT-API\n\n## Dataset \n\n``` https://www.kaggle.com/competitions/nlp-getting-started/data?select=train.csv ```\n\nAccuracy achieved: 80.44%\n\ncollab Notebook link Training - `https://colab.research.google.com/drive/1NoBShinYljfw_sEKyF0TEDzGdlfaZRsT?usp=sharing`\n\ncollab Notebook link Inference - `https://colab.research.google.com/drive/1ThpOIpY33l3WXFGH9QAlX0BmE67pTZNK?usp=sharing`\n\n# Setup [Docker]\n\n## Build Docker Image\n\n```docker-compose up```\n\n## Rebuild Docker Image\n\n```docker-compose up --build```\n\n# Setup [Local]\n\n## Model Used - BERT UNCASED \n\nDownload and save the folder in backend/models/\n\nModel link - ``` https://drive.google.com/file/d/1IJBNMt2pGmDxTq2e64rpzDjaz4aAauL7/view?usp=sharing ```\n\n## Installation\n\n- Twint installation\n\n```\npip3 install --user --upgrade git+https://github.com/twintproject/twint.git@origin/master#egg=twint\n```\n\n-  Install requirements\n\n```\npip install -r requirement.txt \n```\n\n## Backend - FLASK\n\n### If you want to start a new session od db\n\n- Delete the db.sqlite file in backend folder\n- Run the following commands\n\n```\npython init_db.py\n```\n\n```\ncd backend\npython app.py\n```\n\n---\n\n### Sample Images\n\n1. Select Disaster Type\n\n   ![](images/index.png)\n   \n2. Enter Custom Hashtags\n\n   ![](images/custom-hashtags.png)\n\n3. Raw Data scraped from Twitter using Twint\n\n   ![](images/raw-data.png)\n\n4. Binary Classified Data using BERT Model\n\n   ![](images/binary-classified-data.png)\n\n5. BERT model flow for Binary Classification of Text\n\n   ![](images/model-flow.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhiteshmeta85%2Fml-mini-project-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhiteshmeta85%2Fml-mini-project-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhiteshmeta85%2Fml-mini-project-api/lists"}