Code Monkey home page Code Monkey logo

deekshakoul / multilingual-abuse-comment-detection Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 19 KB

This work was done as part of Kaggle InClass competition hosted by Sharechat. We had to develop AI solutions for predicting abusive comments posted on the Moj app in 10+ languages given natural language data and user context data.

Jupyter Notebook 100.00%
machine-learning kaggle-competition multilingual-bert abuse-detection bert sharechat

multilingual-abuse-comment-detection's Introduction

Multilingual-Abuse-Comment-Detection

This work was done as part of Kaggle InClass competition hosted by Sharechat. We had to develop AI solutions for predicting abusive comments posted on the Moj app in 10+ languages given natural language data and user context data. More details about the dataset and competition can be found in this link.

Data work -

  • Process the train data carefully as the data has emojis, hinglish texts, different languages text, some symbols, links etc. Also, note that the language detected often is not correct so don't rely blindly on it.
  • Features like detected language of the text, total likes, total reports and views along with text are also provided. These features were not included by me during the training process.
  • Cleaned the data(remove emojis, punctuations etc)
  • Trim the data acc to text lengths.

Approaches -

  • I had applied many technique first starting with the basic TF-IDF approach + Logistic regression/NB/SVM/ensemble of classifiers.
  • I had used the BERT model for text classification problem. But the text here compose of Indian languages.
  • There is model specifically trained on 17 indian languages i.e MuRIL. The working code on training and further evaluating is available in MURIL-BERT notebook.
  • As the dataset was huge the tokenization took a lot of ram, hence making providing less time for training in kaggle kernel. I have created the tokenization result by following this kaggle post. To save tokenization and then reload dataset again, I have created a simple script to load bert - tokenizer, it can be found under Custom dataset/dataloader to load BERT tokenizer notebook or here.

Results -

  • Was able to achieve a score of 0.94020 on test dataset provided by team.
  • Computational intensive problem with huge amount of data, analysed the data and try to find the more important rows.

multilingual-abuse-comment-detection's People

Contributors

deekshakoul avatar

Stargazers

 avatar  avatar

Watchers

 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.