{"id":20290193,"url":"https://github.com/karan-malik/fakenewsdetection","last_synced_at":"2026-05-04T18:33:13.889Z","repository":{"id":112693723,"uuid":"275361333","full_name":"Karan-Malik/FakeNewsDetection","owner":"Karan-Malik","description":"Using Machine Learning and NLP to segregate the unreliable and reliable news articles","archived":false,"fork":false,"pushed_at":"2020-06-27T13:51:40.000Z","size":37509,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-04T04:42:23.874Z","etag":null,"topics":["artificial-intelligence","fake-news","fakenewsdetection","machine-learning","machine-learning-algorithms","natural-language-processing","news","nlp","nlp-machine-learning","numpy","python","python3","scikit-learn","scikitlearn-machine-learning"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Karan-Malik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-06-27T11:48:24.000Z","updated_at":"2024-05-20T12:58:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"b80e00fe-e2b8-4042-8b42-e556a5a75443","html_url":"https://github.com/Karan-Malik/FakeNewsDetection","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Karan-Malik/FakeNewsDetection","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Karan-Malik%2FFakeNewsDetection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Karan-Malik%2FFakeNewsDetection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Karan-Malik%2FFakeNewsDetection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Karan-Malik%2FFakeNewsDetection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Karan-Malik","download_url":"https://codeload.github.com/Karan-Malik/FakeNewsDetection/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Karan-Malik%2FFakeNewsDetection/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32619644,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["artificial-intelligence","fake-news","fakenewsdetection","machine-learning","machine-learning-algorithms","natural-language-processing","news","nlp","nlp-machine-learning","numpy","python","python3","scikit-learn","scikitlearn-machine-learning"],"created_at":"2024-11-14T15:06:34.697Z","updated_at":"2026-05-04T18:33:13.844Z","avatar_url":"https://github.com/Karan-Malik.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FakeNewsDetection\nUsing Machine Learning and NLP to segregate the unreliable and reliable news articles\n\n## About this Project\nThis project analyzes about 18k news articles and their titles, lemmatizes and cleans them and then uses them as features, which are then used in Logistic Regression, to classify them as reliable (0) or \nnot reliable (1). It is able to achieve a test set accuracy of 95.8%.\n\n## Dataset\nThe dataset used is available on [Kaggle](https://www.kaggle.com/). It contains over 20000 news articles along with their authors, titles and labels classifying them\nas reliable or not reliable.\n\nIt is present as train.csv in the repository. To access the data online, follow this [link](https://www.kaggle.com/c/fake-news/data).\n\n## How to Run the Model on your System\n1. Use this [link](https://www.kaggle.com/c/fake-news/data) to download the dataset and set the folder containing the downloaded data as the working directory. \n\n2. Make sure you have all the libraries used in the fake_news.py file. In case you need to download any of the libraries, use this command:\n```\npip install 'your library name'\n```\n\n3. Once you have all the libraries imported, copy the code from fake_news.py and run it.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaran-malik%2Ffakenewsdetection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaran-malik%2Ffakenewsdetection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaran-malik%2Ffakenewsdetection/lists"}