Code Monkey home page Code Monkey logo

arabic-dialect-identification's Introduction

Arabic-Dialect-Identification

This Repo contains 5 Main things :

  • Data fetching
  • Data pre-processing
  • ML Models Training
  • DL Models Training
  • Deployment with Flask
  • Demo GIF

1- Data Fetching Open In Collab

  • Using requests to request the data with id column -which was given- by POST request
  • Save fetched data with its dialect labels as tweetsWithLabels.csv

2- Data pre-processing Open In Collab

This notebook consist of :

  • remove_emoji(text) function
  • Two approaches of pre-processing
  • explore the most common words in each country
  • prepare the QADI test-set

3- ML Models Training Open In Collab

This notebook consist of :

  • Load cleaned data-set
  • CountVectorizer
  • TFIDF
  • Mazajak

4- DL Models Training Open In Collab

This notebook consist of :

  • Load cleaned data-set
  • AraBERTv2-base with ktrain ( best Results )
  • AraBERTv2-base with PyTorch

5- Deployment with Flask

in this folder you found :

  • ktrain with flask.py for loading pretrained ktrain model add deal with flask
  • AraBERTpreprocess.py for pre-processing
  • templates/prediction.html to get inputs
  • templates/Result.html to display the post-procssing and prediction result
  • static/base.css

6- Demo

2022-03-14-10-53-09

arabic-dialect-identification's People

Contributors

youssefkamil avatar

Stargazers

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