An open API service indexing awesome lists of open source software.

https://github.com/blacksujit/fake-news-detection

This repository contains a machine learning model built to detect fake news articles. The project leverages natural language processing techniques and a supervised learning approach to classify news articles as either real or fake based on their content.
https://github.com/blacksujit/fake-news-detection

backend-api classification deployement developement fake-news-detection machine-learning model-development models pkl-model transformer-architecture unique-approach

Last synced: 2 months ago
JSON representation

This repository contains a machine learning model built to detect fake news articles. The project leverages natural language processing techniques and a supervised learning approach to classify news articles as either real or fake based on their content.

Awesome Lists containing this project

README

        

# Fake News Detector

This project aims to detect fake news using machine learning. The project includes a Flask-based application that serves both backend (for model training and prediction) and frontend (for user interaction).

# Web Page :

![alt text](image.png)

## Folder Structure

- `run.py`: Main application file combining both frontend and backend.
- `model/`: Contains the trained model and script to train the model.
- `requirements.txt`: Dependencies for the project.
- `static/`: Static files (CSS, JS).
- `templates/`: HTML templates.
- `data/`: Folder containing the dataset.

## Dataset Information:

Download the dataset from [Kaggle Machine Learning](https://www.kaggle.com/datasets/emineyetm/fake-news-detection-datasets)

## Installation

1. Clone the repository.

```bash
git clone https://github.com/Blacksujit/Fake_News_Detection.git
```

2. Download a dataset suitable for fake news detection and place the file in the `data/` folder (e.g., `fakenews.csv`).

3. Virtual Environment setup

```bash
python -m venv venv
```

```bash
venv\Scripts\activate
```

3. Install the dependencies:
```bash
pip install -r requirements.txt
```

4. Run the application:
```bash
python run.py
```
6. Open your browser and go to `http://127.0.0.1:5000` to use the application.

## License

This project is licensed under the MIT License.