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

从CLI用法生成示例:Transformers能提供帮助吗?

Generating Examples From CLI Usage: Can Transformers Help?

Microsoft(微软)

Roshanak Zilouchian Moghaddam, Spandan Garg, Colin B. Clement, Yevhen Mohylevskyy, Neel Sundaresan

摘要:

现代软件的不断发展经常导致文档、教程和示例与不断变化的接口和框架不同步。依赖过时的文档和示例可能会导致程序失败或效率降低,甚至更不安全。作为回应,程序员需要定期转向网络上的其他资源,例如StackOverflow,以指导他们编写软件。我们认识到,通过使用应用于软件使用数据的机器学习,可以改善这种不方便、容易出错和昂贵的过程。在本文中,我们提出了我们的实用系统,它使用机器学习的大规模遥测数据和文档语料库,生成适当的和复杂的例子,可用于改善文档。我们讨论了基于功能和基于transformer的机器学习方法,并证明我们的系统实现了产品中使用功能的100%覆盖,在每次发布时提供最新的示例,并将软件所有者编写和编辑文档提交的PR数量减少了> 68%。我们还分享了在3年内为Azure Cloud命令行界面(Azure CLI)部署生产质量系统所获得的宝贵经验。

英文摘要:

Continuous evolution in modern software often causes documentation, tutorials, and examples to be out of sync with changing interfaces and frameworks. Relying on outdated documentation and examples can lead programs to fail or be less efficient or even less secure. In response, programmers need to regularly turn to other resources on the web such as StackOverflow for examples to guide them in writing software. We recognize that this inconvenient, error-prone, and expensive process can be improved by using machine learning applied to software usage data. In this paper, we present our practical system which uses machine learning on large-scale telemetry data and documentation corpora, generating appropriate and complex examples that can be used to improve documentation. We discuss both feature-based and transformer-based machine learning approaches and demonstrate that our system achieves 100% coverage for the used functionalities in the product, providing up-to-date examples upon every release and reduces the numbers of PRs submitted by software owners writing and editing documentation by >68%. We also share valuable lessons learnt during the 3 years that our production quality system has been deployed for Azure Cloud Command Line Interface (Azure CLI).

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

↑