Adapting Sentiment Lexicons Using Contextual Semantics for Sentiment Analysis of Twitter

  • Hassan Saif
  • Yulan He
  • Miriam Fernandez
  • Harith Alani
Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 8798)


Sentiment lexicons for sentiment analysis offer a simple, yet effective way to obtain the prior sentiment information of opinionated words in texts. However, words’ sentiment orientations and strengths often change throughout various contexts in which the words appear. In this paper, we propose a lexicon adaptation approach that uses the contextual semantics of words to capture their contexts in tweet messages and update their prior sentiment orientations and/or strengths accordingly. We evaluate our approach on one state-of-the-art sentiment lexicon using three different Twitter datasets. Results show that the sentiment lexicons adapted by our approach outperform the original lexicon in accuracy and F-measure in two datasets, but give similar accuracy and slightly lower F-measure in one dataset.


Sentiment analysis Semantics Lexicon adaptation Twitter 



This work was supported by the EU-FP7 project SENSE4US (grant no. 611242).


  1. 1.
    Baccianella, S., Esuli, A., Sebastiani, F.: SentiWordNet 3.0: an enhanced lexical resource for sentiment analysis and opinion mining. In: Seventh Conference on International Language Resources and Evaluation, Valletta, Malta (2010). Accessed May 2010Google Scholar
  2. 2.
    Bollen, J., Mao, H., Zeng, X.: Twitter mood predicts the stock market. Int. J. Comput. Sci. 2(1), 1–8 (2011)CrossRefGoogle Scholar
  3. 3.
    Cambria, E.: An introduction to concept-level sentiment analysis. In: Castro, F., Gelbukh, A., González, M. (eds.) MICAI 2013, Part II. LNCS, vol. 8266, pp. 478–483. Springer, Heidelberg (2013)CrossRefGoogle Scholar
  4. 4.
    Diakopoulos, N., Shamma, D.: Characterizing debate performance via aggregated twitter sentiment. In: Proceeding of 28th International Conference on Human Factors in Computing Systems. ACM (2010)Google Scholar
  5. 5.
    Esuli, A., Sebastiani, F.: Determining term subjectivity and term orientation for opinion mining. In: EACL, vol. 6, p. 2006 (2006)Google Scholar
  6. 6.
    Hu, X., Tang, J., Gao, H., Liu, H.: Unsupervised sentiment analysis with emotional signals. In: Proceedings of the 22nd World Wide Web Conference (2013)Google Scholar
  7. 7.
    Kouloumpis, E., Wilson, T., Moore, J.: Twitter sentiment analysis: the good the bad and the OMG! In: Proceedings of the ICWSM, Barcelona, Spain (2011)Google Scholar
  8. 8.
    Nielsen, F.Å.: A new ANEW: evaluation of a word list for sentiment analysis in microblogs (2011). arXiv:
  9. 9.
    Saif, H., Fernandez, M., He, Y., Alani, H.: Evaluation datasets for twitter sentiment analysis a survey and a new dataset, the STS-Gold. In: Proceedings of the 1st ESSEM Workshop, Turin, Italy (2013)Google Scholar
  10. 10.
    Saif, H., Fernandez, M., He, Y., Alani, H.: SentiCircles for contextual and conceptual semantic sentiment analysis of Twitter. In: Presutti, V., d’Amato, C., Gandon, F., d’Aquin, M., Staab, S., Tordai, A. (eds.) ESWC 2014. LNCS, vol. 8465, pp. 83–98. Springer, Heidelberg (2014)Google Scholar
  11. 11.
    Saif, H., He, Y., Alani, H.: Semantic sentiment analysis of Twitter. In: Cudré-Mauroux, P., Heflin, J., Sirin, E., Tudorache, T., Euzenat, J., Hauswirth, M., Parreira, J.X., Hendler, J., Schreiber, G., Bernstein, A., Blomqvist, E. (eds.) ISWC 2012, Part I. LNCS, vol. 7649, pp. 508–524. Springer, Heidelberg (2012)CrossRefGoogle Scholar
  12. 12.
    Speriosu, M., Sudan, N., Upadhyay, S., Baldridge, J.: Twitter polarity classification with label propagation over lexical links and the follower graph. In: Proceedings of the EMNLP First Workshop on Unsupervised Learning in NLP, Edinburgh, Scotland (2011)Google Scholar
  13. 13.
    Suttles, J., Ide, N.: Distant supervision for emotion classification with discrete binary values. In: Gelbukh, A. (ed.) CICLing 2013, Part II. LNCS, vol. 7817, pp. 121–136. Springer, Heidelberg (2013)CrossRefGoogle Scholar
  14. 14.
    Takamura, H., Inui, T., Okumura, M.: Extracting semantic orientations of words using spin model. In: Proceedings of 43rd Annual Meeting on Association for Computational Linguistics (2005)Google Scholar
  15. 15.
    Thelwall, M., Buckley, K., Paltoglou, G.: Sentiment strength detection for the social web. J. Am. Soc. Inform. Sci. Technol. 63(1), 163–173 (2012)CrossRefGoogle Scholar
  16. 16.
    Thelwall, M., Buckley, K., Paltoglou, G., Cai, D., Kappas, A.: Sentiment strength detection in short informal text. J. Am. Soc. Inform. Sci. Technol 61(12), 2544–2558 (2010)CrossRefGoogle Scholar
  17. 17.
    Turney, P., Littman, M.: Measuring praise and criticism: inference of semantic orientation from association. ACM Trans. Inf. Syst. 21, 315–346 (2003)CrossRefGoogle Scholar
  18. 18.
    Turney, P.D., Pantel, P., et al.: From frequency to meaning: vector space models of semantics. J. Artif. Intell. Res. 37(1), 141–188 (2010)MathSciNetMATHGoogle Scholar
  19. 19.
    Velikovich, L., Blair-Goldensohn, S., Hannan, K., McDonald, R.: The viability of web-derived polarity lexicons. In: Human Language Technologies, ACL (2010)Google Scholar
  20. 20.
    Wilson, T., Wiebe, J., Hoffmann, P.: Recognizing contextual polarity in phrase-level sentiment analysis. In: Proceedings of Empirical Methods in NLP Conference (EMNLP), Vancouver, Canada (2005)Google Scholar
  21. 21.
    Xu, T., Peng, Q., Cheng, Y.: Identifying the semantic orientation of terms using S-HAL for sentiment analysis. Knowl.-Based Syst. 35, 279–289 (2012)CrossRefGoogle Scholar

Copyright information

© Springer International Publishing Switzerland 2014

Authors and Affiliations

  • Hassan Saif
    • 1
  • Yulan He
    • 2
  • Miriam Fernandez
    • 1
  • Harith Alani
    • 1
  1. 1.Knowledge Media InstituteThe Open UniversityMilton KeynesUK
  2. 2.School of Engineering and Applied ScienceAston UniversityBirminghamUK

Personalised recommendations