---
title: "Random Decision Syntax Trees at SemEval-2018 Task 3: LSTMs"
description: "This SemEval-2018 Task 3 system tackles irony detection in English tweets. 17 references."
authors: ["Aidan San"]
year: 2018
venue: "Proceedings of the 12th International Workshop on Semantic Evaluation"
source: "https://aclanthology.org/S18-1091/"
doi: "10.18653/v1/s18-1091"
licence: "CC BY 4.0 (ACL Anthology)"
licence_url: "https://creativecommons.org/licenses/by/4.0/"
summary_licence: "Elamur Cosmic License"
canonical: "https://research.elamur.ai/free/en/papers/san-2018-random-decision-syntax-trees-semeval/"
---
[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/san-2018-random-decision-syntax-trees-semeval/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2018](https://md.research.elamur.ai/free/en/papers/2018/page/6/) / Random Decision Syntax Trees at SemEval-2018 Task 3: LSTMs and Sentiment Scores for Irony Detection

# Random Decision Syntax Trees at SemEval-2018 Task 3: LSTMs and Sentiment Scores for Irony Detection

**Authors:** [Aidan San](https://md.research.elamur.ai/free/en/authors/aidan-san/) · **Year:** 2018 · **Venue:** [Proceedings of the 12th International Workshop on Semantic Evaluation](https://md.research.elamur.ai/free/en/venues/semeval/) ([SemEval 2018](https://md.research.elamur.ai/free/en/venues/semeval/2018/)) · **Publisher:** [Association for Computational Linguistics](https://md.research.elamur.ai/free/en/publishers/association-for-computational-linguistics/) · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

**Links:** [Publisher's page](https://aclanthology.org/S18-1091/) · [PDF](https://aclanthology.org/S18-1091.pdf) · [DOI 10.18653/v1/s18-1091](https://doi.org/10.18653/v1/s18-1091) · [OpenAlex](https://openalex.org/W2807700709)

**Citations:** 2 citations (OpenAlex, 2026-10-14)

## Summary
This SemEval-2018 Task 3 system tackles irony detection in English tweets. Subtask A is a binary ironic-vs-literal decision. Subtask B is a four-way choice: verbal irony by polarity contrast, other verbal irony, situational irony, or non-ironic. The pipeline has three steps. Tweets are tokenized with the Keras Tokenizer. Each token is then mapped to a vector that joins pretrained Google News Word2Vec or Emoji2Vec embeddings with positive and negative SentiWordNet scores. These vectors feed two stacked LSTM layers (dropout .25) and a final Dense layer. On the official test set the model scored F1 .5822 on subtask A, ranking 24th of 43, and F1 .4352 on subtask B. The paper gives 6th of 31 in its results and 5th in its abstract. An ablation on held-out training data showed that both the sentiment scores and the emoji vectors raise F1. The main lesson is that cheap, hand-built lexical features can still improve a neural model trained on little data.

## Key points
- Architecture built in Keras:
  - input of frequency-rank token IDs, then an embedding layer, two LSTM layers and a Dense output;
  - sigmoid with binary cross-entropy for subtask A, softmax with categorical cross-entropy for subtask B;
  - 30 epochs, batch size 32, tweets truncated to the first 30 words.
- Resources: Google News Word2Vec (trained on about 100 billion words), Emoji2Vec, and SentiWordNet accessed through NLTK, always using the first synset of a word.
- Ablation used ten runs on a 75/25 split of the training data:
  - full model F1 .6210;
  - without emoji embeddings F1 .6127;
  - without sentiment scores F1 .6093.
- The full model had slightly *lower* accuracy (.6091) than either reduced model. The author reads this as more balanced predictions across the two classes.
- Memory trick: building the embedding matrix only for tokens actually seen in the data cut RAM use from about 6GB to about 3GB on an 8GB machine.

## Interesting ideas
- Adding a few prior-polarity numbers from a sentiment lexicon to each token vector gives a small model a sentiment signal it could not learn from a small dataset.
- Picking the first synset is a crude stand-in for word-sense disambiguation, and the author names it as a weakness to fix.
- Emoji have their own pretrained vectors because they carry much of a tweet's emotional load, much as emoticons did before them.
- An ablation averaged over ten random splits showed accuracy and F1 moving in opposite directions, which exposed a class-balance effect rather than simply a better model.
- Tokenizing the corpus first and then loading only the needed embedding rows halves memory without changing the model.

## For Mova

How these ideas could serve Mova, our small open language model — its files, stages and tests:

- **I1** (frames): The irony module in prag could attach SentiWordNet positive/negative values to lemmas in the frame and flag clashes, such as positive words describing a negative event. This would make each irony decision traceable to specific words.
- **I2** (world): Sentiment and value lookups should read the WordNet sense already chosen for the entity or event, not the default sense. Lexicon priors would then follow the meaning in context.
- **I3** (tokens): The en tokenizer could keep each emoji as a distinct token with a lemma-like gloss. That way later stages can use the sentiment it signals instead of losing it as punctuation.
- **I4** (learn): Evaluations should report several metrics averaged over repeated splits, next to negative-control runs. This keeps a feature from being judged on a single misleading number.
- **I5** (tree): gparse training and inference could prune pretrained embedding tables to the treebank and input vocabulary. This would ease RAM limits on modest hardware.

*Our summary of the paper, in our own words — not its text. The work belongs to its authors; read it at the links above.*

## Institutions

- [University of Illinois Urbana-Champaign](https://md.research.elamur.ai/free/en/universities/university-of-illinois-urbana-champaign/) — University, Urbana, United States · 108 works · 67,432 citations

📚 Shelves (4): [🖥️ Computer Science](https://md.research.elamur.ai/free/en/shelves/computer-science/) · 9,086 works · [🤖 Artificial Intelligence](https://md.research.elamur.ai/free/en/shelves/computer-science/artificial-intelligence/) · 8,889 works · [🎭 Arts and Humanities](https://md.research.elamur.ai/free/en/shelves/arts-and-humanities/) · 9,296 works · [🗣️ Language and Linguistics](https://md.research.elamur.ai/free/en/shelves/arts-and-humanities/language-and-linguistics/) · 9,206 works

🧭 Topics (3): [English](https://md.research.elamur.ai/free/en/topics/english/) · 1,373 works · [😊 Sentiment & emotion](https://md.research.elamur.ai/free/en/topics/sentiment-emotion/) · 608 works · [📐 Syntax & grammar formalisms](https://md.research.elamur.ai/free/en/topics/syntax-grammar/) · 161 works

## Cite

Cite as: Aidan San. 2018. Random Decision Syntax Trees at SemEval-2018 Task 3: LSTMs and Sentiment Scores for Irony Detection. Proceedings of the 12th International Workshop on Semantic Evaluation.

The paper itself, not this page. BibTeX from the library's record of the work.

```bibtex
@inproceedings{san2018random,
  title = {{Random Decision Syntax Trees at SemEval-2018 Task 3: LSTMs and Sentiment Scores for Irony Detection}},
  author = {Aidan San},
  booktitle = {Proceedings of the 12th International Workshop on Semantic Evaluation},
  year = {2018},
  doi = {10.18653/v1/s18-1091},
  url = {https://doi.org/10.18653/v1/s18-1091}
}
```

- [← previous Parser combinators for Tigrinya and Oromo morphology](https://md.research.elamur.ai/free/en/papers/littell-2018-parser-combinators-tigrinya-oromo-morphology/)
- [next → The Biblical Hebrew idiom ‘lift the face’ in the Septuagint of Job](https://md.research.elamur.ai/free/en/papers/mangum-2018-biblical-hebrew-idiom-lift-face/)
- [↑ back to papers of 2018](https://md.research.elamur.ai/free/en/papers/2018/page/6/)

## References

17 references, 7 of them with a card of ours. ↗ leads to the work, «find» searches for one we have no id for yet.

1. Christos Baziotis, Nikos Pelekis, and Christos Doulk-eridis. 2017. Datastories at semeval-2017 task Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S Corrado, and Jeff Dean. 2013. [Distributed representations of words and phrases and their compositionality](https://md.research.elamur.ai/free/en/papers/mikolov-2013-distributed-representations-words-phrases-their/). In Advances in neural information processing systems, pages 3111–3119. 4: Deep lstm with attention for message-level and topic-based sentiment analysis. In Proceedings of the 11th International Workshop on Semantic Evaluation (SemEval-2017), pages 747–754.
2. Steven Bird and Edward Loper. 2004. [Nltk: the natural language toolkit](https://md.research.elamur.ai/free/en/papers/bird-2006-nltk-natural-language-toolkit/). In Proceedings of the ACL 2004 on Interactive poster and demonstration sessions, page 31. Association for Computational Linguistics.
3. Ellen Riloff, Ashequl Qadir, Prafulla Surve, Lalin-dra De Silva, Nathan Gilbert, and Ruihong Huang. 2013. [Sarcasm as contrast between a positive sentiment and negative situation](https://md.research.elamur.ai/free/en/papers/riloff-2013-sarcasm-as-contrast-between-positive/). In Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing, pages 704–714.
4. François Chollet et al. 2015. Keras. [https://github.com/fchollet/keras](https://github.com/fchollet/keras). [↗](https://github.com/fchollet/keras)
5. Sara Rosenthal, Noura Farra, and Preslav Nakov. 2017. [Semeval-2017 task 4: Sentiment analysis in twitter](https://md.research.elamur.ai/free/en/papers/rosenthal-2017-semeval-2017-task-4-sentiment/). In Proceedings of the 11th International Workshop on Semantic Evaluation (SemEval-2017), pages 502–518.
6. Mathieu Cliche. 2017. Bb twtr at semeval-2017 task 4: Twitter sentiment analysis with cnns and lstms. In Proceedings of the 11th International Workshop on Semantic Evaluation (SemEval-2017), pages 573– 580. [find](https://scholar.google.com/scholar?q=Mathieu+Cliche%2E+2017%2E+Bb+twtr+at+semeval%2D2017+task+4%3A+Twitter+sentiment+analysis+with+cnns+and+lstms%2E+In+Proceedings+of+the+11th+International+Workshop+on+Semantic+Evaluation+%28SemEval%2D2017%29%2C+pages+573)
7. Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. 2014. Dropout: A simple way to prevent neural networks from overfitting. The Journal of Machine Learning Research, 15(1):1929–1958. [find](https://scholar.google.com/scholar?q=Nitish+Srivastava%2C+Geoffrey+Hinton%2C+Alex+Krizhevsky%2C+Ilya+Sutskever%2C+and+Ruslan+Salakhutdinov%2E+2014%2E+Dropout%3A+A+simple+way+to+prevent+neural+networks+from+overfitting%2E+The+Journal+of+Machine+Learning+)
8. Ben Eisner, Tim Rocktäschel, Isabelle Augenstein, Matko Bošnjak, and Sebastian Riedel. 2016. [emoji2vec: Learning emoji representations from their description](https://md.research.elamur.ai/free/en/papers/eisner-2016-emoji2vec-learning-emoji-representations-their/). In Conference on Empirical Methods in Natural Language Processing, page 48.
9. Cynthia Van Hee, Els Lefever, and Véronique Hoste. 2018. [SemEval-2018 Task 3: Irony Detection in English Tweets](https://md.research.elamur.ai/free/en/papers/hee-2018-semeval-2018-task-3-irony/). In Proceedings of the 12th International Workshop on Semantic Evaluation, SemEval-2018, New Orleans, LA, USA. Association for Computational Linguistics.
10. Jeffrey L Elman. 1990. Finding structure in time. Cognitive science, 14(2):179–211. [↗](https://doi.org/10.1207/s15516709cog1402_1)
11. Andrea Esuli and Fabrizio Sebastiani. 2007. Sentiwordnet: a high-coverage lexical resource for opinion mining. Evaluation, pages 1–26. [find](https://scholar.google.com/scholar?q=Andrea+Esuli+and+Fabrizio+Sebastiani%2E+2007%2E+Sentiwordnet%3A+a+high%2Dcoverage+lexical+resource+for+opinion+mining%2E+Evaluation%2C+pages+1%E2%80%9326%2E)
12. Felix A Gers, Jürgen Schmidhuber, and Fred Cummins. 1999. Learning to forget: Continual prediction with lstm. [↗](https://doi.org/10.71910/supsi.7438)
13. Aniruddha Ghosh and Tony Veale. 2016. [Fracking sarcasm using neural network](https://md.research.elamur.ai/free/en/papers/ghosh-2016-fracking-sarcasm-neural-network/). In Proceedings of the 7th Workshop on Computational Approaches to Subjectivity, Sentiment and Social Media Analysis, pages 161–169. [↗](https://doi.org/10.13140/rg.2.2.16560.15363)
14. Pranav Goel, Devang Kulshreshtha, Prayas Jain, and Kaushal Kumar Shukla. 2017. Prayas at emoint 2017: An ensemble of deep neural architectures for emotion intensity prediction in tweets. In Proceedings of the 8th Workshop on Computational Approaches to Subjectivity, Sentiment and Social Media Analysis, pages 58–65. [find](https://scholar.google.com/scholar?q=Pranav+Goel%2C+Devang+Kulshreshtha%2C+Prayas+Jain%2C+and+Kaushal+Kumar+Shukla%2E+2017%2E+Prayas+at+emoint+2017%3A+An+ensemble+of+deep+neural+architectures+for+emotion+intensity+prediction+in+tweets%2E+In+Proceeding)
15. Sepp Hochreiter and Jürgen Schmidhuber. 1997. Lstm can solve hard long time lag problems. In Advances in neural information processing systems, pages 473–479. [find](https://scholar.google.com/scholar?q=Sepp+Hochreiter+and+Ju%CC%88rgen+Schmidhuber%2E+1997%2E+Lstm+can+solve+hard+long+time+lag+problems%2E+In+Advances+in+neural+information+processing+systems%2C+pages+473%E2%80%93479%2E)
16. Alexander Hogenboom, Daniella Bal, Flavius Frasincar, Malissa Bal, Franciska de Jong, and Uzay Kaymak. 2013. Exploiting emoticons in sentiment analysis. In Proceedings of the 28th Annual ACM Symposium on Applied Computing, pages 703–710. ACM. [find](https://scholar.google.com/scholar?q=Alexander+Hogenboom%2C+Daniella+Bal%2C+Flavius+Frasincar%2C+Malissa+Bal%2C+Franciska+de+Jong%2C+and+Uzay+Kaymak%2E+2013%2E+Exploiting+emoticons+in+sentiment+analysis%2E+In+Proceedings+of+the+28th+Annual+ACM+Symposium)
17. Wes McKinney. 2010. Data structures for statistical computing in python. In Proceedings of the 9th Python in Science Conference, pages 51 – 56. [find](https://scholar.google.com/scholar?q=Wes+McKinney%2E+2010%2E+Data+structures+for+statistical+computing+in+python%2E+In+Proceedings+of+the+9th+Python+in+Science+Conference%2C+pages+51+%E2%80%93+56%2E)

*Updated 24 October 2026*
