Code Monkey home page Code Monkey logo

user-rights-ml's Introduction

user-rights-ML

Automatically rating privacy policies and terms of service using machine learning.

I'm applying a naive Bayesian classifier to a set of clauses from privacy policies and terms-of-service that have been rated by the crowd as 'good', 'bad' or 'neutral'. There are various different topics and the classifier works on a per-topic basis. The classify.py script uses clauses on copyright as an example, but the same principles apply to other clauses.

The data is taken from tosdr.org, specifically what's contained in /points. This can be extracted using the getpointsdata.py script.

Why?

If this approach works, it could give an automatic score to any privacy policy / terms-of-service text. No one has time to read these texts, so an automated guess as to how good or bad they are, even if it is imperfect, could be quite useful.

See also Ammar et al, 2012

Installation

In order to play with the scripts in this repository you need to have scikit-learn and pandas installed.

To actually get the data first clone the repository to a destination you like and then run

    git submodule init

which will initalize the tosdr.org submodule. After that you can run

    git submodule update

which will in turn get the latest data.

To generate the dataset we use run python getpointsdata.py.

user-rights-ml's People

Contributors

mrshu avatar rdbinns avatar hugoroy avatar

Watchers

James Cloos avatar  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.