Skip to main content

Sentiment Analysis of Tweets Through Data Mining Technique

  • Conference paper
  • First Online:
Progress in Advanced Computing and Intelligent Engineering

Part of the book series: Advances in Intelligent Systems and Computing ((AISC,volume 713))

  • 508 Accesses

Abstract

Sentiment analysis extracts the mood of a speaker or an author with respect to some subject or the overall contextual polarity of a document. In this paper, an algorithm is proposed for sentiment analysis of tweets extracted from social networking site, i.e., twitter. The comments of users are analyzed and are divided into two parts: positive and the negative sentiments. Algorithms used are keyword spotting and lexical affinity. Tweets are extracted from Twitter through REST API and real time. After that, filtration processes such as stemming, elimination of stop wordsetc are performed and then algorithms are applied on the remaining dataset. The correctness of those algorithms is checked using the results from the standard ALCHEMY API, and the accuracy of those algorithms is calculated individually. A new algorithm is proposed which is the hybrid of both keyword spotting and lexical affinity. The results of that algorithm are generated, and the accuracy is calculated and compared with rest of the algorithms. Machine learning is implemented using NLTK (natural language toolkit).

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 129.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 169.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

Institutional subscriptions

References

  1. Liu, B.: Sentiment analysis and subjectivity. In: Handbook of Natural Language Processing (2010)

    Google Scholar 

  2. Binali, H., Potdar, V., Wu, C.: A state of the art opinion mining and its application domains. In: IEEE International Conference on Industrial Technology, pp. 1–6, Feb 2009

    Google Scholar 

  3. Alchemy Api.: Available from: www.alchemyapi.com. Last visited Mar 2012

  4. Batool, R., Khattak, A.M., Maqbool, J., Lee, S.: Precise Tweet Classification and Sentiment Analysis. IEEE (2013)

    Google Scholar 

  5. Nasukawa, T., Yi, J.: Sentiment analysis: capturing favorability using natural language processing. In: Proceedings of the 2nd International Conference on Knowledge Capture, pp. 70–77. ACM (2003)

    Google Scholar 

  6. Yi, J., Nasukawa, T., Bunescu, R., Niblack, W.: Sentiment analyzer: extracting sentiments about a given topic using natural language processing techniques. In: International Conference on Data Mining, ICDM 2003, Third IEEE, pp. 427–434. IEEE (2003)

    Google Scholar 

  7. Godbole, N., Srinivasaiah, M., Skiena, S.: Large-scale sentiment analysis for news and blogs. In: Proceedings of the International Conference on Weblogs and Social Media (ICWSM), pp. 219–222 (2007)

    Google Scholar 

  8. Yang, C., Lin, K.H.Y., Chen, H.H.: Emotion classification using web blog corpora. In: WI’07 Proceedings of the IEEE/WIC/ACM International Conference on Web Intelligence, pp. 275–278. IEEE Computer Society, Washington, DC, USA (2007)

    Google Scholar 

  9. Go, A., Bhayani, R., Huang, L.: Twitter sentiment classification using distant supervision. Technical Report, Stanford (2009)

    Google Scholar 

  10. Gamon, M.: Sentiment classification on customer feedback data: noisy data, large feature vectors, and the role of linguistic analysis. In: Proceedings of the 20th International Conference on Computational Linguistics (2004)

    Google Scholar 

  11. Pak, A., Paroubek, P.: Twitter as a corpus for sentiment analysis and opinion mining, 2010 IEEE (2013)

    Google Scholar 

  12. Cambria, E.: An Introduction to Concept-Level Sentiment Analysis. IEEE (2013)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Taranpreet Singh Ruprah .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Ruprah, T.S., Trivedi, N. (2019). Sentiment Analysis of Tweets Through Data Mining Technique. In: Pati, B., Panigrahi, C., Misra, S., Pujari, A., Bakshi, S. (eds) Progress in Advanced Computing and Intelligent Engineering. Advances in Intelligent Systems and Computing, vol 713. Springer, Singapore. https://doi.org/10.1007/978-981-13-1708-8_53

Download citation

  • DOI: https://doi.org/10.1007/978-981-13-1708-8_53

  • Published:

  • Publisher Name: Springer, Singapore

  • Print ISBN: 978-981-13-1707-1

  • Online ISBN: 978-981-13-1708-8

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics