Skip to main content

A Comparison of Pre-trained Word Embeddings for Sentiment Analysis Using Deep Learning

  • Conference paper
  • First Online:
International Conference on Innovative Computing and Communications

Abstract

The public opinion expressed on review or blogging sites and social networking platforms can be the source for the extraction of very critical information related to feelings and emotions of mass towards the subject matter in the field of commerce and governance. Natural Language Processing (NLP) and Artificial Intelligence can be used for sentiment analysis of this textual information. For text processing, NLP applications nowadays rely on pre-trained embeddings derived from large corpora such as news collection and web crawlers. There are many pre-trained word embeddings available. However, no study found which compares the accuracy achieved using these embeddings. In this paper, we worked on different kinds of word embeddings (pre-trained and untrained) and derived a comparison concerning accuracy for sentiment analysis applications using Deep Learning (DL) models. We found that the deep learning models perform better with pre-trained embeddings compared to Keras default (untrained) embedding.

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

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

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

Similar content being viewed by others

Notes

  1. 1.

    https://keras.io.

  2. 2.

    https://www.tensorflow.org.

References

  1. O. Kolchyna, T.T. Souza, P. Treleaven, T. Aste, Twitter sentiment analysis: Lexicon method, machine learning method and their combination. arXiv preprint arXiv:1507.00955 (2015)

  2. P. Bojanowski, E. Grave, A. Joulin, T. Mikolov, Enriching word vectors with subword information. Trans. Assoc. Comput. Linguist. 5, 135–146 (2017)

    Article  Google Scholar 

  3. A.L. Maas, R.E. Daly, P.T. Pham, D. Huang, A.Y. Ng, C. Potts, Learning word vectors for sentiment analysis, in Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies-vol. 1 (Association for Computational Linguistics, 2011), pp. 142–150

    Google Scholar 

  4. R. Socher, A. Perelygin, J. Wu, J. Chuang, C. D. Manning, A. Ng, C. Potts, Recursive deep models for semantic compositionality over a sentiment treebank, in Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing, pp. 1631–1642 (2013)

    Google Scholar 

  5. T. Mikolov, I. Sutskever, K. Chen, G.S. Corrado, J. Dean, Distributed representations of words and phrases and their compositionality, in Advances in Neural Information Processing Systems, pp. 3111–3119 (2013)

    Google Scholar 

  6. J. Pennington, R. Socher, C. Manning, Glove: global vectors for word representation, in Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 1532–1543 (2014)

    Google Scholar 

  7. T. Mikolov, E. Grave, P. Bojanowski, C. Puhrsch, A. Joulin, Advances in pre-training distributed word representations, in Proceedings of the International Conference on Language Resources and Evaluation (LREC 2018) (2018)

    Google Scholar 

  8. A. Hassan, A. Mahmood, Convolutional recurrent deep learning model for sentence classification. IEEE Access 6, 13949–13957 (2018)

    Article  Google Scholar 

  9. Y. Bengio, R. Ducharme, P. Vincent, C. Jauvin, A neural probabilistic language model. J. Mach. Learn. Res. 3, 1137–1155 (2003)

    MATH  Google Scholar 

  10. T. Mikolov, K. Chen, G. Corrado, J. Dean, Efficient estimation of word representations in vector space. arXiv preprint arXiv:1301.3781 (2013)

  11. Y. Kim, Convolutional neural networks for sentence classification. arXiv preprint arXiv:1408.5882 (2014)

  12. M. Sundermeyer, H. Ney, R. Schlüter, From feedforward to recurrent lstm neural networks for language modeling. IEEE/ACM Trans. Audio Speech Language Process. 23(3), 517–529 (2015)

    Article  Google Scholar 

  13. S. Hochreiter, J. Schmidhuber, Long short-term memory. Neural Comput. 9(8), 1735–1780 (1997)

    Article  Google Scholar 

  14. X. Wang, W. Jiang, Z. Luo, Combination of convolutional and recurrent neural network for sentiment analysis of short texts, in Proceedings of COLING 2016, the 26th International Conference on Computational Linguistics: Technical Papers, pp. 2428–2437 (2016)

    Google Scholar 

  15. Y. Xiao, K. Cho, Efficient character-level document classification by combining convolution and recurrent layers. arXiv preprint arXiv:1602.00367 (2016)

Download references

Acknowledgements

The authors would like to acknowledge and thank NVIDIA for their support provided through the GPU grant for carrying out this research work.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to P. Santosh Kumar .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2021 Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Santosh Kumar, P., Yadav, R.B., Dhavale, S.V. (2021). A Comparison of Pre-trained Word Embeddings for Sentiment Analysis Using Deep Learning. In: Gupta, D., Khanna, A., Bhattacharyya, S., Hassanien, A.E., Anand, S., Jaiswal, A. (eds) International Conference on Innovative Computing and Communications. Advances in Intelligent Systems and Computing, vol 1165. Springer, Singapore. https://doi.org/10.1007/978-981-15-5113-0_41

Download citation

Publish with us

Policies and ethics