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

Typhon:Jupyter Notebook中相关代码单元的自动推荐

Typhon: Automatic Recommendation of Relevant Code Cells in Jupyter Notebooks

Chaiyong Ragkhitwetsagul, Veerakit Prasertpol, Natanon Ritta, Paphon Sae-Wong, Thanapon Noraset, Morakot Choetkiertikul

AI总结:

针对开发者对Jupyter Notebook代码推荐的需求,提出Typhon方法,通过文本相似度算法匹配相关代码单元,实验验证其具备中等推荐准确率,为该领域后续优化提供基础。

摘要:

当前,代码推荐工具对各专业领域的众多软件开发人员而言愈发重要。这类工具提升了软件开发中的编码效率与质量,也让开发者更易查找代码示例并从中学习。\n 本文提出Typhon——一种在Jupyter Notebook中自动推荐相关代码单元的方法。Typhon对开发者的Markdown描述单元进行分词,再借助BM25排序函数或机器学习方法CodeBERT等文本相似度算法,从数据库中查找最相似的代码单元。随后,该算法计算分词后的查询与Markdown单元之间的相似度距离,向开发者返回最相关的代码单元。\n 我们在Kaggle竞赛的Jupyter Notebook数据集上评估了Typhon工具,发现该方法能以中等准确率推荐代码单元。本文提出的方法与结果可为Jupyter Notebook中代码单元推荐的进一步优化提供方向。

英文摘要:

At present, code recommendation tools have gained greater importance to many software developers in various areas of expertise. Having code recommendation tools has enabled better productivity and performance in developing the code in software and made it easier for developers to find code examples and learn from them. This paper proposes Typhon, an approach to automatically recommend relevant code cells in Jupyter notebooks. Typhon tokenizes developers' markdown description cells and looks for the most similar code cells from the database using text similarities such as the BM25 ranking function or CodeBERT, a machine-learning approach. Then, the algorithm computes the similarity distance between the tokenized query and markdown cells to return the most relevant code cells to the developers. We evaluated the Typhon tool on Jupyter notebooks from Kaggle competitions and found that the approach can recommend code cells with moderate accuracy. The approach and results in this paper can lead to further improvements in code cell recommendations in Jupyter notebooks.

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

↑