Using machine translation for converting Python 2 to Python 3 code

By Karan Aggarwal, Mohammad Salameh, Abram Hindle. 2015

41 citations recorded by the source corpus.

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 crossprogramming-languages code translation.

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

  1. Baptiste Rozière
  2. Mohit Bansal
  3. Marc Szafraniec
  4. Gabriel Synnaeve
  5. Percy Liang
  6. Yoshua Bengio
  7. Jie M. Zhang
  8. Marie-Anne Lachaux

Citations in the corpus