Using machine translation for converting Python 2 to Python 3 code
Keyword(s):
In this paper, we have tried to use statistical machine translation in order to convert Python 2 code to Python 3 code. We use data from two projects and achieve a high BLEU score. We also investigate the cross-project training and testing to analyze the errors so as to ascertain differences with previous case. We have described a pilot study on modeling programming languages as natural language to build translation models on the lines of natural languages. This can be further worked on to translate between versions of a programming language or cross-programming-languages code translation.
2015 ◽
2021 ◽
Vol 12
(5)
◽
pp. 1134-1147
2014 ◽
Vol 926-930
◽
pp. 3645-3648
2013 ◽
Vol 347-350
◽
pp. 3262-3266
2013 ◽
Vol 8
(3)
◽
pp. 908-912
◽