arrow
返回

Sketch-Driven Regular Expression Generation from Natural Language and Examples

delete2020-12-01
delete10
delete
OA
AI
X
Xi Ye *
Q
Qiaochu Chen
王
王新宇 (Xinyu Wang)
I
Işıl Dillig
G
Greg Durrett
DOI:10.1162/tacl_a_00339delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Recent systems for converting natural language descriptions into regular expressions (regexes) have achieved some success, but typically deal with short, formulaic text and can only produce simple regexes. Real-world regexes are complex, hard to describe with brief sentences, and sometimes require examples to fully convey the user's intent. We present a framework for regex synthesis in this setting where both natural language (NL) and examples are available. First, a semantic parser (either grammar-based or neural) maps the natural language description into an intermediate sketch, which is an incomplete regex containing holes to denote missing components. Then a program synthesizer searches over the regex space defined by the sketch and finds a regex that is consistent with the given string examples. Our semantic parser can be trained purely from weak supervision based on correctness of the synthesized regex, or it can leverage heuristically derived sketches. We evaluate on two prior datasets (Kushman and Barzilay, 2013; Locascio et al., 2016) and a real-world dataset from Stack Overflow. Our system achieves state-of-the-art performance on the prior datasets and solves 57% of the real-world dataset, which existing neural systems completely fail on.

期刊

T
Transactions of the Association for Computational Linguistics
IF:
6.9
论文数:
486
被引数:
5.7K

机构

U
university of texas austin
学者数:
2.4W
论文数: 2.0W
被引数: 54
U
university of texas system
学者数:
18.5W
论文数: 15.6W
被引数: 210
引用论文

引用论文

Submicron-scale surface acoustic wave resonators fabricated by high aspect ratio X-ray lithography and aluminum lift-off
err2008-02-14
err0
PREAI
errSven Achenbach; David Klymyshyn; Timo Mappes; Anton Kachayev; Venkat Subramanian; Garth Wells; Jürgen Mohr
err分享
err收藏