Elamur Research⌕
☰
home / papers / 2018 / ELiRF-UPV at SemEval-2018 Tasks 1 and 3: Affect and Irony Detection in Tweets

ELiRF-UPV at SemEval-2018 Tasks 1 and 3: Affect and Irony Detection in Tweets

Paper · 2018 · José-Ángel González, Lluís-F. Hurtado and Ferran Pla

Summary

The ELiRF-UPV team built one neural system for two SemEval-2018 tweet tasks. Task 1, Affect in Tweets, covers English and Spanish and asks for emotion intensity, sentiment (valence) intensity and multi-label emotion classification. Task 3 is English irony detection, with a binary subtask and a four-way subtask.

Each tweet becomes a matrix of word vectors. Every vector joins a Word2Vec embedding with scores taken from polarity and emotion lexicons. This matrix feeds a two-layer CNN followed by an LSTM and a dense output layer. Hyperparameters, lexicon choice and loss were tuned per subtask on the development sets. The ordinal subtasks were not trained separately; they reuse the regression models and cut their scores into classes with thresholds.

The authors' main finding is that training directly on a differentiable version of the official metric (Jaccard, F1 or macro-F1) beat cross-entropy. The system placed mid-table in English and near the top in Spanish. The work shows that a modest model with lexical features and an aligned loss can compete across several affect tasks.

Key points

  • Embeddings:
    • English used Word2Vec vectors from Godin et al., pre-trained on 400M tweets.
    • Spanish used the team's own skip-gram vectors: 300 dimensions, trained on 87M crawled tweets.
  • Lexicons:
    • English kept all eight: AFFIN, Bing Liu, MPQA, Sentiment140, SentiWordnet, NRC Emotion, NRC Hashtag Emotion and LIWC2007.
    • Spanish kept only ElHPolar and ISOL; MLSenticon was dropped after tuning.
  • Architecture: a two-layer CNN (64–256 filters, filter height 3) with batch normalization between layers, then an LSTM with dropout 0.2, trained with RMSProp. A plain LSTM was better only for EI-Reg on development data (67.57 vs 64.12 Pearson for English).
  • Metric as loss (development results):
    • English E-C: 55.23 Jaccard with a Jaccard loss vs 52.11 with cross-entropy.
    • Task 3 subtask B: 45.45 macro-F1 with a macro-F1 loss vs 44.59 with cross-entropy.
  • Test results:
    • Spanish Task 1 ranked 2nd in V-Reg (74.20), V-Oc (72.90) and E-C (45.80).
    • English EI-Reg scored 69.60 (13th of 42).
    • Irony subtask A scored 62.94 F1 (7th of 44); subtask B scored 42.11 (8th of 32).

Interesting ideas

  • I1. Optimizing a smooth stand-in for the official evaluation measure, instead of a generic loss, gave consistent gains on set-overlap and F-style metrics, so training targets the score that is actually reported.
  • I2. Ordinal labels were produced by thresholding one regression model, with cut points taken from the lowest score each class reaches in training data, so a single model serves two subtasks.
  • I3. Each token vector was extended with lexicon-derived polarity and emotion values, so hand-built knowledge enters the model per word rather than as a document-level count.
  • I4. A query item (the target emotion) was appended as an extra input row with a flag column telling it apart from the tweet's words, a cheap way to condition one model on a question.
  • I5. The task's irony taxonomy separates irony built on polarity contrast from other verbal irony and from situational irony, which gives a finer target than ironic vs not ironic.

For Mova

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

  • I1 (learn): when training the gparse parser or tagger, try a loss that approximates LAS or per-label F1 directly, and check it against a cross-entropy baseline.
  • I2 (frames): score sentiment or irony strength once as a continuous value, then map it to discrete levels with thresholds learned from data that can be shown in an explanation.
  • I3 (tokens): attach lexicon polarity and emotion attributes to each lemma in the en crate, so later stages can trace which word carried an affective cue.
  • I4 (answer): readers could append the question focus as a marked extra element in the input, letting one scorer handle many query types.
  • I5 (frames): the irony module in prag could use these three categories, flagging polarity contrast as a clash between the frame's expected and stated evaluation.

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

Cite

Cite as José-Ángel González, Lluís-F. Hurtado and Ferran Pla. 2018. ELiRF-UPV at SemEval-2018 Tasks 1 and 3: Affect and Irony Detection in Tweets. Proceedings of the 12th International Workshop on Semantic Evaluation.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/s18-1092

@inproceedings{gonzalez2018elirf,
  title = {{ELiRF-UPV at SemEval-2018 Tasks 1 and 3: Affect and Irony Detection in Tweets}},
  author = {José-Ángel González, Lluís-F. Hurtado and Ferran Pla},
  booktitle = {Proceedings of the 12th International Workshop on Semantic Evaluation},
  year = {2018},
  doi = {10.18653/v1/s18-1092},
  url = {https://doi.org/10.18653/v1/s18-1092}
}

References

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

  1. Stefano Baccianella, Andrea Esuli, and Fabrizio Sebastiani. 2010. Sentiwordnet 3.0: An enhanced lexical resource for sentiment analysis and opinion mining. In in Proc. of LREC.
  2. Saif M. Mohammad, Felipe Bravo-Marquez, Mohammad Salameh, and Svetlana Kiritchenko. 2018. Semeval-2018 Task 1: Affect in tweets. In Proceedings of International Workshop on Semantic Evaluation (SemEval-2018), New Orleans, LA, USA.
  3. Fermı́n L. Cruz, José A. Troyano, Beatriz Pontes, and F. Javier Ortega. 2014. Building layered, multilingual sentiment lexicons at synset and lemma levels. Expert Systems with Applications, 41(13):5984 – 5994. ↗
  4. Saif M. Mohammad and Peter D. Turney. 2013. Crowdsourcing a word-emotion association lexicon. 29(3):436–465. ↗
  5. Kunihiko Fukushima. 1980. Neocognn: A self-organizing neural network model for a mechanism of pattern recognition unaffected by shift in position. Biological Cybernetics, 36(4):193–202. find
  6. M. Dolores Molina-González, Eugenio Martı́nez-Cámara, Marı́a-Teresa Martı́n-Valdivia, and José M. Perea-Ortega. 2013. Semantic orientation for polarity classification in spanish reviews. Expert Systems with Applications, 40(18):7250 – 7257. ↗
  7. Alec Go, Richa Bhayani, and Lei Huang. 2009. Twitter sentiment classification using distant supervision. 150. find
  8. Vinod Nair and Geoffrey E. Hinton. 2010. Rectified linear units improve restricted boltzmann machines. In Proceedings of the 27th International Conference on International Conference on Machine Learning, ICML’10, pages 807–814, USA. Omnipress. find
  9. JW Pennebaker, CK Chung, M Ireland, A Gonzales, and RJ Booth. 2014. The development and psychological properties of liwc2007. find
  10. Xabier Saralegi and Inaki San Vicente. 2013. Elhuyar at tass 2013. In XXIX Congreso de la Sociedad Es-paola de Procesamiento de lenguaje natural, Workshop on Sentiment Analysis at SEPLN (TASS2013), pages 143–150. find
  11. Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. 2014. Dropout: A simple way to prevent neural networks from overfitting. J. Mach. Learn. Res., 15(1):1929– 1958. T. Tieleman and G. Hinton. RMSprop Gradient Optimization. find
  12. Cynthia Van Hee, Els Lefever, and Véronique Hoste. 2018. Semeval-2018 Task 3: Irony detection in English Tweets. In Proceedings of International Workshop on Semantic Evaluation (SemEval-2018), New Orleans, LA, USA.
  13. Theresa Wilson, Janyce Wiebe, and Paul Hoffmann. 2005. Recognizing contextual polarity in phrase-level sentiment analysis. In Proceedings of the Conference on Human Language Technology and Empirical Methods in Natural Language Processing, HLT ’05, pages 347–354, Stroudsburg, PA, USA. Association for Computational Linguistics.

Updated

↑ back to top

This page in Markdown → https://md.research.elamur.ai/free/en/papers/gonzalez-2018-elirf-upv-semeval-2018-tasks/