nano-bot01 / Fake-News-Prediction-System-

Fake News Prediction System using logistic regression, stopwords, nltk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fake-News-Prediction-System-

Fake News Prediction System using logistic regression, stopwords, nltk

Dataset information :

DATASET LINK

  1. id: unique id for a news article
  2. title: the title of a news article
  3. author: author of the news article
  4. text: the text of the article; could be incomplete
  5. label: a label that marks whether the news article is real or fake: 1: Fake news 0: real News

Dependencies

import numpy as np
import pandas as pd
import re
from nltk.corpus import stopwords
from nltk.stem.porter import PorterStemmer
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LogisticRegression
from sklearn.metrics import accuracy_score
import matplotlib.pyplot as plt

About

Fake News Prediction System using logistic regression, stopwords, nltk

License:GNU General Public License v2.0


Languages

Language:Jupyter Notebook 100.0%