In recent years, text level fine-grained sentiment analysis has received more and more attention, and its role in medical text is also growing. Compared with coarse-grained sentiment analysis, aspect-level sentiment analysis can distinguish each specific aspect word of the medical text, and can get the emotional information expressed by each aspect word. Aspect-level sentiment analysis task need consider the interaction between aspect words and sentiment words. Medical texts can be used as both aspect words and sentiment words. So in this paper, we propose an aspect-level sentiment analysis model with Contextual Position Latent Information. At the same time, the context words related to the sentiment polarity judgment of specific aspect words in the medical text are generally located near the aspect words. Moreover, due to the difference in the number of words in the context of medical aspect words, the attribute of word embedding vector representation may change, making the relative position of aspect words different. Therefore, this paper proposes a new context location adjustment function to enhance the pertinence of the sentiment polarity words related to the designated aspect words, and reduce the interference of the number of words on both sides of the aspect words on the judgment of sentiment polarity. At the same time, a linear conditional random field model is introduced to help establish the vector representation model of aspect words in order to express the aspect words containing the emotional information of a specific aspect. Finally, the focus loss function is used to train the model parameters to deal with the class imbalance of sentiment analysis in medical texts.
本文引入了一个线性条件随机场模型(linear conditional random field,Linear-CRF)辅助方面词向量表示的建模。假设每个上下文词在某一时刻都是一个隐藏的状态标签,其中表示上下文词不属于指定方面的情感极性词,表示上下文词属于医疗特定方面的情感相关词。在时刻,句子中上下文词的隐藏状态标签的概率如下式
ZHOUY. Research on Medical Text Analysis and Mining Technology Based on Machine Learning [D]. Beijing:Beijing Jiaotong University, 2019(Ch).
[3]
TANGD Y, QINB, LIUT. Aspect level sentiment classification with deep memory network[EB/OL].[2022-01-02]. DOI: 10.18653/v1/d16-1021 .
[4]
TANGJ L, LUZ Y, SUJ S, et al. Progressive self-supervised attention learning for aspect-level sentiment analysis[C]//Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics. Stroudsburg: Association for Computational Linguistics, 2019: 557-566. DOI:10.18653/v1/p19-1053 .
[5]
WANGY Q, HUANGM L, ZHUX Y, et al. Attention-based LSTM for aspect-level sentiment classification[C]//Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing. Stroudsburg: Association for Computational Linguistics, 2016: 606-615. DOI:10.18653/v1/d16-1058 .
[6]
ASHOKK J, TRUEMANT E, CAMBRIAE. A convolutional stacked bidirectional LSTM with a multiplicative attention mechanism for aspect category and sentiment detection[J]. Cognitive Computation, 2021, 13(6): 1423-1432. DOI:10.1007/s12559-021-09948-0 .
[7]
YANGZ C, YANGD Y, DYERC, et al. Hierarchical attention networks for document classification[C]//Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies. Stroudsburg: Association for Computational Linguistics, 2016: 1480-1489. DOI:10.18653/v1/n16-1174 .
XIANGJ Y, LIUX L, DINGM Y, et al. Convolutional recurrent deep learning model for sentence sentiment classification[J]. Journal of Northeast Normal University (Natural Science Edition), 2020, 52(2): 73-79. DOI:10.16163/j.cnki.22-1123/n.2020.02.012(Ch ).
ZHANGC G, LIUP Y, ZHUZ F, et al. A sentiment analysis method based on a polarity lexicon[J]. Journal of Shandong University (Natural Science), 2012, 47(3): 47-50 (Ch).
[20]
LIQ, WENGL H, DINGX H. A novel neural network-based method for medical text classification[J]. Future Internet, 2019, 11(12): 255-259. DOI:10.3390/fi11120255 .
LIUX P, YANGJ J, LUK, et al. Research on different feature extraction and algorithms for ultra-short text classification[J]. Information Technology and Network Security, 2019, 38(5): 48-52. DOI:10.19358/j.issn.2096-5133.2019.05.010(Ch ).
[23]
张定.基于神经网络的中文文本分类技术研究[D].西安:西安电子科技大学,2020.
[24]
ZHANGD. Research on Chinese Text Classification Technology Based on Neural Network [D] .Xi’an: Xidian University, 2020(Ch).
[25]
ZHANGQ Y, LUR, WANGQ C, et al. Interactive multi-head attention networks for aspect-level sentiment classification[J]. IEEE Access, 2019,7:160017-160028. DOI:10.1109/ACCESS.2019.2951283 .
[26]
NGUYENK T T, HUYNHS K, PHANL L, et al. Span detection for aspect-based sentiment analysis in Vietnamese[EB/OL]. 2021: arXiv: 2110.07833.
[27]
BOTSIST, NGUYENM D, WOOE J, et al. Text mining for the vaccine adverse event reporting system: Medical text classification using informative feature selection[J]. Journal of the American Medical Informatics Association, 2011, 18(5): 631-638. DOI:10.1136/amiajnl-2010-000022 .
[28]
ZHOUY Q. An introduction to text classification with applications to medical records[C]//2020 2nd International Conference on Information Technology and Computer Application (ITCA). New York: IEEE Press,2020: 471-475. DOI:10.1109/ITCA52113.2020.00105 .
[29]
BASIRIM E, NEMATIS, ABDARM, et al. A novel fusion-based deep learning model for sentiment analysis of COVID-19 tweets[J]. Knowledge-Based Systems, 2021, 228: 107242. DOI:10.1016/j.knosys.2021.107242 .
[30]
CHENT, XUR F, HEY L, et al. Improving sentiment analysis via sentence type classification using BiLSTM-CRF and CNN[J]. Expert Systems with Applications, 2017, 72: 221-230. DOI:10.1016/j.eswa.2016.10.065 .
[31]
MAJUMDERN, PORIAS, PENGH Y, et al. Sentiment and sarcasm classification with multitask learning[J]. IEEE Intelligent Systems, 2019, 34(3): 38-43. DOI:10.1109/MIS.2019.2904691 .
ZHUY, CHENS P. Commentary text sentiment analysis combining convolution neural network and attention[J]. Journal of Chinese Computer Systems, 2020, 41(3): 551-557 (Ch). DOI: 10.3969/j.issn.1000-1220.2020.03.018 .
TANGH F, TANS B, CHENGX Q. Research on sentiment classification of Chinese reviews based on supervised machine learning techniques[J]. Journal of Chinese Information Processing, 2007, 21(6): 88-94 (Ch). DOI: 10.3969/j.issn.1003-0077.2007.06.012 .
DAIL L, HUANGH Y, CHENZ X. A comparative study on feature selection in Chinese text categorization[J]. Journal of Chinese Information Processing,2004,18(1):26-32. DOI:10.3969/j.issn.1003-0077.2004.01.005(Ch ).
[40]
WANGK, SHENW Z, YANGY Y, et al. Relational graph attention network for aspect-based sentiment analysis[C]//Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics. Stroudsburg: Association for Computational Linguistics, 2020: 3229-3238. DOI:10.18653/v1/2020.acl-main.295 .
[41]
MAD H, LIS J, ZHANGX D, et al. Interactive attention networks for aspect-level sentiment classification[C]//Proceedings of the 26th International Joint Conference on Artificial Intelligence. California: International Joint Conferences on Artificial Intelligence Organization,2017:4068-4074. DOI:10.24963/ijcai.2017/568 .