《电子技术应用》
您所在的位置:首页 > 其他 > 设计应用 > 基于BERT的提示学习实现软件需求精确分类
基于BERT的提示学习实现软件需求精确分类
信息技术与网络安全 2期
罗贤昌,薛吟兴
(中国科学技术大学 计算机科学与技术学院,安徽 合肥230026)
摘要: 软件需求是用户对软件效用的直接回馈, 实现对软件需求工程精确分类可大幅降低维护成本并显著加快软件开发维护的流程。使用传统的基于机器学习分类方法(如逻辑回归、支持向量机以及K近邻算法),或简单地应用BERT(Bidirectional Encoder Representation from Transformers)模型都不能很好地利用软件需求PROMISE数据集样本,最终表现为通用性差或分类效率低。为了增强BERT模型对自然语言文本的语义理解能力,应用提示学习的思想,将K分类选择问题转化为二分判断问题。实验结果表明,无需对不均衡的数据集执行样本均衡策略,模型分类性能便远优于上述两种分类工作,获得最佳的预测结果。
中图分类号: TP183
文献标识码: A
DOI: 10.19358/j.issn.2096-5133.2022.02.007
引用格式: 罗贤昌,薛吟兴. 基于BERT的提示学习实现软件需求精确分类[J].信息技术与网络安全,2022,41(2):39-45.
Accurately classify software requirements using prompt learning on BERT
Luo Xianchang,Xue Yinxing
(Department of Computer Science and Technology,University of Science and Technology of China,Hefei 230026,China)
Abstract: Software requirement is a direct feedback from users to software utility. The accurate classification of software requirements engineering can greatly reduce maintenance costs and significantly speed up the process of software development and maintenance. Traditional machine learning-based classification methods(such as logistic regression, support vector machines, and K-nearest neighbor algorithms) or simply applying BERT(Bidirectional Encoder Representation from Transformers) models cannot learn to make the most use of the PROMISE data set for software requirements, and ultimately appear to be poor generalization or low classification efficiency. In order to enhance the BERT model′s ability to understand the semantics of natural language texts, this paper applies the idea of prompt learning to transform the K classification selection problem into a binary judgment problem. The experimental results show that there is no need to implement a sample equalization strategy for unbalanced data sets. The classification performance of this model is far superior to the above two classification tasks, and the best prediction results are finally obtained.
Key words : software requirement;accurately classify;bidirectional encoder representation from transformer;prompt learning

0 引言

软件需求是用户对软件效用最直观的反馈之一,常包含用户体验、功能需求以及质量问题等内容。软件需求一般可分为功能需求与非功能需求,前者主要是对软件系统的服务、函数行为的描述,而后者往往涉及可靠性、可用性、安全性、隐私性或软件权限等非功能问题。随着互联网技术的飞速发展,各种客户端和移动端的应用数量急速增加,截至2021年11月,苹果应用商店就在全球上架了含40多种语言、超180万种的应用软件,各应用的用户评论更是爆炸式增长。由此可见,应对超大规模软件需求工程问题已经刻不容缓,实现软件需求的自动分类可以大幅降低人工分类的工作压力、成本与误差,能快速地精确分析最新鲜最实际的用户体验反馈,进而高效确定改进方向,显著加速软件开发维护流程,极大地提升用户体验。





本文详细内容请下载:http://www.chinaaet.com/resource/share/2000003949





作者信息:

罗贤昌,薛吟兴

(中国科学技术大学 计算机科学与技术学院,安徽 合肥230026)




微信图片_20210517164139.jpg

此内容为AET网站原创,未经授权禁止转载。