The expression of sentiment texts in different domains are different,so it is usually neces-sary to train the corresponding sentiment analysis model for each domain.In order to solve the problem that one model cannot be used for multi-domain sentiment analysis,this paper proposes a multi-domain text sentiment analysis method based on prompt tuning,called MSAPT.With the help of hard prompts,indicating the domain of the emotional text and the selected emotional labels,the model is prompted to draw on its knowledge of different domain sentiment analysis.Then,a unified"generalized model"is pretrained for sentimental analysis.In downstream learning of various domain texts,the mod-el is frozen and prompt tuning is used to make the model learn the characteristics of emotional text in each downstream domain.MSAPT only requires saving a model and some prompts with far fewer pa-rameters than the model for multi-domain sentiment analysis.Experiments were conducted using multi-ple datasets of emotional text in different fields,and the results show that MSAPT outperforms model fine-tuning when only prompted tuning is applied.Finally,the length of prompt tuning,hard prompt a-dapted to specific domains,soft prompt and the size of intermediate training dataset are ablated respec-tively,to prove their impact on the effectiveness of sentiment analysis.
关键词
多领域情感分析/提示微调/预训练语言模型/T5
Key words
multi-domain sentiment analysis/prompt tuning/pre-trained language model(PLM)/T5