Hafezi, L., Zarifzadeh, S., Pajoohan, M. R.. (1403). Enhancing Multi-Entity Detection and Sentiment Analysis in Financial Texts with Hierarchical Attention Networks. فناوری آموزش, (), 403-416. doi: 10.22061/jecei.2025.11294.790
L. Hafezi; S. Zarifzadeh; M. R. Pajoohan. "Enhancing Multi-Entity Detection and Sentiment Analysis in Financial Texts with Hierarchical Attention Networks". فناوری آموزش, , , 1403, 403-416. doi: 10.22061/jecei.2025.11294.790
Hafezi, L., Zarifzadeh, S., Pajoohan, M. R.. (1403). 'Enhancing Multi-Entity Detection and Sentiment Analysis in Financial Texts with Hierarchical Attention Networks', فناوری آموزش, (), pp. 403-416. doi: 10.22061/jecei.2025.11294.790
Hafezi, L., Zarifzadeh, S., Pajoohan, M. R.. Enhancing Multi-Entity Detection and Sentiment Analysis in Financial Texts with Hierarchical Attention Networks. فناوری آموزش, 1403; (): 403-416. doi: 10.22061/jecei.2025.11294.790
Computer Engineering Department, Faculty of Engineering, Yazd University, Yazd, Iran.
تاریخ دریافت: 28 آبان 1403،
تاریخ بازنگری: 16 بهمن 1403،
تاریخ پذیرش: 17 بهمن 1403
چکیده
Background and Objectives: Detecting multiple entities within financial texts and accurately analyzing the sentiment associated with each is a challenging yet critical task. Traditional models often struggle to capture the nuanced relationships between multiple entities, especially when sentiments are context-dependent and spread across different levels of a document. Addressing these complexities requires advanced models that can not only identify multiple entities but also distinguish their individual sentiments within a broader context. This study aims to introduce and evaluate two novel methods, ENT-HAN and SNT-HAN, built upon the Hierarchical Attention Networks, specifically designed to enhance the accuracy of both entity extraction and sentiment analysis in complex financial documents. Methods: In this study, we design ENT-HAN and SNT-HAN methods to address the tasks of multi-entity detection and sentiment analysis within financial texts. The first method focuses on entity extraction, where capture hierarchical relationships between words and sentences. By utilizing word-level attention, the model identifies the most relevant tokens for recognizing entities, while sentence-level attention helps refine the context in which these entities appear, allowing the model to detect multiple entities with precision. The second method is applied for sentiment analysis, aiming to classify sentiments into positive, negative, or neutral categories. The sentiment analysis model employs hierarchical attention to identify the most important words and sentences that convey sentiment about each entity. This approach ensures that the model not only focuses on the overall sentiment of the text but also accounts for context-specific variations in sentiment across different entities. Both methods were evaluated on FinEntity dataset, and the results demonstrate their effectiveness, with significantly improving the accuracy of both entity extraction and sentiment classification tasks. Results: The ENT-HAN and SNT-HAN demonstrated strong performance in both entity extraction and sentiment analysis, outperforming the methods they were compared against. For entity extraction, ENT-HAN was evaluated against RNN and BERT models, showing superior accuracy in identifying multiple entities within complex texts. In sentiment analysis, SNT-HAN was compared to the best-performing method previously applied to FinEntity dataset. Despite the good performance of the existing methods, SNT-HAN demonstrated superior results, achieving a better accuracy. Conclusion: The outcome of this research highlights the potential of the ENT-HAN and SNT-HAN for improving entity extraction and sentiment analysis accuracy in financial documents. Their ability to model attention at multiple levels allows for a more nuanced understanding of text, establishing them as a valuable resource for complex tasks in financial text analysis.