Skip to content

This project uses Natural Language Processing (NLP) to analyze tweets and predict whether they contain cyberbullying content. It categorizes cyberbullying into six categories: Age, Ethnicity, Gender, Religion, Other Cyberbullying.

Notifications You must be signed in to change notification settings

jayantverma2809/Cyberbullying-Tweet-Recognition-App

Repository files navigation

This project involved analyzing tweets.

By understanding the words involved in the tweet, we are going to predict whether a tweet is a cyberbullying tweet or not and if it is a cyberbullying tweet then predicting nature of the cyberbullying into 6 Categories:

  • Age

  • Ethnicity

  • Gender

  • Religion

  • Other Cyberbullying

  • Dataset Used : Cyberbullying Classification data from Kaggle ( https://lnkd.in/d7pfHGT8)

  • Approach:-

  1. Installing the required libraries and importing the data set using pandas was the first step.
  2. Initial review of the data and checked the provided data set for any missing values.
  3. Preformed Preprocessing of text which involved :

~ Removing emoji
~ Converting text to lowercase, removing (/r, /n characters), URLs, non-utf characters, Numbers, punctuations, stopwords
~ Removing Contractions
~ Cleaning Hashtags
~ Filter Special characters
~ Removing Multi-space characters
~ Stemming
~ Lemmatization

  1. Handling Duplicates and removing them
  2. Performed Exploratory Data Analysis
  3. Train and test split
  4. tf-idf Vectorization
  5. Trying different base models :- ~ Logistic Regression
    ~ Support Vector Classifier
    ~ Naive Bayes Classifier
    ~ Decision Tree Classifier
    ~ Random Forest Classifier
    ~ Ada Boost Classifier
  6. Fine Tuning Support Vector Classifier
  7. Model Evaluation and Saving the model
  8. Created the Web App using Streamlit
  9. Deployed Web App on Streamlit
  • Libraries Used : pandas, numpy, matplotlib, seaborn, stats, scipy, re, pickle, string, image, collections, statsmodel, flask, nltk, emoji, wordcloud, streamlit

  • Deployment Platform : Streamlit

  • Kaggle : https://lnkd.in/dTe7PCqx

About

This project uses Natural Language Processing (NLP) to analyze tweets and predict whether they contain cyberbullying content. It categorizes cyberbullying into six categories: Age, Ethnicity, Gender, Religion, Other Cyberbullying.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published