This project investigates irony detection in Arabic dialect comments on Twitter to enhance digital communication understanding.
Jupyter Notebook
0
24 commits
updated Dec 7, 2024
This project investigates irony detection in Arabic dialect comments on Twitter to enhance digital communication understanding.We will collect tweets from Arab users and manually annotate them to create a dataset. Using this dataset, we will train a neural network, bert model, and an arabert model aiming for an initial accuracy of over 78% in classifying tweets. The project aims to contribute to sentiment analysis by addressing challenges in multilingual contexts.
To set up this project, follow these steps:
Clone the repository:
git clone https://github.com/jad-raad/Irony-Detection-of-Arabic-Tweets-
cd your-repository
python -m venv venv
.\venv\Scripts\activate
pip install -r requirements.txt
Add the arabic embedding file
The Arabic word embedding file mentioned in the config (wiki.ar.vec) is from the FastText pre-trained word vectors. You can download it from the official FastText website. Here's how you can get it:
Go to the FastText website's pre-trained word vectors page: https://fasttext.cc/docs/en/pretrained-vectors.html
Scroll down to the section "Pre-trained word vectors"
Look for the Arabic language (ar) in the list
Click on the "bin+text" link next to Arabic. This will download a file named cc.ar.300.bin.gz
Once downloaded, extract the .gz file. You should now have a file named cc.ar.300.bin
After extraction, you should have a file with the .vec extension, which you can rename to wiki.ar.vec
Place this file in the /data/fasttext/ directory of your project (or update the config file to point to wherever you place it)
It is recommended to run BERT models on google colab in order to utilize the T4 gpu of colab
Upload the entire project without the fasttext file and the environments into your google drive
Connect google colab to your personal drive
Run the allBertExamples.ipynb file and check the results
NOTE: google colab already supports all requirements for the bert examples, thus there is no need for installing libraries
This project investigates irony detection in Arabic dialect comments on Twitter to enhance digital communication understanding.
Jupyter Notebook
0
24 commits
updated Dec 7, 2024
This project investigates irony detection in Arabic dialect comments on Twitter to enhance digital communication understanding.We will collect tweets from Arab users and manually annotate them to create a dataset. Using this dataset, we will train a neural network, bert model, and an arabert model aiming for an initial accuracy of over 78% in classifying tweets. The project aims to contribute to sentiment analysis by addressing challenges in multilingual contexts.
To set up this project, follow these steps:
Clone the repository:
git clone https://github.com/jad-raad/Irony-Detection-of-Arabic-Tweets-
cd your-repository
python -m venv venv
.\venv\Scripts\activate
pip install -r requirements.txt
Add the arabic embedding file
The Arabic word embedding file mentioned in the config (wiki.ar.vec) is from the FastText pre-trained word vectors. You can download it from the official FastText website. Here's how you can get it:
Go to the FastText website's pre-trained word vectors page: https://fasttext.cc/docs/en/pretrained-vectors.html
Scroll down to the section "Pre-trained word vectors"
Look for the Arabic language (ar) in the list
Click on the "bin+text" link next to Arabic. This will download a file named cc.ar.300.bin.gz
Once downloaded, extract the .gz file. You should now have a file named cc.ar.300.bin
After extraction, you should have a file with the .vec extension, which you can rename to wiki.ar.vec
Place this file in the /data/fasttext/ directory of your project (or update the config file to point to wherever you place it)
It is recommended to run BERT models on google colab in order to utilize the T4 gpu of colab
Upload the entire project without the fasttext file and the environments into your google drive
Connect google colab to your personal drive
Run the allBertExamples.ipynb file and check the results
NOTE: google colab already supports all requirements for the bert examples, thus there is no need for installing libraries