Giter Club home page Giter Club logo

bad-words-removal's Introduction

bad-words-removal

Aim

This project aims to provide an api for removing bad words and improve the overall experience of the online communications.

Current Features

  1. Detecting Bad words and substituting it with food names\
  2. Detecting the toxicity of the comment/text

Pipeline Explanation

1. Detecting bad words and susbtituing food names

a. Cleaning the text by using text hero-Tokenization,Punctuation removal
b. POS tagging
c. RULE based removal of bad words based on POS Tags

2. Detection of toxicity [threat,insult,obscene,toxic,severe_toxic]

a. Pre processing of text for BERT model[tokenization using BERT tokenizer]
b. Adding layers on top of BERT
c. Fine tuning on dataset
d. Validation
e. Predicting for single query

Simple and Complete Google Colab Demo

[Open In Colab

1. Installation

1.1 Libraries

python -m nltk.downloader universal_tagset
python -m spacy download en 

2. Running the code

2.1 Removing Bad Words


Show Output
'Boolean Questions': ['Is sachin ramesh tendulkar the highest run scorer in '
                       'cricket?',
                       'Is sachin ramesh tendulkar the highest run scorer in '
                       'cricket?',
                       'Is sachin tendulkar the highest run scorer in '
                       'cricket?']

2.2 Predicting toxicity


Show Output


NLP models used

a. Spacy Encore Sm
b. BERT

Online Demo website

License

MIT

Contribution guidelines

Contributors Profile

[Linkedin Link](#link to your linkedin)

bad-words-removal's People

Contributors

harshil15999 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.