We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:


Current browse context:


Change to browse by:

References & Citations

DBLP - CS Bibliography


(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo ScienceWISE logo

Computer Science > Programming Languages

Title: TransRegex: Multi-modal Regular Expression Synthesis by Generate-and-Repair

Abstract: Since regular expressions (abbrev. regexes) are difficult to understand and compose, automatically generating regexes has been an important research problem. This paper introduces TransRegex, for automatically constructing regexes from both natural language descriptions and examples. To the best of our knowledge, TransRegex is the first to treat the NLP-and-example-based regex synthesis problem as the problem of NLP-based synthesis with regex repair. For this purpose, we present novel algorithms for both NLP-based synthesis and regex repair. We evaluate TransRegex with ten relevant state-of-the-art tools on three publicly available datasets. The evaluation results demonstrate that the accuracy of our TransRegex is 17.4%, 35.8% and 38.9% higher than that of NLP-based approaches on the three datasets, respectively. Furthermore, TransRegex can achieve higher accuracy than the state-of-the-art multi-modal techniques with 10% to 30% higher accuracy on all three datasets. The evaluation results also indicate TransRegex utilizing natural language and examples in a more effective way.
Comments: accepted by ICSE 2021
Subjects: Programming Languages (cs.PL); Software Engineering (cs.SE)
Cite as: arXiv:2012.15489 [cs.PL]
  (or arXiv:2012.15489v2 [cs.PL] for this version)

Submission history

From: Yeting Li [view email]
[v1] Thu, 31 Dec 2020 07:36:42 GMT (662kb,D)
[v2] Tue, 2 Mar 2021 06:27:31 GMT (1926kb,D)

Link back to: arXiv, form interface, contact.