{"id":26691098,"url":"https://github.com/olahsymbo/news-categorizer","last_synced_at":"2026-04-09T02:31:40.866Z","repository":{"id":37678550,"uuid":"251409051","full_name":"olahsymbo/news-categorizer","owner":"olahsymbo","description":"A Flask REST API for categorising news contents from Postgres DB fetched via SQLAlchemy ORM","archived":false,"fork":false,"pushed_at":"2023-05-03T14:47:49.000Z","size":41782,"stargazers_count":1,"open_issues_count":6,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T16:17:20.450Z","etag":null,"topics":["beautifulsoup4","flask","keras","nltk","postgres","python3","sqlalchemy","tensorflow"],"latest_commit_sha":null,"homepage":"","language":"Python","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/olahsymbo.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}},"created_at":"2020-03-30T19:33:49.000Z","updated_at":"2023-05-01T13:16:27.000Z","dependencies_parsed_at":"2022-09-13T04:51:05.070Z","dependency_job_id":null,"html_url":"https://github.com/olahsymbo/news-categorizer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/olahsymbo/news-categorizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olahsymbo%2Fnews-categorizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olahsymbo%2Fnews-categorizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olahsymbo%2Fnews-categorizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olahsymbo%2Fnews-categorizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/olahsymbo","download_url":"https://codeload.github.com/olahsymbo/news-categorizer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olahsymbo%2Fnews-categorizer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31582610,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"online","status_checked_at":"2026-04-09T02:00:06.848Z","response_time":112,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["beautifulsoup4","flask","keras","nltk","postgres","python3","sqlalchemy","tensorflow"],"created_at":"2025-03-26T16:17:22.948Z","updated_at":"2026-04-09T02:31:40.838Z","avatar_url":"https://github.com/olahsymbo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## News Categorizer\n\nThis project is concerned with classifying news content into 5 different categories.\n\n### Preprocessing\n\nThe raw texts of each news file is preprocessed by removing punctuations, performing\nstemming, and lemmatization.\n\n### Feature Extraction\n\nTFIDF is used for extracting features from the proprocessed news data. We set the max length\nof the features to 3000. \n\n### Classification\n\nDeep Neural Network (DNN) is used for performing classification. \n\n### API\n\nTo convert the model into a REST web application, we used Flask and gunicorn as the web application server\n\n## Getting Started\n\nThe following steps will guide you through setting up the project\n\nFirst, clone the repo\n\ngit clone https://github.com/olahsymbo/NewsCategorizer.git\n\n### Install and configure virtual environment\n\nGoto project directory and setup virtual environment:\n\n```\ncd NewsCategorizer\npip3 install virtualenv\nvirtualenv news\nsource news/bin/activate\n```\n\nTo ensure this app functions properly, install the dependencies in the requirements.txt Simply run:\n\n`pip install -r requirements.txt`\n\n### Create a Postgres DB\n\nInstall postgresql 12.2 (incase it's not installed already).\n\nCreate a new postgres database named `news` using:\n\n`CREATEDB news;`\n\ninside the db shell, create username and password for the database using:\n\n`CREATE USER newsdev with encrypted password 'newsdev';`\n\n### Run the NewsCategorizer\n\nLaunch the flask web server using:\n\n` python3 api/news_api.py`\n\nThe base url is:\n\n`http://127.0.0.1:6000/`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folahsymbo%2Fnews-categorizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folahsymbo%2Fnews-categorizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folahsymbo%2Fnews-categorizer/lists"}