Git Product home page Git Product logo

comment-classifier's Introduction

Comment Classification

Project Description:

With the recent growth of people on the internet, civil conversations are seeing a decline. “Whatever intelligent observations do lurk there are often drowned out by obscenities, ad-hominem attacks, and off-topic rants.” These things are forcing many online platforms which once flourished with intellectual discussions to close the comment sections. To facilitate meaningful conversations on their online platform The New York Times employed full-time moderators who moderate nearly 11,000 comments per day on the selected article(roughly 10% of Times articles). However, for small firms operating people for these tasks might be out of scope. To aid, the Conversation AI team, a research initiative founded by Jigsaw and Google (both a part of Alphabet) are working on tools to help improve online conversation. One area of focus is the study of negative online behaviors, like toxic comments (i.e. comments that are rude, disrespectful or otherwise likely to make someone leave a discussion). So far they’ve built a range of publicly available models served through the Perspective API, including toxicity.

Data

Source: It consists of large number of Wikipedia comments which have been labeled by human raters for toxic behavior. The types of toxicity are:

  • Anger
  • Joy
  • Sadness
  • Shame
  • Guilt
  • Disgust
  • Fear

PreRequisite

Python Version should be installed 3.7.0 or above. pip should be present.

Steps to run project on local computer

  • Cloning Repository

     git clone project link
     
    

After cloning the project move to the project folder and use the following commands to install dependencies.

Virtual environments Use a virtual environment to manage the dependencies for your project, both in development and in production.Virtual environments are independent groups of Python libraries, one for each project. Packages installed for one project will not affect other projects or the operating system's packages.

  • Intsalling Virtual Environment

     sudo pip3 install virtualenv
    
    
  • create a virtual environment

    virtualenv anyname  
    
    
  • Installing Dependencies

    pip install requirments.txt  
    
    

    This will install all the dependencies related to the project.

  • Now to start the project

    python filename.py 
    
    

    Wait for few seconds for model training. Move to the port http://127.0.0.1:5000/ which is being locally hosted. Bang !! Find out whether the comment is toxic or not

comment-classifier's People

Contributors

aarti0909 avatar hjain5164 avatar piyushmanglani08 avatar pradyumnasarode avatar rachnaagrawal avatar

Stargazers

 avatar

Watchers

 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.