
The comparison and analysis of Skip-gram and CBOW in creating financial sentimental dictionary
- 1 Faculty of Science and Technology, University of Macao, Macao, China
- 2 Smart Education, Jiangsu Normal University, Xuzhou, Jiangsu, China
* Author to whom correspondence should be addressed.
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
[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.
Cite this article
Zhang,X.;Zhang,L. (2024). The comparison and analysis of Skip-gram and CBOW in creating financial sentimental dictionary. Applied and Computational Engineering,44,56-67.
Data availability
The datasets used and/or analyzed during the current study will be available from the authors upon reasonable request.
Disclaimer/Publisher's Note
The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of EWA Publishing and/or the editor(s). EWA Publishing and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
About volume
Volume title: Proceedings of the 2023 International Conference on Machine Learning and Automation
© 2024 by the author(s). Licensee EWA Publishing, Oxford, UK. This article is an open access article distributed under the terms and
conditions of the Creative Commons Attribution (CC BY) license. Authors who
publish this series agree to the following terms:
1. Authors retain copyright and grant the series right of first publication with the work simultaneously licensed under a Creative Commons
Attribution License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this
series.
2. Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the series's published
version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial
publication in this series.
3. Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and
during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See
Open access policy for details).