abdelhak002 / plagiarism-detector-cnn

Plagiarism Detector using CNN built in using Flask and TensorFlow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Plagiarism Detection Project

This project aims to detect plagiarism between two given texts using a pre-trained machine learning model.

Getting Started

Prerequisites

Make sure you have the following installed on your machine:

  • Python (>=3.11.6)
  • Node.js (>=20.10.0)
  • Pip (Python package installer >=23.3.2)
  • Git

Installation

  1. Clone the repository:

    git clone https://github.com/abdelhak002/plagiarism-detector-cnn.git
    
  2. Change into the project directory:

    cd plagiarism-detection-cnn
  3. Create a virtual environment (optional but recommended):

    python -m venv .venv
  4. Activate the virtual environment:

    • On Windows:
    .\.venv\Scripts\activate
    • On macOS/Linux:
    source .venv/bin/activate
  5. Install project dependencies:

    pip install -r requirements.txt
    npm install
  6. Training the model:

    python model/build_model.py
  7. Testing the model:

    python test_model.py

Flask Web App:

we load the pre-trained model and tokenizer from the model directory and use them in the flask web app.

to run the flask web app:

flask --app app run
/or
python -m flask --app app run

debug mode:

flask --app app run --debug
/or
python -m flask --app app run --debug

About

Plagiarism Detector using CNN built in using Flask and TensorFlow


Languages

Language:CSS 61.8%Language:Python 29.3%Language:HTML 8.3%Language:JavaScript 0.7%