Abstract
In recent years, sentiment analysis in the field of natural language processing has garnered increasing attention from researchers. Aspect-level sentiment classification is a fine-grained task aiming to discern the sentiment polarity of specific aspects within sentences. Currently, many methods rely on extracting keyword information from context to judge sentiment polarity, yielding promising results. However, most of these methods overlook the impact of the position of context words on sentiment polarity. To address this issue, we propose a novel aspect-level sentiment analysis method that integrates context position weights and filtering channels (CPW-FC). In our model, an asymmetric position weight function, denoted as \(\alpha \) function, is devised to ensure sentiment preservation while mitigating the influence of aspect words not positioned in the sentence’s middle on sentiment polarity judgment. Additionally, we introduce a filtering channel to diminish the influence of contextually irrelevant words on sentiment polarity. Extensive experiments are conducted on four publicly available datasets: Restaurant, Laptop, Twitter, and NAMS. Our model achieves accuracy of 86.33, 81.45, 77.10, and 84.81% on these datasets, respectively, representing an improvement of approximately 1.5% over prior models. Furthermore, compared to the latest models, our approach demonstrates strong competitiveness, affirming the efficacy of our proposed method. The code can refer to https://github.com/ZCMR/alpha.
Similar content being viewed by others
Data availability
The raw/processed data required to reproduce these findings cannot be shared at this time as the data also forms part of an ongoing study.
References
Jiang L, Yu M, Zhou M, Liu X, Zhao T (2011) Target-dependent twitter sentiment classification. In: Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies, pp 151–160
Weichselbraun A, Gindl S, Scharl A (2013) Extracting and grounding contextualized sentiment lexicons. IEEE Intell Syst 28(2):39–46
Ding X, Liu B, Yu PS (2008) A holistic lexicon-based approach to opinion mining. In: Proceedings of the 2008 International Conference on Web Search and Data Mining, pp 231–240
Gu S, Zhang L, Hou Y, Song Y (2018) A position-aware bidirectional attention network for aspect-level sentiment analysis. In: Proceedings of the 27th International Conference on Computational Linguistics, pp 774–784
Fan F, Feng Y, Zhao D (2018) Multi-grained attention network for aspect-level sentiment classification. In: Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pp 3433–3442
Chen P, Sun Z, Bing L, Yang W (2017) Recurrent attention network on memory for aspect sentiment analysis. In: Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pp 452–461
Ma D, Li S, Zhang X, Wang H (2017) Interactive attention networks for aspect-level sentiment classification. arXiv preprint arXiv:1709.00893
Huang L, Sun X, Li S, Zhang L, Wang H (2020) Syntax-aware graph attention network for aspect-level sentiment classification. In: Proceedings of the 28th International Conference on Computational Linguistics, pp 799–810
Ke W, Gao J, Shen H, Cheng X (2021) Incorporating explicit syntactic dependency for aspect level sentiment classification. Neurocomputing 456:394–406
Tran TT, Miwa M, Ananiadou S (2020) Syntactically-informed word representations from graph neural network. Neurocomputing 413:431–443
Asada M, Miwa M, Sasaki Y (2017) Extracting drug-drug interactions with attention cnns. In BioNLP 2017:9–18
Asada M, Gunasekaran N, Miwa M, Sasaki Y (2021) Representing a heterogeneous pharmaceutical knowledge-graph with textual information. Front Res Metr Anal 6:670206
Zhang C, Li Q, Song D (2019) Aspect-based sentiment classification with aspect-specific graph convolutional networks. arXiv preprint arXiv:1909.03477
Chen C, Teng Z, Zhang Y (2020) Inducing target-specific latent structures for aspect sentiment classification. In: Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp 5596–5607
Li R, Chen H, Feng F, Ma Z, Wang X, Hovy E (2021) Dual graph convolutional networks for aspect-based sentiment analysis. In: Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pp 6319–6329
Wang Y, Huang M, Zhu X, Zhao L (2016) Attention-based lstm for aspect-level sentiment classification. In: Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pp 606–615
Tang D, Qin B, Feng X, Liu T (2015) Effective lstms for target-dependent sentiment classification. arXiv preprint arXiv:1512.01100
Yang M, Tu W, Wang J, Xu F, Chen X (2017) Attention based lstm for target dependent sentiment classification. In: Poceedings of the AAAI Conference on Artificial Intelligence, vol. 31
Tian Y, Chen G, Song Y (2021) Aspect-based sentiment analysis with type-aware graph convolutional networks and layer ensemble. In: Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pp 2910–2922
Liu H, Wu Y, Li Q, Lu W, Li X, Wei J, Liu X, Feng J (2023) Enhancing aspect-based sentiment analysis using a dual-gated graph convolutional network via contextual affective knowledge. Neurocomputing 553:126526
Jiang T, Wang Z, Yang M, Li C (2023) Aspect-based sentiment analysis with dependency relation weighted graph attention. Information 14(3):185
Xu L, Pang X, Wu J, Cai M, Peng J (2023) Learn from structural scope: improving aspect-level sentiment analysis with hybrid graph convolutional networks. Neurocomputing 518:373–383
Wang P, Zhao Z (2023) Improving context and syntactic dependency for aspect-based sentiment analysis using a fused graph attention network. Evolut Intell, pp 1–10
Li P, Li P, Xiao X (2023) Aspect-pair supervised contrastive learning for aspect-based sentiment analysis. Knowl-Based Syst 274:110648
Zhang Z, Zhou Z, Wang Y (2022) Ssegcn: syntactic and semantic enhanced graph convolutional network for aspect-based sentiment analysis. In: Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pp 4916–4925
Yu H, Lu G, Cai Q, Xue Y (2022) A kge based knowledge enhancing method for aspect-level sentiment classification. Mathematics 10(20):3908
Wu F, Li X (2023) Local dependency-enhanced graph convolutional network for aspect-based sentiment analysis. Appl Sci 13(17):9669
Fu X, Wei Y, Xu F, Wang T, Lu Y, Li J, Huang JZ (2019) Semi-supervised aspect-level sentiment classification model based on variational autoencoder. Knowl-Based Syst 171:81–92
Rietzler A, Stabinger S, Opitz P, Engl S (2019) Adapt or get left behind: domain adaptation through bert language model finetuning for aspect-target sentiment classification. arXiv preprint arXiv:1908.11860
Li W, Zhu L, Shi Y, Guo K, Cambria E (2020) User reviews: Sentiment analysis using lexicon integrated two-channel cnn-lstm family models. Appl Soft Comput 94:106435
Huang Y, Peng H, Liu Q, Yang Q, Wang J, Orellana-Martín D, Pérez-Jiménez MJ (2023) Attention-enabled gated spiking neural p model for aspect-level sentiment classification. Neural Netw 157:437–443
Pennington J, Socher R, Manning CD (2014) Glove: global vectors for word representation. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp 1532–1543
Devlin J, Chang M-W, Lee K, Toutanova K (2018) Bert: pre-training of deep bidirectional transformers for language understanding. arXiv preprin arXiv:1810.04805
Graves A, Mohamed A-R, Hinton G (2013) Speech recognition with deep recurrent neural networks. In: 2013 IEEE International Conference on Acoustics, Speech and Signal Processing, pp 6645–6649. IEEE
Nguyen HT, Nguyen ML (2018) Effective attention networks for aspect-level sentiment classification. In: 2018 10th International Conference on Knowledge and Systems Engineering (KSE)
Xing B, Tsang I (2022) Dignet: digging clues from local-global interactive graph for aspect-level sentiment classification
Pontiki M, Galanis D, Papageorgiou H, Androutsopoulos I, Manandhar S, AL-Smadi M, Al-Ayyoub M, Zhao Y, Qin B, De Clercq O, et al (2016) Semeval-2016 task 5: Aspect based sentiment analysis. In: ProWorkshop on Semantic Evaluation (SemEval-2016), pp 19–30. Association for Computational Linguistics
Dong L, Wei F, Tan C, Tang D, Zhou M, Xu K (2014) Adaptive recursive neural network for target-dependent twitter sentiment classification. In: Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics (volume 2: Short papers), pp 49–54
Kiritchenko S, Zhu X, Cherry C, Mohammad S (2014) Detecting aspects and sentiment in customer reviews. In: 8th International Workshop on Semantic Evaluation (SemEval), pp 437–442
Tang D, Qin B, Liu T (2016) Aspect level sentiment classification with deep memory network. arXiv preprint arXiv:1605.08900
Xin L, Bing L, Lam W, Bei S (2018) Transformation networks for target-oriented sentiment classification
Zhou J, Huang JX, Hu QV, He L (2020) Sk-gcn: modeling syntax and knowledge via graph convolutional network for aspect-level sentiment classification. Knowl-Based Syst 205:106292
Zhang M, Qian T (2020) Convolution over hierarchical syntactic and lexical graphs for aspect level sentiment analysis. In: Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp 3540–3549
Song Y, Wang J, Jiang T, Liu Z, Rao Y (2019) Attentional encoder network for targeted sentiment classification. arXiv preprint arXiv:1902.09314
Chen Y, Kong L, Wang Y, Kong D (2021) Multi-grained attention representation with albert for aspect-level sentiment classification. IEEE Access 9:106703–106713
Yan H, Yi B, Li H, Wu D (2022) Sentiment knowledge-induced neural network for aspect-level sentiment analysis. Neural Comput Appl pp 1–12
Scaria K, Gupta H, Goyal S, Sawant SA, Mishra S, Baral C (2023) Instructabsa: instruction learning for aspect based sentiment analysis. arXiv preprint arXiv:2302.08624
Yang H, Li K (2021) Improving implicit sentiment learning via local sentiment aggregation. arXiv preprint arXiv:2110.08604
Author information
Authors and Affiliations
Contributions
CZ provides the main innovation points, experiments, and paper writing. BY offered some suggestions in the paper innovation. LL offered some advice and help during the experiment.
Corresponding author
Ethics declarations
Conflict of interest
The authors declare that they have no Conflict of interest to this work.
Ethical approval
This declaration is “not applicable”.
Informed consent
This declaration is “not applicable”.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Zhu, C., Yi, B. & Luo, L. Filter channel network based on contextual position weight for aspect-based sentiment classification. J Supercomput 80, 17874–17894 (2024). https://doi.org/10.1007/s11227-024-06131-8
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11227-024-06131-8