Code Monkey home page Code Monkey logo

offenseval's Introduction

Offenseval

SemEval 2019 - Task 6 - Identifying and Categorizing Offensive Language in Social Media

Descrption

A system to classifiy a tweet as either offensive or not offensive (Sub-task A) and further classifies offensive tweets into categories (Sub-tasks B – C). Some sort of grid search approach is taken where multiple techniques for preprocessing, feature extraction and classification are implemented and combinations of them all are tried to achieve the best model for the given dataset.

Subtasks

  • Sub-task A - Offensive language identification; [Offensive: OFF, Not Offensive: NOT]
  • Sub-task B - Automatic categorization of offense types; [Targted: TIN, Untargeted: UNT]
  • Sub-task C: Offense target identification. [Individual: IND, Group: GRP, Other: OTH]

Implementation

Preprocessing

Tokenization, Stopwords Removal, Lemmatizaion, Stemming

Vectorization

TFIDF, Count, Word2Vec, GloVe, fastText

Classification

KNN, Naïve Bayes, SVM, Decision Trees, Random Forest, Logistic Regression, MLP, Adaboost, Bagging

Deeplearning

LSTM, 1-D CNN

Running

  • Install requiremetns using pip3 install -r requirements.txt

  • python3 tune.py to do a complete search on all combinations of prepocessing, vectorization and non-deep classification techniques while tuning the classifiers hyper-params.

  • python3 train.py to train one of the deeplearning models.

Sample tuning.py output

alt text alt text alt text

offenseval's People

Contributors

milind-nair avatar zeyadzanaty 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.