Research Article

The comparison and analysis of Skip-gram and CBOW in creating financial sentimental dictionary

Xingjian Zhang1,*, Lu Zhang2
1. Faculty of Science and Technology, University of Macao, Macao, China
2. Smart Education, Jiangsu Normal University, Xuzhou, Jiangsu, China

* Corresponding author: [email protected]

Abstract

Textual analysis is increasingly used in various fields due to data availability, computing power, and machine learning techniques. In finance, sentiment analysis is essential for obtaining excess returns, and building domain-specific lexicons using word2vec is a prevalent method. The CBOW and Skip-gram algorithms have different predictive methodologies and performances depending on the task and dataset. This paper reviews financial sentiment analysis using a dictionary method and compares the performance of the two algorithms. CBOW trains faster than Skip-gram when dealing with a small amount of text data, but as the amount of data increases, Skip-gram becomes more efficient. Besides, the Skip-gram captures more synonyms of the selected words than CBOW.

Keywords: word2vec; CBOW; skip-gram; financial sentiment analysis
Published: March 5, 2024
DOI: 10.54254/2755-2721/44/20230155
Volume: ACE Vol.44
pp. 56-67
Download PDF

References

  1. F. Z. Xing, E. Cambria, and R. E. Welsch, “Natural language based financial forecasting: a survey,” Artif. Intell. Rev., vol. 50, no. 1, pp. 49–73, Jun. 2018, doi: 10.1007/s10462-017-9588-9.
  2. Guozhi Wang, “Notice of Retraction: Time-dependent Hurst exponent in financial time series in China financial market,” in 2010 2nd International Conference on Advanced Computer Control, Shenyang: IEEE, Mar. 2010, pp. 87–89. doi: 10.1109/ICACC.2010.5486883.
  3. A. Huang, W. Wu, and T. Yu, “Textual analysis for China’s financial markets: a review and discussion,” CFRI, vol. 10, no. 1, pp. 1–15, Sep. 2019, doi: 10.1108/CFRI-08-2019-0134.
  4. Z. Du, A. G. Huang, R. R. Wermers, and W. Wu, “Language and Domain Specificity: A Chinese Financial Sentiment Dictionary,” SSRN Journal, 2020, doi: 10.2139/ssrn.3759258.
  5. N. Oliveira, P. Cortez, and N. Areal, “The impact of microblogging data for stock market prediction: Using Twitter to predict returns, volatility, trading volume and survey sentiment indices,” Expert Systems with Applications, vol. 73, pp. 125–144, May 2017, doi: 10.1016/j.eswa.2016.12.036.
  6. Jingyi Wang and Yiping Huang, "Characterization of Financial Technology Media Sentiment and Its Impact on Online Lending Market," Economics (Quarterly), vol. 17, no. 4, pp. 1623–1650, 2018, doi: 10.13821/j.cnki.ceq.2018.03.15.
  7. T. Mikolov, I. Sutskever, K. Chen, G. Corrado, and J. Dean, “Distributed Representations of Words and Phrases and their Compositionality.” arXiv, Oct. 16, 2013. doi: 10.48550/arXiv.1310.4546.
  8. T. Loughran and B. Mcdonald, “Textual Analysis in Accounting and Finance: A Survey: TEXTUAL ANALYSIS IN ACCOUNTING AND FINANCE,” Journal of Accounting Research, vol. 54, no. 4, pp. 1187–1230, Sep. 2016, doi: 10.1111/1475-679X.12123.
  9. Yao Jiaquan, Feng Xu, Wang Zanjun, Ji Rongrong, and Zhang Wei, "Tone, Sentiment, and Market Impact: Based on a Financial Sentiment Dictionary," Journal of Management Science, vol. 24, no. 5, pp. 26–46, 2021, doi: 10.19920/j.cnki.jmsc.2021.05.002.
  10. K. Bühler, “Sprachtheorie,” in Sprachwissenschaft, L. Hoffmann, Ed., DE GRUYTER, 2010, pp. 84–104. doi: 10.1515/9783110226300.1.84.
  11. O. Irsoy, A. Benton, and K. Stratos, “kōan: A Corrected CBOW Implementation,” ArXiv, 2020, Accessed: May 23, 2023. [Online]. Available: https://www.semanticscholar.org/paper/k%C5%8Dan%3A-A-Corrected-CBOW-Implementation-Irsoy-Benton/7f410c00d08abcfd81a0d5516972b047462871e0
  12. T. Onishi and H. Shiina, “Distributed Representation Computation Using CBOW Model and Skip–gram Model,” 2020 9th International Congress on Advanced Applied Informatics (IIAI-AAI), pp. 845–846, Sep. 2020, doi: 10.1109/IIAI-AAI50415.2020.00179.
  13. Z. Xiong, Q. Shen, Y. Xiong, YijieWang, and W. Li, “New Generation Model of Word Vector Representation Based on CBOW or Skip-Gram,” Computers, Materials & Continua, vol. 60, no. 1, pp. 259–273, 2019, doi: 10.32604/cmc.2019.05155.
  14. X. Zhang, J. Zhao, and Y. LeCun, “Character-level Convolutional Networks for Text Classification.” arXiv, Apr. 03, 2016. doi: 10.48550/arXiv.1509.01626.