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

识别手写Source Code

Recognizing Handwritten Source Code

Qiyu Zhi, Ronald Metoyer

摘要:

支持在触摸屏设备上编程需要有效的文本输入和编辑方法。不幸的是,虚拟键盘可能效率低下,并且在已经很小的设备上使用宝贵的屏幕空间。手写笔输入的最新进展使得手写成为用于在触摸屏设备上编程的潜在可行的文本输入解决方案。然而,主要的障碍是手写识别系统是为了利用自然语言的规则而构建的,而不是程序设计语言的规则。在本文中,我们探讨这个特殊的问题,手写识别的源代码。我们收集并公开了来自15名参与者的手写Python代码样本的数据集,并描述了使用最先进的手写识别工具时手写Python源代码的典型识别错误。我们提出了一种方法,以提高识别准确率,通过增强手写识别器与程序设计语言的语法规则。我们对收集的数据集的实验表明,8.6%的字出错率和3.6%的字符出错率,这优于标准的手写识别系统,并媲美虚拟键盘上键入源代码。

英文摘要:

Supporting programming on touchscreen devices requires effective text input and editing methods. Unfortunately, the virtual keyboard can be inefficient and uses valuable screen space on already small devices. Recent advances in stylus input make handwriting a potentially viable text input solution for programming on touchscreen devices. The primary barrier, however, is that handwriting recognition systems are built to take advantage of the rules of natural language, not those of a programming language. In this paper, we explore this particular problem of handwriting recognition for source code. We collect and make publicly available a dataset of handwritten Python code samples from 15 participants and we characterize the typical recognition errors for this handwritten Python source code when using a state-of-the-art handwriting recognition tool. We present an approach to improve the recognition accuracy by augmenting a handwriting recognizer with the programming language grammar rules. Our experiment on the collected dataset shows an 8.6% word error rate and a 3.6% character error rate which outperforms standard handwriting recognition systems and compares favorably to typing source code on virtual keyboards.

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

↑