Overview of the Proposed Model ACE 1
Overview of the Proposed Model ACE 2
Contributions
- We present two novel deep neural network language models (ACE 1 and ACE 2) for sarcasm detection.Each model extends the architecture of BERT by incorporating both affective and contextual featuresof text to build a classifier that can determine whether a document is sarcastic or not. To the bestof our knowledge, this is the first attempt to directly alter BERT’s architecture and train it from theground-up (rather than using the already pre-trained BERT embeddings) for sarcasm detection.
- Integral to our proposed models is a novel model that learns the affective representation of a document,using a Bi-LSTM architecture with multi-head attention. The resulting representation takes intoaccount the importance of the affect representations of the sentences in the document.
- We design and evaluate alternatives that materialize each of the two components (affective featureembedding and contextual feature embedding) of the proposed deep neural network architecturemodel. We systematically evaluate the effectiveness of each alternative architecture.
- We conduct an extensive evaluation of the performance of the proposed models (ACE 1 and ACE 2),which demonstrates that they significantly outperform current state-of-the-art models for sarcasmdetection.
Corpora for Training Embeddings
- News : https://www.kaggle.com/snapcrack/all-the-news
- Wikipedia : https://www.kaggle.com/jkkphys/english-wikipedia-articles-20170820-sqlite
- WikiSarc: IMSDB:https://www.imsdb.com/ Scraper:https://github.com/JoeKarlsson/movie-script-scraper
- Riloff: riloff-etal-2013-sarcasm
** Sarcasm Detection Datasets**
- Onion : https://github.com/rishabhmisra/News-Headlines-Dataset-For-Sarcasm-Detection
- IAC : https://nlds.soe.ucsc.edu/sarcasm2
- Reddit : https://nlp.cs.princeton.edu/SARC/0.0/
- Pt'acek: Ptcek2014SarcasmDO
- SemEval-201: van-hee-etal-2018-semeval
Dependency installation
Python 3.6. The package requirements are stored in requirements.
To install the requirements, execute the following command:
For GPU usage, execute:
pip install -r requirements/requirements-gpu.txt and for CPU usage:
pip install -r requirements/requirements-cpu.txt
@inproceedings{babanejad-etal-2020-affective, title = "Affective and Contextual Embedding for Sarcasm Detection", author = "Babanejad, Nastaran and Davoudi, Heidar and An, Aijun and Papagelis, Manos", booktitle = "Proceedings of the 28th International Conference on Computational Linguistics", month = dec, year = "2020", address = "Barcelona, Spain (Online)", publisher = "International Committee on Computational Linguistics", url = "https://www.aclweb.org/anthology/2020.coling-main.20", pages = "225--243", }