Skip to content

To scan the legal document and give summarized report

Notifications You must be signed in to change notification settings

RashikaKarki/Document-Scan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Document-Scan

Application that scans the legal document in any website and gives the summary

Project Structure


Flask Application

├───app
│   │   .gitignore
│   │   main.py
│   │   requirements.txt
│   │
│   ├───data
│   │       bad_privacy.txt
│   │       good_privacy.txt
│   │
│   ├───model
│   │       logistic_regression.pkl
│   │       vectorizer.pkl
│   │
│   ├───script
│   │   │   clean_data.py
│   │   │   model.py
│   │   │   scrape.py
│   │   │   __init__.py
│   │
│   ├───static
│   │   │   design.css
│   │   │
│   │   └───bootstrap
│   │       └───css
│   │               bootstrap.css
│   │               bootstrap.css.map
│   │               bootstrap.min.css
│   │               bootstrap.min.css.map
│   │
│   ├───templates
│   │       home.html

Jupyter Notebook
└───jupyter-notebooks
    │   getting_privacy_text.ipynb
    │   privacy_policy_predictor.ipynb
    │
    │
    ├───Data
    │       bad_privacy.txt
    │       Data.csv
    │       good_privacy.txt
    │
    └───Model
            logistic_regression.pkl
            vectorizer.pkl

Run the Flask Application

Make sure you have python3 and pip installed

Create and activate virtual environment using virtualenv

$ python -m venv python3-virtualenv
$ source python3-virtualenv/bin/activate

Use the package manager pip to install all dependencies

pip install -r requirements.txt

Usage

Start flask server

$ export FLASK_APP=main.py
$ flask run

Note: Use set inplace of export in windows

About

To scan the legal document and give summarized report

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published