Typhon:自动推荐Jupyter笔记本中相关代码单元格
软件工程
2024-05-16 v1
摘要
当前,code recommendation tools 在 various areas of expertise 中的软件开发者获得了更重要的关注。拥有code recommendation tools 已使开发人员在开发软件时获得更好的生产力和性能,并使开发人员更容易查找代码示例和从中学习。本文提出了Typhon,用于自动推荐Jupyter笔记本中的相关代码单元格。Typhon 对开发人员的markdown description cells 进行标记化处理,并通过文本相似性(如BM25排序函数或CodeBERT)从数据库中查找最相似的 code cells。随后,算法计算标记化查询与markdown单元格之间的相似距离,以返回最相关的 code cells 给开发人员。我们在来自Kaggle比赛的Jupyter笔记本上对Typhon工具进行了评估,发现该方法能够以中等准确率推荐 code cells。本文中的方法和结果可导致进一步提高Jupyter笔记本中 code cell 推荐的效果。
关键词
引用
@article{arxiv.2405.09075,
title = {Typhon: Automatic Recommendation of Relevant Code Cells in Jupyter Notebooks},
author = {Chaiyong Ragkhitwetsagul and Veerakit Prasertpol and Natanon Ritta and Paphon Sae-Wong and Thanapon Noraset and Morakot Choetkiertikul},
journal= {arXiv preprint arXiv:2405.09075},
year = {2024}
}