Coder Social home page Coder Social logo

yangzilong1986 / hate_speech_detection-nlp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mandar196/hate_speech_detection-nlp

0.0 0.0 0.0 28 KB

Created Hate speech detection model using Count Vectorizer & XGBoost Classifier with an Accuracy upto 0.9471, which can be used to predict tweets which are hate or non-hate.

License: GNU General Public License v3.0

Jupyter Notebook 100.00%

hate_speech_detection-nlp's Introduction

Hate_Speech_Detection_NLP

hate

This is Hate speech detection model created using Count Vectorizer and XGBoost Classifier with an Accuracy upto 0.9471, train-test split of 70:30, which can be used to predict whether tweets are hate or non-hate.


Dataset:

  • Dataset using Twitter data, isused to research hate-speech detection. The text is classified as: hate-speech, offensive language, and neither. Due to the nature of the study, it’s important to note that this dataset contains text that can be considered racist, sexist, homophobic, or generally offensive.
  • Link for dataset: https://www.kaggle.com/mrmorj/hate-speech-and-offensive-language-dataset


Tools used for project development:

  • Python

  • NLP

  • Porter Stemmer

  • Count Vectorizer

  • XGBoost Classifier

  • Random Forest Classifier

  • Decision Tree

  • Support Vector Machine

  • Logistic Regression

  • K Nearest Neighbours

  • Gaussian Naive Bayes Classifier


If you like this repo, please don't forget to give a ⭐.

hate_speech_detection-nlp's People

Contributors

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