In plain words: A neural network learns to turn plain-English requests into regular expressions by training on a large set of matching text-and-regex pairs, without hand-built rules for the task. It beat the previous best system by 19.6%.
Abstract · Neural Generation of Regular Expressions from Natural Language with Minimal Domain Knowledge
This paper explores the task of translating natural language queries into regular expressions which embody their meaning. In contrast to prior work, the proposed neural model does not utilize domain-specific crafting, learning to translate directly from a parallel corpus. To fully explore the potential of neural models, we propose a methodology for collecting a large corpus of regular expression, natural language pairs. Our resulting model achieves a performance gain of 19.6% over previous state-of-the-art models.
Nicholas Locascio, Karthik Narasimhan, Eduardo DeLeon, Nate Kushman, Regina Barzilay
arXiv:1608.03000 · cs.CL, cs.AI · submitted Aug 9, 2016
abstract · pdf · html · to be published in EMNLP 2016
Code + data here: https://github.com/nicholaslocascio/deep-regex