salesforce / CodeT5

Home of CodeT5: Open Code LLMs for Code Understanding and Generation
https://arxiv.org/abs/2305.07922
BSD 3-Clause "New" or "Revised" License
2.68k stars 394 forks source link

How to do Python to Java translation? #45

Closed bear96 closed 2 years ago

bear96 commented 2 years ago

Hello,

Is it possible to translate a Python source code to Java source code using CodeT5? The current model seems to perform only Java to C# translation.

yuewang-cuhk commented 2 years ago

Hi, for this you need to prepare a dataset of Python to Java translation pairs and fine-tune the CodeT5 models on it (referring to here).