Skip to main content

Twitter Sarcasm Detection Exploiting a Context-Based Model

  • Conference paper
  • First Online:

Part of the book series: Lecture Notes in Computer Science ((LNISA,volume 9418))

Abstract

Automatically detecting sarcasm in twitter is a challenging task because sarcasm transforms the polarity of an apparently positive or negative utterance into its opposite. Previous work focus on feature modeling of the single tweet, which limit the performance of the task. These methods did not leverage contextual information regarding the author or the tweet to improve the performance of sarcasm detection. However, tweets are filtered through streams of posts, so that a wider context, e.g. a conversation or topic, is always available. In this paper, we compared sarcastic utterances in twitter to utterances that express positive or negative attitudes without sarcasm. The sarcasm detection problem is modeled as a sequential classification task over a tweet and his contextual information. A Markovian formulation of the Support Vector Machine discriminative model as embodied by the \(SVM^{hmm}\) algorithm has been employed to assign the category label to entire sequence. Experimental results show that sequential classification effectively embodied evidence about the context information and is able to reach a relative increment in detection performance.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Notes

  1. 1.

    http://dev.twitter.com/docs/streaming-apis.

  2. 2.

    To address the concern of Davidov et al. (2010) that tweets with #hashtags are noisy.

  3. 3.

    This method is found from Liang (2005), https://github.com/percyliang/brown-cluster.

  4. 4.

    http://www.ark.cs.cmu.edu/TweetNLP/.

References

  1. Liu, B., Zhang, L.: A survey of opinion mining and sentiment analysis. In: Aggarwal, C.C., Zhai, C. (eds.) Mining Text Data, pp. 415–463. Springer, New York (2012)

    Chapter  Google Scholar 

  2. Tsytsarau, M., Palpanas, T.: Survey on mining subjective data on the Web. Data Min. Knowl. Discov. 24(3), 478–514 (2012)

    Article  MATH  Google Scholar 

  3. Davidov, D., Tsur, O., Rappoport, A.: Semi-supervised recognition of sarcastic sentences in Twitter and Amazon. In: Processdings of the Fourteenth Conference on Computational Natural Language Learning (CoNLL 2010), Uppsala, Sweden, pp. 107–116 (2010)

    Google Scholar 

  4. Pang, B., Lee, L.: Opinion mining and sentiment analysis. Found. Trends Inf. Retireval 2(1–2), 1–135 (2008)

    Article  Google Scholar 

  5. Altun, Y., Tsochantaridis, I., Hofmann, T.: Hidden Markov support vector machines. In: Processdings of the International Conference on Machine Learning (ICML 2003), Washington, pp. 3–10 (2003)

    Google Scholar 

  6. Vanzo, A., Crose, D., Basili, R.: A context-based model for sentiment analysis in Twitter. In: Processdings of the 25th International Conference on Computational Linguistics: Technical Papers (COLING 2014), Dublin, Ireland, pp. 2345–2354 (2014)

    Google Scholar 

  7. Gonzalez-Ibanez, R., Muresan, S., Wacholder, N.: Identifying sarcasm in Twitter: a closer look. In: Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies (ACL-HLT 2011), Portland, Oregon, pp. 581–586 (2011)

    Google Scholar 

  8. Filatova, E.: Irony and Sarcasm: corpus generation and analysis using crowdsourcing. In: Language Resources and Evaluation, pp. 392–398 (2012)

    Google Scholar 

  9. Burfoot, C., Baldwin, T.: Automatic satire detection: are you having a laugh? In: Joint Conference of the 47th Annual Meeting of the Association for Computational Linguistics and the 4th International Joint Conference on Natural Language Processing of the Asian Federation of Natural Language Processing (ACL-IJCNLP 2009), Singapore, pp. 161–164 (2009)

    Google Scholar 

  10. Tepperman, J., Traum, D., Narayanan, S.: “Yeah Right”: Sarcasm recognitio for spoken dialogue Systems. In: Proceedings of the 9th International Conference on Spoken Language Processing, Antwerp, Belgium (2006)

    Google Scholar 

  11. Tsur, O., Davidov, D., Rappoport, A.: Semi-supervised recognition of sarcastic sentences in online product reviews. In: AAAI Conference on Weblogs and Social Media, Atlanta, Georgia, pp. 107–116 (2010)

    Google Scholar 

  12. Carvalho, P., Sarmento, L., Silva, M.J., de Oliveira, E.: Clues for detecting irony in user-generated contents: oh...!! it’s so easy; -). In: Proceedings of the 1st CIKM Workshop on Topic-Sentiment Analysis for Mass Opinion, New York, NY, pp. 53–56 (2009)

    Google Scholar 

  13. Veale, T., Hao, Y.: Detecting ironic intent in creative comparisons. In: Proceedings of the 19th Europen Conference on Artificial Intelligence (ECAI 2010), The Netherlands, Amsterdam, pp. 765–770 (2010)

    Google Scholar 

  14. Reyes, A., Rosso, P., Veale, T.: A multidimensional approach for detecting irony in Twitter. Lang. Resour. Eval. 47(1), 239–368 (2012)

    Article  Google Scholar 

  15. Riloff, E., Qadir, A., Surve, P., Silva, L.D., Gilbert, N., Huang, R.: Sarcasm as contrast between a positive sentiment and negative situation. In: Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing (EMNLP 2013), Seattle, USA, pp. 704–714 (2013)

    Google Scholar 

  16. Wallace, B.C., Choe, D.K., Kertz, L., Charniak, E.: Humans require context to infer ironic intent (so computers probably do, too). In: Processdings of the 52nd Annual Meeting of the Association for Computational Linguistics (ACL 2014), Baltimore, Maryland, USA, pp. 512–516 (2014)

    Google Scholar 

  17. Nakov, P., Rosenthal, S., Kozareva, Z., Stoyanov, V., Ritter, A., Wilson, T.: Semeval-2013 task 2: sentiment analysis in Twitter. In: Second Joint Conference on Lexical and Computational Semantics (*SEM), Proceedings of the Seventh International Workshop on Semantic Evaluation(SemEval 2013), Atlanta, Georgia, USA, vol. 2, pp. 312–330 (2013)

    Google Scholar 

  18. Pang, B., Lee, L., Vaithyanathan, S.: Thumbs up? Sentiment classification using machine learning techniques. In: Preceedings of the Conference on Empirical Methods in Natural Language Processing (EMNLP 2002), Philadelphia, pp. 79–86 (2002)

    Google Scholar 

  19. Owoputi, O., O’Conor, B., Dyer, C., Gimpel, K., Schneider, N., Smith, N.A.: Improving part-of-speech tagging for online conversational text with word clusters. In: The 2013 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL 2013), Atlanta, pp. 380–390 (2013)

    Google Scholar 

  20. Brown, P.F., deSouza, P.V., Mercer, R.L., Della Pietra, V.J., Lai, J.C.: Class-based n-gram models of natural language. Comput. Linguist. 18(4), 467–479 (1992)

    Google Scholar 

  21. Joachims, T., Finley, T., Chun-Nam, Y.: Cutting-plane training of structural SVMs. Mach. Learn. 77(1), 27–59 (2009)

    Article  MATH  Google Scholar 

  22. Crammer, K., Singer, Y.: On the algorithmic implementation of multiclass kernel-vector machines. J. Mach. Learn. Res. 2, 265–292 (2001)

    Google Scholar 

  23. Barbieri, F., Saggion, H.: Modelling irony in Twitter. In: Proceedings of the Student Research Workshop at the 14th Conference of the Europen Chapter of the Association for Computational Linguistics, Gothenburg, Sweden, pp. 56–64 (2014)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Zelin Wang .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Springer International Publishing Switzerland

About this paper

Cite this paper

Wang, Z., Wu, Z., Wang, R., Ren, Y. (2015). Twitter Sarcasm Detection Exploiting a Context-Based Model. In: Wang, J., et al. Web Information Systems Engineering – WISE 2015. WISE 2015. Lecture Notes in Computer Science(), vol 9418. Springer, Cham. https://doi.org/10.1007/978-3-319-26190-4_6

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-26190-4_6

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-26189-8

  • Online ISBN: 978-3-319-26190-4

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics