Sarcasm is a prevalent rhetorical device encountered in social media, news comments, or everyday conversations. However, it presents a considerable challenge for Natural Language Processing (NLP) tasks. This project aims to develop an efficient and accurate sarcasm detection model to understand textual content more accurately in various applications such as sentiment analysis and public opinion monitoring.
This project is implemented using Python 3.7
Additional package dependencies can be found in the requirements.txt file and installed using pip:
pip install -r requirements.txt
The configuration for the model, optimizer, and other settings can be found in the YAML file (iron.yaml). Make sure to go through the configuration to understand the different parameters.
To edit the configuration file, simply open iron.yaml in a text editor and modify the values according to your needs. For example, to change the learning rate:
train:
learning_rate: 2e-5 # Change this value
The dataset used for this project originates from the SemEval 2018 competition. The original dataset can be downloaded from here
In this project, contextual information is added from Wikipedia, New York Times, and BBC. The processed dataset with context is available here
python train_iron.py
13 commits
Python
100.0%
Sarcasm is a prevalent rhetorical device encountered in social media, news comments, or everyday conversations. However, it presents a considerable challenge for Natural Language Processing (NLP) tasks. This project aims to develop an efficient and accurate sarcasm detection model to understand textual content more accurately in various applications such as sentiment analysis and public opinion monitoring.
This project is implemented using Python 3.7
Additional package dependencies can be found in the requirements.txt file and installed using pip:
pip install -r requirements.txt
The configuration for the model, optimizer, and other settings can be found in the YAML file (iron.yaml). Make sure to go through the configuration to understand the different parameters.
To edit the configuration file, simply open iron.yaml in a text editor and modify the values according to your needs. For example, to change the learning rate:
train:
learning_rate: 2e-5 # Change this value
The dataset used for this project originates from the SemEval 2018 competition. The original dataset can be downloaded from here
In this project, contextual information is added from Wikipedia, New York Times, and BBC. The processed dataset with context is available here
python train_iron.py
13 commits
Python
100.0%