使用 Transformer 将史诗/故事转换为伪代码
Converting Epics/Stories into Pseudocode using Transformers
AI总结:
本文提出两阶段 Transformer 方法,将敏捷用户故事先转为代码再转为伪代码,并发现分别训练的 CodeT5 在 BLEU 分数上表现最佳。
摘要:
将用户史诗或故事转换为其适当的伪代码或代码表示是一项耗时的任务,可能占用工业项目中的大量时间。通过本研究论文,我们旨在提出一种方法,根据给定的小型功能敏捷用户故事生成伪代码,从而减少工业项目所花费的总时间。伪代码是一种与编程语言无关的表示形式,用于描述计算机程序中涉及的步骤,并且可以轻松转换为任何编程语言。利用自然语言处理的潜力,我们希望简化采用敏捷软件开发模型的组织中的开发流程。我们提出了一种将以英语描述的问题转换为伪代码的方法。该方法将文本到伪代码的转换任务划分为两个阶段或子任务,每个子任务都被视为独立的机器翻译任务。阶段 1 是文本到代码转换,阶段 2 是代码到伪代码转换。我们发现,当分别在上述两个子任务上进行训练时,CodeT5 模型在 BLEU 分数方面给出了最佳结果。BLEU 分数是一项指标,用于衡量机器翻译文本与一组参考译文之间的相似度。
英文摘要:
The conversion of user epics or stories into their appropriate representation in pseudocode or code is a time-consuming task, which can take up a large portion of the time in an industrial project. With this research paper, we aim to present a methodology to generate pseudocode from a given agile user story of small functionalities so as to reduce the overall time spent on the industrial project. Pseudocode is a programming language agnostic representation of the steps involved in a computer program, which can be easily converted into any programming language. Leveraging the potential of Natural Language Processing, we want to simplify the development process in organizations that use the Agile Model of Software Development. We present a methodology to convert a problem described in the English language into pseudocode. This methodology divides the Text to Pseudocode conversion task into two stages or subtasks, each of which is treated like an individual machine translation task. Stage 1 is Text to Code Conversion and Stage 2 is Code to Pseudocode Conversion. We find that the CodeT5 model gives the best results in terms of BLEU score when trained separately on the two subtasks mentioned above. BLEU score is a metric that is used to measure the similarity between a machine-translated text and a set of reference translations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。