一句话:用 BERTopic 和抽取式摘要自动汇总 Stack Overflow 的 Android API 讨论,改善官方文档。
问题:官方 API 文档常冗长、复杂或不完整,开发者转向 Stack Overflow 等社区论坛获取实用信息。方法:针对 Android API,用 BERTopic 从 360 万条 Stack Overflow 帖子中提取常见主题,再结合抽取式摘要生成包含代码片段的简明摘要。评估:邀请 30 名 Android 开发者进行用户研究,从连贯性、相关性、信息量和满意度评价,结果表明显著提升生产力。结论:将正式 API 知识与社区内容结合可增强文档,使 API 资源更易获取和可操作。
Developers rely on API documentation, but official sources are often lengthy, complex, or incomplete. Many turn to community-driven forums like Stack Overflow for practical insights. We propose automating the summarization of informal sources, focusing on Android APIs. Using BERTopic, we extracted prevalent topics from 3.6 million Stack Overflow posts and applied extractive summarization techniques to generate concise summaries, including code snippets. A user study with 30 Android developers assessed the summaries for coherence, relevance, informativeness, and satisfaction, showing improved productivity. Integrating formal API knowledge with community-generated content enhances documentation, making API resources more accessible and actionable work.