Giter Site home page Giter Site logo

cpp4app's Introduction

Contextual Privacy Policies for Mobile Apps

This repository is for the project Contextual Privacy Policies for Mobile Apps.

๐Ÿš€ To the best of our knowledge, we are the first to propose a novel framework, i.e., SeePrivacy, to automatically generate contextual privacy policies for mobile apps.

๐Ÿฅณ We propose a novel multi-modal framework designed to automatically generate contextual privacy policies for mobile app. We utilize computer vision techniques and NLP techniques to extract corresponding segments from the privacy policy document.

๐Ÿ‘ We also build the benchmark dataset, i.e., Cpp4App, for contextual privacy policies on mobile apps, including 1,200+ CPPs with their corresponding privacy policy segments.

We build a demo website for SeePrivacy: https://cpp4app.github.io/SeePrivacy/

Overview

Dependency

python 3.7

opencv-python==4.6.0.66

openai==0.27.6

paddleocr==2.5.0.3

paddlepaddle==2.3.1

beautifulsoup4==4.11.1

stanza==1.5.0

Folder Structure

  • code/SEM: Segment Extraction Module of SeePrivacy

  • code/CDM: Context Detection Module of SeePrivacy

  • dataset/: Cpp4App Dataset

How to Use

  • To run segment extraction module, modify the input privacy policy path in code/SEM/P1_PP_processing.pyand run the file. The output will be saved in txt.

  • To run context detection module, modify the input image path in code/CDM/run_batch.py and run the file. The output will be saved in result_classification.

    Note: You may replace the OpenAI API Key in code/CDM/detect_classify/classification.py with your own key to enable GPT-3.5.

Dataset

For a detailed description of our benchmark dataset, please refer to dataset/README.md.

cpp4app's People

Contributors

cpp4app avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.