Do you think all the news that spread across the internet is true and realistic? Not at all. Fake news has become a serious issue in the digital world. This news spread just like wildfire, without limitations and very fast impacting the lives of millions of peoples. So how can we deal with fake news? It is not as easy as turning to a simple fact-checker. Such news is intentionally written with some story-by-story base. Here comes Python to help us.
Analytics Kit will be shipped to you and you can learn and build using tutorials. You can start for free today!
Project Description
Before going deep into the fake news detection project, let’s get familiar with some terms related to this project.
To get the statistics about the news, we need to count the appearance of the word in the document. But one issue with word counting is that words like ‘the’ appears many times in the document but its count is not meaningful in encoded vector.
One solution for this is to count the word frequency. The method used for this is TF-IDF which stands for “Term Frequency – Inverse Document Frequency “.
In short, TF-IDF is a word frequency counter that tries to highlight the interesting words. TF-IDF tokenize the document and encode the new document. TF-IDF Vectorizer converts the raw data in the document into TF-IDF matrix.
Modules used for this Project
Want to develop practical skills on Analytics? Checkout our latest projects and start learning for free
Project Implementation
The dataset used for this project is news.csv. Dataset has a shape of 7796*4.
The dataset has four columns: first identifies the news, second and third are title and text and the fourth one is the label denoting FAKE or REAL.
Follow the below steps to complete the project:
Software requirements: Pycharm Community Edition.
Programming Languages and modules: Python3, Numpy-module, pandas, sklearn.
Skyfi Labs helps students learn practical skills by building real-world projects.
You can enrol with friends and receive kits at your doorstep
You can learn from experts, build working projects, showcase skills to the world and grab the best jobs.
Get started today!
Join 250,000+ students from 36+ countries & develop practical skills by building projects
Get kits shipped in 24 hours. Build using online tutorials.
Stay up-to-date and build projects on latest technologies