This repository is an implementation for paper "Modeling the Incongruity between Sentence Snippets for Sarcasm Detection". To run the code, you just need to follow the below steps:
- Due to the space limit, we didn't put the GloVe word embeddings here. You can download from http://nlp.stanford.edu/projects/glove/
- Put the file "glove.6B.100d.txt" under data directory.
- Install all the packages which are required by the codes.
- Run get_glove_model.py firstly to generate word embedding vectors and save it in a pickle file.
- Edit the config.py file to change the hyper-parameters.
- Type python main.py to train and test the model.
- The model will be saved under model directory.
- The training loss will be stored in loss_record folder.