Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/Kalebu/Plagiarism-checker-Python

A python project for checking plagiarism of documents based on cosine similarity
https://github.com/Kalebu/Plagiarism-checker-Python

cosine-similarity machine-learning plagiarism-checker-python python-cosine-similarity python-nlp python-nlp-projects python-plagiarism-detector python-programming python-project tanzania

Last synced: about 1 month ago
JSON representation

A python project for checking plagiarism of documents based on cosine similarity

Awesome Lists containing this project

README

        

# Plagiarism-checker-Python

This repo consists of a source code of a Python script which detects plagiarism in a textual document using **cosine similarity**.

[![Become a patron](pictures/become_a_patron_button.png)](https://www.patreon.com/kalebujordan)

## How is it Done?

You might be wondering how plagiarism detection on textual data is done, well it ain't as complicated as you may think.

We all know that computers are good with numbers; so in order to compute the similarity between two text documents, the textual raw data is transformed into vectors => arrays of numbers and from that, we make use of basic knowledge of vectors to compute the similarity between them.

This repo contains a basic example on how to do that.

## Getting Started

To get started with the code on this repo, you need to either *clone* or *download* this repo into your machine as shown below;

```bash
git clone https://github.com/Kalebu/Plagiarism-checker-Python
```

## Dependencies

Before you begin playing with the source code, you might need to install dependencies just as shown below;

```bash
pip3 install -r requirements.txt
```

## Running the App

To run this code you need to have your textual documents in your project directory with the **.txt** extension. When you run the script, it will automatically load all the documents with that extension and then compute the similarities between them as shown below;

```bash
$-> cd Plagiarism-checker-Python
$ Plagiarism-checker-Python-> python3 app.py
('john.txt', 'juma.txt', 0.5465972177348937)
('fatma.txt', 'john.txt', 0.14806887549598566)
('fatma.txt', 'juma.txt', 0.18643448370323362)

```

## A Python Library?

Would you like to use a Python library instead to help you compare strings and documents without spending time writing the vectorizers by yourself, then take a look at [Pysimilar](https://github.com/Kalebu/pysimilar).

## Explore it

Explore it and twist it to your own use case. In case of any questions feel free to reach me directly at *[email protected]*.

## Issues

In case you have any difficulties or issues while trying to run the script
you can raise an issue.

## Pull Requests

If you have something to add, I welcome pull requests on improvement; your helpful contribution will be merged as soon as possible.

## Give it a Star

If you find this repo useful, give it a star so that many people can get to know it.

## Credits

All the credit goes to [kalebu](https://github.com/kalebu).