跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 程序设计语言

arXiv:1908.03316 (cs)
[提交于 2019年8月12日 (v1),最后修订于 2020年3月23日 (此版本, v3)]

标题:Multi-modal Synthesis of Regular Expressions

作者:Qiaochu Chen, Xinyu Wang, Xi Ye, Greg Durrett, Isil Dillig
查看论文《Multi-modal Synthesis of Regular Expressions》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:In this paper, we propose a multi-modal synthesis technique for automatically constructing regular expressions (regexes) from a combination of examples and natural language. Using multiple modalities is useful in this context because natural language alone is often highly ambiguous, whereas examples in isolation are often not sufficient for conveying user intent. Our proposed technique first parses the English description into a so-called hierarchical sketch that guides our programming-by-example (PBE) engine. Since the hierarchical sketch captures crucial hints, the PBE engine can leverage this information to both prioritize the search as well as make useful deductions for pruning the search space. We have implemented the proposed technique in a tool called Regel and evaluate it on over three hundred regexes. Our evaluation shows that Regel achieves 80% accuracy whereas the NLP-only and PBE-only baselines achieve 43% and 26% respectively. We also compare our proposed PBE engine against an adaptation of AlphaRegex, a state-of-the-art regex synthesis tool, and show that our proposed PBE engine is an order of magnitude faster, even if we adapt the search algorithm of AlphaRegex to leverage the sketch. Finally, we conduct a user study involving 20 participants and show that users are twice as likely to successfully come up with the desired regex using Regel compared to without it.
评论: 36 pages
主题: 程序设计语言 (cs.PL)
引用方式: arXiv:1908.03316 [cs.PL]
  (或者 arXiv:1908.03316v3 [cs.PL] 对于此版本)
  https://doi.org/10.48550/arXiv.1908.03316

提交历史

来自:Qiaochu Chen
[v2] 2019年8月12日 星期一 08:59:56 UTC
[v3] 2020年3月23日 星期一 04:46:42 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.PL
< 上一篇   |   下一篇 >
最新 | 近期 | 2020-03
切换浏览方式为:
cs

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站