M. H. Hassan, Omar A. Mahmoud, O. A. Mohammed, Ammar Y. Baraka, Amira T. Mahmoud, A. Yousef
{"title":"Neural Machine Based Mobile Applications Code Translation","authors":"M. H. Hassan, Omar A. Mahmoud, O. A. Mohammed, Ammar Y. Baraka, Amira T. Mahmoud, A. Yousef","doi":"10.1109/NILES50944.2020.9257935","DOIUrl":null,"url":null,"abstract":"Although many cross platform mobile development software used a trans-compiler-based approach, it was very difficult to generalize it to work in both directions. For example, to convert between Java for Android Development and Swift for iOS development and vice versa. This is due to the need of writing a specific parser for each source language, and a specific code generator for each destination language. Neural network-based models are used successfully to translate between natural languages, including English, French, German any many others by providing enough datasets and without the need of adding language specific code for understanding and generation. In this paper, a source code converter based on the Neural Machine Translation Transformer Model that can translate from Java to Swift and vice versa is introduced. A synthesized dataset is used to train the model, the pipeline used for the translation as well as the code synthesis procedure throughout the work are illustrated. Initial results are promising and give motivation to further enhance the proposed tool.","PeriodicalId":253090,"journal":{"name":"2020 2nd Novel Intelligent and Leading Emerging Sciences Conference (NILES)","volume":null,"pages":null},"PeriodicalIF":0.0000,"publicationDate":"2020-10-24","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"3","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2020 2nd Novel Intelligent and Leading Emerging Sciences Conference (NILES)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/NILES50944.2020.9257935","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 3
Abstract
Although many cross platform mobile development software used a trans-compiler-based approach, it was very difficult to generalize it to work in both directions. For example, to convert between Java for Android Development and Swift for iOS development and vice versa. This is due to the need of writing a specific parser for each source language, and a specific code generator for each destination language. Neural network-based models are used successfully to translate between natural languages, including English, French, German any many others by providing enough datasets and without the need of adding language specific code for understanding and generation. In this paper, a source code converter based on the Neural Machine Translation Transformer Model that can translate from Java to Swift and vice versa is introduced. A synthesized dataset is used to train the model, the pipeline used for the translation as well as the code synthesis procedure throughout the work are illustrated. Initial results are promising and give motivation to further enhance the proposed tool.