DEV Community

Sarleymwaka
Sarleymwaka

Posted on

DETECTING FAKE NEWS WITH PYTHON AND MACHINE LEARNING

Fake news

fake newsis a big issue in the internet and social media.
machine learning tend to stop the problem of spreadin of fake news to some point due to use of natural language processing.

natural language processing

In-text preprocess we are cleaning our text by steaming, lemmatization(Converting the word or token in its Base form), remove stopwords, remove special symbols and numbers, etc. After cleaning the data we have to feed this text data into a vectorizer which will convert this text data into numerical features.
cleaning data
this is the removal of unusable words and special symbols
vectorizer
converts text data to numerical features which is then used in the news detection

Machine learning classifiers

Classifier is an algorithm that is used to map the input data to a specific category.
machine learning classifiers are using for different purposes and these can also be used for detecting the fake news. The classifiers are first trained with a data set called training data set. After that, these classifiers can automatically detect fake news.

Top comments (0)