This is a NLP text classification based project. Here an LSTM model has been built using Tensorflow which aims at classifying news articles as fake or genuine using the title and content data of the article. The dataset contains 20800 news samples distributed between fake and real.
-
Binary classification model
-
Framework: Tensorflow version 2.7.0
-
Architecture: LSTM RNN
-
Dataset used - https://www.kaggle.com/c/fake-news/data
Use the code in "model_file.ipynb" file and load it into google colab. Then run the model by adjusting the number of epochs to train for required accuracy.
Follow the code in 'predictor.py' file to load the model and use it for predictions.