Data Extraction via Semantic Regular Expression Synthesis

Author:

Chen Qiaochu1ORCID,Banerjee Arko1ORCID,Demiralp Çağatay2ORCID,Durrett Greg1ORCID,Dillig Işıl1ORCID

Affiliation:

1. University of Texas at Austin, Austin, USA

2. Massachusetts Institute of Technology, Cambridge, USA

Abstract

Many data extraction tasks of practical relevance require not only syntactic pattern matching but also semantic reasoning about the content of the underlying text. While regular expressions are very well suited for tasks that require only syntactic pattern matching, they fall short for data extraction tasks that involve both a syntactic and semantic component. To address this issue, we introduce semantic regexes, a generalization of regular expressions that facilitates combined syntactic and semantic reasoning about textual data. We also propose a novel learning algorithm that can synthesize semantic regexes from a small number of positive and negative examples. Our proposed learning algorithm uses a combination of neural sketch generation and compositional type-directed synthesis for fast and effective generalization from a small number of examples. We have implemented these ideas in a new tool called Smore and evaluated it on representative data extraction tasks involving several textual datasets. Our evaluation shows that semantic regexes can better support complex data extraction tasks than standard regular expressions and that our learning algorithm significantly outperforms existing tools, including state-of-the-art neural networks and program synthesis tools.

Funder

NSF

Publisher

Association for Computing Machinery (ACM)

Subject

Safety, Risk, Reliability and Quality,Software

Reference57 articles.

1. R. Alquezar and A. Sanfeliu . 1994 . Incremental Grammatical Inference From Positive And Negative Data Using Unbiased Finite State Automata. In In Proceedings of the ACL’02 Workshop on Unsupervised Lexical Acquisition. 291–300 . R. Alquezar and A. Sanfeliu. 1994. Incremental Grammatical Inference From Positive And Negative Data Using Unbiased Finite State Automata. In In Proceedings of the ACL’02 Workshop on Unsupervised Lexical Acquisition. 291–300.

2. Learning to Compose Neural Networks for Question Answering

3. Neural Module Networks

4. Learning regular sets from queries and counterexamples

5. Jacob Austin , Augustus Odena , Maxwell I. Nye , Maarten Bosma , Henryk Michalewski , David Dohan , Ellen Jiang , Carrie J. Cai , Michael Terry , Quoc V. Le , and Charles Sutton . 2021. Program Synthesis with Large Language Models. CoRR, abs/2108.07732 ( 2021 ), arXiv:2108.07732. arxiv:2108.07732 Jacob Austin, Augustus Odena, Maxwell I. Nye, Maarten Bosma, Henryk Michalewski, David Dohan, Ellen Jiang, Carrie J. Cai, Michael Terry, Quoc V. Le, and Charles Sutton. 2021. Program Synthesis with Large Language Models. CoRR, abs/2108.07732 (2021), arXiv:2108.07732. arxiv:2108.07732

Cited by 5 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Structure and design of multimodal dataset for automatic regex synthesis methods in Roman Urdu;International Journal of Data Science and Analytics;2024-07-23

2. From Batch to Stream: Automatic Generation of Online Algorithms;Proceedings of the ACM on Programming Languages;2024-06-20

3. Towards Efficient Data Wrangling with LLMs using Code Generation;Proceedings of the Eighth Workshop on Data Management for End-to-End Machine Learning;2024-06-09

4. An Approach to Detect and Classify Potentially Suspicious Activity from Real-Time Log Data using Anomaly Detection Methods;2024 3rd International Conference for Innovation in Technology (INOCON);2024-03-01

5. Optimal Program Synthesis via Abstract Interpretation;Proceedings of the ACM on Programming Languages;2024-01-05

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3