Skip to content

In this project, we attempted to analyze users' sentiments on Twitter. For this purpose, we utilized the parsBERT model

Notifications You must be signed in to change notification settings

ahmadara/Text-classification-with-ParsBERT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Persian Emotion Classification Using BERT Overview This project implements Persian emotion classification using a fine-tuned BERT model on a dataset derived from Persian tweets. The model categorizes texts into the following emotions:

Fear, Surprise, Laughter, Sadness, Happiness, Anger, Questioning, Neutral,

The model achieves an F1 score of 0.79, demonstrating strong performance in detecting nuanced emotions in Persian text.

Features

Built using the PyTorch deep learning framework. Leverages a pretrained Persian BERT model for transfer learning. Fine-tuned for the unique characteristics of the Persian language and emotional contexts. Dataset The dataset was constructed from Persian tweets, labeled with corresponding emotions. Preprocessing steps included tokenization, cleaning, and formatting for compatibility with the BERT tokenizer.

Example:

Input: "امروز خیلی خوشحالم!" Output: Happiness

Results Achieved an F1 score of 0.79 on the test dataset.

About

In this project, we attempted to analyze users' sentiments on Twitter. For this purpose, we utilized the parsBERT model

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published