Giter Site home page Giter Site logo

angelamarpaung99 / racism-detection Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 696 KB

Racism Detection built using Long Short-Term Memory (LSTM) on Indonesian texts twitter

Jupyter Notebook 98.36% Python 1.64%
racism hate-speech-detection python twitter indonesian-language

racism-detection's Introduction

Table of Contents

About The Project

This is Racism Detection System that was built to detect racism on Indonesian tweets text. This project uses Long Short-Term Memory Network (LSTM) using Python programming language.

Dataset

Dataset is collected from Twitter. Dataset contains three columns of data: number, tweets, label. Data collected is 686 tweets, in which each of the tweets is labelled manually. Labelled tweets resulted in 511 tweets for class Non_R (Non Racism) and 175 tweets for class R (Racism). Since this dataset is imbalanced, you can do under-sampling to create balanced dataset.

Built With

  • Python

Getting Started

You can get dataset from file "dataset_racism.csv". You can run either the python notebook file "Racism Detection.ipynb" or "Racism Detection.py"

Prerequisites

You can run the python notebook file "Racism Detection.ipynb" locally on Jupyter Notebook or Google Colaboratory. You can run the python script file "Racism Detection.py"

Installation

  1. Clone the repo
git clone https://github.com/angelamarpaung99/racism-detection.git
  1. Enter your own location path of dataset in Racism Detection.py or Racism Detection.ipynb in this line of code
df = pd.read_csv(<FILE PATH LOCATION>, sep=',') 

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b <add-your-new-branch-name>)
  3. Commit your Changes (git commit -m 'commit message')
  4. Push to the Branch (git push origin <add-your-branch-name>)
  5. Open a Pull Request

Contact

Angela Marpaung - [email protected]

Project Link: https://github.com/angelamarpaung99/racism-detection.git

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.