Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
97 tokens/sec
GPT-4o
53 tokens/sec
Gemini 2.5 Pro Pro
44 tokens/sec
o3 Pro
5 tokens/sec
GPT-4.1 Pro
47 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

TransRegex: Multi-modal Regular Expression Synthesis by Generate-and-Repair (2012.15489v2)

Published 31 Dec 2020 in cs.PL and cs.SE

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.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (8)
  1. Yeting Li (9 papers)
  2. Shuaimin Li (6 papers)
  3. Zhiwu Xu (5 papers)
  4. Jialun Cao (24 papers)
  5. Zixuan Chen (50 papers)
  6. Yun Hu (7 papers)
  7. Haiming Chen (10 papers)
  8. Shing-Chi Cheung (54 papers)
Citations (15)

Summary

We haven't generated a summary for this paper yet.