arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1909.04556cs.CL
收藏

Source Code中的人类语言:本地化指令的自动翻译

Human Languages in Source Code: Auto-Translation for Localized Instruction

Stanford University(斯坦福大学);University of Southern California(南加州大学)

Chris Piech, Sami Abu-El-Haija

摘要:

计算机科学教育已经承诺在世界范围内开放获取,但获取在很大程度上取决于你说什么人类语言。随着年龄较小的学生学习计算机科学,认为他们应该事先学习英语是不太合适的。为此,我们推出了CodeInternational,这是第一个在人类语言之间翻译代码的工具。为了发展非英语代码的理论,并为我们的翻译决策提供信息,我们对GitHub上的公共代码库进行了研究。据我们所知,这项研究是第一个关于人类语言代码的研究,涵盖了290万个Java存储库。为了展示CodeInternational的教育效用,我们构建了流行的英语卡雷尔阅读器的交互式版本,并将其翻译成100种口语。我们的翻译已经在世界各地的课堂上使用,并代表了一个重要的开放CS教育问题的第一步。

英文摘要:

Computer science education has promised open access around the world, but access is largely determined by what human language you speak. As younger students learn computer science it is less appropriate to assume that they should learn English beforehand. To that end we present CodeInternational, the first tool to translate code between human languages. To develop a theory of non-English code, and inform our translation decisions, we conduct a study of public code repositories on GitHub. The study is to the best of our knowledge the first on human-language in code and covers 2.9 million Java repositories. To demonstrate CodeInternational's educational utility, we build an interactive version of the popular English-language Karel reader and translate it into 100 spoken languages. Our translations have already been used in classrooms around the world, and represent a first step in an important open CS-education problem.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑