KLUEnicorn at SemEval-2018 Task 3: A Naive Approach to Irony Detection
Paper · 2018 · Luise Dürlich
Summary
This paper presents KLUEnicorn, a constrained submission to SemEval-2018 Task 3 on irony detection in English tweets. Task A is binary (ironic vs. not); Task B separates three irony types from non-irony. Only the official training set of 3,834 tweets was used, with no author or other context. After cleaning, the tweets were tagged with Ark TweetNLP. The system extracts lightweight features:
- TF-IDF n-grams and tweet length
- punctuation and Twitter-specific counts
- sentiment from AFINN and SentiWordNet
- named entities and number expressions
- 19 Wiktionary adverb categories
- sums of word2vec vectors from two models, one trained on ironic and one on non-ironic tweets
An F-test keeps the top 15% of features, and a Gaussian naïve Bayes classifier makes the decision. Ablations found the embedding-based features most useful. Officially, the system fell below the bag-of-words SVM baseline on Task A and ranked 27th and 23rd. However, a two-step variant using all features beat the baseline on Task B. The study shows how far shallow, tweet-only cues go and where they fail, especially on rare situational irony.
Key points
- Data: 1,911 ironic and 1,923 non-ironic training tweets. The ironic ones split into 1,390 polarity-contrast, 316 other verbal and 205 situational. Only about 14% of ironic tweets had URLs, mostly links to images or tweets.
- Embeddings: two word2vec models built with gensim, using 100 dimensions, window 5 and hierarchical softmax. Each tweet vector is the sum of its word vectors, normalised to unit length.
- Classifier comparison (10-fold CV, Task A): naïve Bayes, SVM, decision tree and random forest were compared. Random forest on all features scored best at 70.06 F1. Removing the embedding group cost up to about 10 points for random forest.
- Feature importance (random forest): embedding dimensions carried 91% of the importance weight. Tweet length in characters ranked first, followed by positive word sentiment. Among adverb types, demonstrative adverbs were most informative.
- Test results:
- Task A: F1 55.71 vs. a benchmark of 58.91.
- Task B: the feature-selected two-step version beat the benchmark F1 (34.08) by about 6 points.
- Situational irony reached only about 11% F1, while non-irony was found with nearly 80% recall.
Interesting ideas
- I1. Build two separate representations of a text, one from a model of literal usage and one from a model of ironic usage, and let the gap between them signal irony.
- I2. Sort adverbs into fine-grained semantic classes (location, temporal, degree, evaluative, speech-act, etc.) instead of one ADV tag, because time and place adverbs may hint at situational irony while degree adverbs hint at hyperbole.
- I3. Run each feature-group ablation in both directions, training on the group alone and on everything except the group, to tell which groups are informative and which are redundant.
- I4. Classify hierarchically: first decide ironic vs. literal, then decide the irony type, so the scarce subtypes do not swamp the main decision.
- I5. Split hashtags using regular expressions plus a dictionary that mixes a standard wordlist with terms mined from in-domain tweets, so non-standard spellings still get segmented.
For Mova
How these ideas could serve Mova, our small open language model — its files, stages and tests:
- I1 (frames): the prag irony module could compute a literal and an ironic frame reading for each utterance and flag irony when the expected world-state clash appears, which keeps the decision explainable.
- I2 (tokens): crate en could attach a Wiktionary-derived adverb class to each lemma, giving prag and world ready cues for hyperbole, stance and event timing.
- I3 (learn): this two-way ablation could become a standard evaluation protocol for Mova's rule and feature families, alongside the negative controls.
- I4 (frames): prag could first gate whether an utterance is non-literal at all and only then pick a speech-act or irony subtype, making each choice separately inspectable.
- I5 (tokens): the tokenizer could segment hashtags and run-together tokens into real words for the UD tree, with a domain-mined lexicon added to the standard one.
Institutions
📚 Shelves 4The field of science this work belongs to (OpenAlex fields).Computer Science · 9,086 worksArtificial Intelligence · 8,889 worksArts and Humanities · 9,296 worksLanguage and Linguistics · 9,206 works
🧭 Topics 2Research subjects and languages the work is about.English · 1,373 worksSentiment & emotion · 608 works
Cite
Cite as Luise Dürlich. 2018. KLUEnicorn at SemEval-2018 Task 3: A Naive Approach to Irony Detection. Proceedings of the 12th International Workshop on Semantic Evaluation.
@inproceedings{durlich2018kluenicorn,
title = {{KLUEnicorn at SemEval-2018 Task 3: A Naive Approach to Irony Detection}},
author = {Luise Dürlich},
booktitle = {Proceedings of the 12th International Workshop on Semantic Evaluation},
year = {2018},
doi = {10.18653/v1/s18-1099},
url = {https://doi.org/10.18653/v1/s18-1099}
}References
- ””tall blonde”” Hahahaha #irony H. Clark and R. J. Gerrig. 1984. On the Pretense Theory of Irony. Journal of Experimental Psychology: General, 1:121–126. Fox News’ despite Fox agreeing with them http://t.co/GWIS4hZAI6 #EricGarner #Irony A. Esuli and F. Sebastiani. 2006. SENTIWORDNET: A Publicly Available Lexical Resource for Opinion Mining. In In Proceedings of the 5th Conference on Language Resources and Evaluation (LREC06, pages 417–422. *Table 7: Example predictions KLUEnicorn – Task A* ↗
- D. Ghosh, W. Guo, and S. Muresan. 2015. Sarcastic or Not: Word Embeddings to Predict the Literal or Sarcastic Meaning of Words. In Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing, pages 1003–1012. Association for Computational Linguistics.
- R. González-Ibáñez, S. Muresan, and N. Wacholder. 2011. Identifying sarcasm in Twitter: a closer look. In Proceedings of the 49th Annual Meeting of the ASsociation for Computational Linguistics: Human Language Technologies: short papers, volume 2, pages 581–586.
- R. Kreuz and G. Caucci. 2007. Lexical Influences on the Perception of Sarcasm. Proceedings of the Workshop on Computational Approaches to Figurative Language, pages 2–4.
- L. Kumar, A. Somani, and P. Bhattacharyya. 2017. ”Having 2 hours to write a paper is fun!”: Detecting Sarcasm in Numerical Portions of Text. CoRR. ↗
- F. Å. Nielsen. 2011. AFINN. Informatics and Mathematical Modelling, Technical University of Denmark. find
- B. O’Connor, C. Dyer, K. Gimpel, N. Schneider, and N. A. Smith. 2013. Improved Part-of-Speech Tagging for Online Conversational Text with Word Clusters. In Proceedings of NAACL.
- F. Pedregosa, G. Varoquaux, A. Gramfort, V. Michel, B. Thirion, O. Grisel, M. Blondel, P. Prettenhofer, R. Weiss, V. Dubourg, V. Vanderplas, A. Passos, D. Cournapeau, M. Brucher, M. Perrot, and E. Duchesnay. 2011. Scikit-learn: Machine learning in Python. Journal of Machine Learning Research, 12:2825–2830. ↗
- A. Silvio, B. C. Wallace, H. Lyu, P. Carvalho, and M. J. Silva. 2016. Modelling Context with User Embeddings for Sarcasm Detection in Social Media. In Proceedings of the 20th SIGNLL Conference on Computational Natural Language Learning (CoNLL, pages 167–177, Berlin, Germany.
- C. Van Hee, E. Lefever, and V. Hoste. 2018. SemEval-2018 Task 3: Irony Detection in English Tweets. In Proceedings of the 12th International Workshop on Semantic Evaluation, SemEval-2018, New Orleans, LA, USA. Association for Computational Linguistics.
Updated
This page in Markdown → https://md.research.elamur.ai/free/en/papers/durlich-2018-kluenicorn-semeval-2018-task-3/