Skip to content

abhinandan976/Faux-hate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Faux-Hate ๐Ÿšซ๐Ÿ’ฌ

Faux-Hate is an NLP-based project focused on detecting fake and hate content in social media posts. This system leverages advanced language modeling techniques and efficient fine-tuning strategies to combat misinformation and online toxicity.


๐Ÿง  Project Overview

The project uses tweets written in Hinglish (Hindi language using the English script), which are translated to English using the IndicTrans2 tool. Two BERT models are fine-tuned with Low-Rank Adaptation (LoRA) to efficiently classify each tweet as:

  • Fake or Not Fake
  • Hateful or Not Hateful

LoRA enhances the modelโ€™s adaptability while reducing computational costs, making it ideal for real-world, low-resource applications.


๐Ÿ—ƒ๏ธ Dataset

  • Source: Scraped tweets from public social media platforms.
  • Language: Hinglish (Hindi in English script).
  • Preprocessing:
    • Translated Hinglish to English using IndicTrans2.
    • Cleaned, tokenized, and labeled data for fake and hate content classification.

๐Ÿงช Model Architecture

  • Base Model: BERT (bert-base-uncased)
  • Adaptation Method: LoRA (Low-Rank Adaptation)
  • Task: Binary classification for both fake and hate detection.
  • Libraries:
    • Hugging Face Transformers
    • PEFT (Parameter-Efficient Fine-Tuning)
    • PyTorch / Transformers Trainer

๐Ÿ› ๏ธ Technologies Used

  • Python
  • NLTK
  • NLP (Natural Language Processing)
  • BERT (Bidirectional Encoder Representations from Transformers)
  • LoRA Adapters (Efficient fine-tuning)
  • IndicTrans2 (Hinglish to English translation)
  • Hugging Face Transformers and Datasets

๐Ÿš€ How to Run

1. Clone the repository

git clone https://github.com/yourusername/faux-hate.git
cd faux-hate

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages