arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.00673cs.SEcs.LG
收藏

面向开发者聊天室对话的基于LLM命名实体识别的开发者问题精化研究

Towards Refining Developer Questions using LLM-Based Named Entity Recognition for Developer Chatroom Conversations

Royal Military College of Canada(加拿大皇家军事学院)

Pouya Fathollahzadeh, Mariam El Mezouar, Hao Li, Ying Zou, Ahmed E. Hassan

AI总结:

本文提出SENIR标注方法,利用LLM识别开发者聊天室对话中的实体、意图和解决状态,并构建解决状态预测模型,为提升开发者问题的清晰度和可解决性提供定量指导。

摘要:

在软件工程聊天室中,沟通往往因无法回答的不精确问题而受阻。识别关键实体对于提升问题清晰度和促进更好交流至关重要。然而,现有使用自然语言处理技术的研究往往忽略了这些软件特定的细微差别。本文引入了软件特定命名实体识别、意图检测和解决状态分类(SENIR),这是一种利用大型语言模型在开发者聊天室对话中标注实体、意图和解决状态的标注方法。为了为提升问题清晰度和可解决性提供定量指导,我们构建了一个解决状态预测模型,该模型利用SENIR的实体和意图标签以及额外的预测特征。我们在DISCO数据集上使用一部分标注的聊天室对话对SENIR进行了评估。SENIR在实体识别上达到86%的F分数,在意图检测上达到71%的F分数,在解决状态分类上达到89%的F分数。此外,我们的解决状态预测模型测试了多种采样策略(随机欠采样和使用SMOTE过采样)和评估方法(5折交叉验证、10折交叉验证和自助法),AUC值在0.7到0.8之间。影响解决状态的关键因素包括积极情感以及跨多种意图的实体(如Programming Language和User Variable),而诊断实体在错误相关问题中更为相关。此外,解决率因意图而异:关于API Usage和API Change的问题解决率较高,而Discrepancy和Review的解决率较低。卡方分析证实了这些差异的统计显著性。

英文摘要:

In software engineering chatrooms, communication is often hindered by imprecise questions that cannot be answered. Recognizing key entities can be essential for improving question clarity and facilitating better exchange. However, existing research using natural language processing techniques often overlooks these software-specific nuances. In this paper, we introduce Software-specific Named Entity Recognition, Intent Detection, and Resolution Classification (SENIR), a labeling approach that leverages a Large Language Model to annotate entities, intents, and resolution status in developer chatroom conversations. To offer quantitative guidance for improving question clarity and resolvability, we build a resolution prediction model that leverages SENIR's entity and intent labels along with additional predictive features. We evaluate SENIR on the DISCO dataset using a subset of annotated chatroom dialogues. SENIR achieves an 86% F-score for entity recognition, a 71% F-score for intent detection, and an 89% F-score for resolution status classification. Furthermore, our resolution prediction model, tested with various sampling strategies (random undersampling and oversampling with SMOTE) and evaluation methods (5-fold cross-validation, 10-fold cross-validation, and bootstrapping), demonstrates AUC values ranging from 0.7 to 0.8. Key factors influencing resolution include positive sentiment and entities such as Programming Language and User Variable across multiple intents, while diagnostic entities are more relevant in error-related questions. Moreover, resolution rates vary significantly by intent: questions about API Usage and API Change achieve higher resolution rates, whereas Discrepancy and Review have lower resolution rates. A Chi-Square analysis confirms the statistical significance of these differences.

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

↑