five

Java ↔ C#, Java ↔ Python, Java ↔ C++, Python ↔ C++

收藏
arXiv2021-10-12 更新2024-08-06 收录
下载链接:
http://arxiv.org/abs/2110.05423v1
下载链接
链接失效反馈
官方服务:
资源简介:
本研究利用文档相似性方法创建了用于代码翻译的平行数据集,主要涉及Java、C#、Python和C++等编程语言。数据集通过分析开源项目中的代码实现,匹配具有相同功能但语言不同的代码片段。这些数据集用于训练模型,以实现不同编程语言间的自动代码翻译。研究展示了即使在数据集中存在一定程度的噪声,训练出的模型仍能保持良好的翻译性能。此外,研究还扩展了可自动翻译的编程语言对,进一步证明了该方法的实用性和有效性。

This study utilizes a document similarity methodology to develop parallel datasets for code translation, which primarily cover programming languages including Java, C#, Python, C++ and other major programming languages. The datasets are constructed by analyzing code implementations from open-source projects and pairing code snippets that share identical functionality but are written in distinct programming languages. These datasets serve as training data for models designed to achieve automatic code translation between different programming languages. The study demonstrates that the trained models can maintain robust translation performance even when a certain level of noise exists in the datasets. Furthermore, the research has expanded the range of automatically translatable programming language pairs, further validating the practicality and effectiveness of the proposed approach.
提供机构:
IBM研究院
创建时间:
2021-10-12
5,000+
优质数据集
54 个
任务类型
进入经典数据集
二维码
社区交流群

面向社区/商业的数据集话题

二维码
科研交流群

面向高校/科研机构的开源数据集话题

数据驱动未来

携手共赢发展

商业合作