arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2106.02581cs.CV
收藏

基于BERT的情感分析:一个软件工程视角

BERT-Based Sentiment Analysis: A Software Engineering Perspective

Indian Institute of Information Technology Allahabad(印度信息技术学院阿拉哈巴德分校)

Himanshu Batra, Narinder Singh Punn, Sanjay Kumar Sonbhadra, Sonali Agarwal

摘要:

情感分析可以为软件工程中使用的工具以及要使用的API推荐系统和相关库提供合适的引导。在这种情况下,现有的工具,如SentiCR,SentiStrength-SE等,表现出较低的f1分数,完全违背了部署这些策略的目的,因此有足够的空间进行性能改进。最近的进展表明,基于Transformer的预训练模型(例如,BERT、RoBERTa、ALBERT等)在文本分类任务中显示了更好的结果。在此背景下,本研究探索了不同的基于BERT的模型来分析GitHub评论,Jira评论和Stack Overflow帖子中的句子。本文提出了三种不同的策略来分析基于BERT的情感分析模型,其中在第一种策略中,基于BERT的预训练模型被微调;在第二种策略中,集成模型是从BERT变体中开发的;在第三种策略中,使用压缩模型(Distil BERT)。实验结果表明,基于BERT的集成方法和压缩的BERT模型在所有三个数据集上的F1度量方面都比现有工具提高了6-12%。

英文摘要:

Sentiment analysis can provide a suitable lead for the tools used in software engineering along with the API recommendation systems and relevant libraries to be used. In this context, the existing tools like SentiCR, SentiStrength-SE, etc. exhibited low f1-scores that completely defeats the purpose of deployment of such strategies, thereby there is enough scope for performance improvement. Recent advancements show that transformer based pre-trained models (e.g., BERT, RoBERTa, ALBERT, etc.) have displayed better results in the text classification task. Following this context, the present research explores different BERT-based models to analyze the sentences in GitHub comments, Jira comments, and Stack Overflow posts. The paper presents three different strategies to analyse BERT based model for sentiment analysis, where in the first strategy the BERT based pre-trained models are fine-tuned; in the second strategy an ensemble model is developed from BERT variants, and in the third strategy a compressed model (Distil BERT) is used. The experimental results show that the BERT based ensemble approach and the compressed BERT model attain improvements by 6-12% over prevailing tools for the F1 measure on all three datasets.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑