FlashExtract: a framework for data extraction by examples
The DOI matches its Crossref record; 19 of the 19 references it cites were found in a registry or an index.
Abstract
Various document types that combine model and view (e.g., text files, webpages, spreadsheets) make it easy to organize (possibly hierarchical) data, but make it difficult to extract raw data for any further manipulation or querying. We present a general framework FlashExtract to extract relevant data from semi-structured documents using examples. It includes: (a) an interaction model that allows end-users to give examples to extract various fields and to relate them in a hierarchical organization using structure and sequence constructs. (b) an inductive synthesis algorithm to synthesize the intended program from few examples in any underlying domain-specific language for data extraction that has been built using our specified algebra of few core operators (map, filter, merge, and pair). We describe instantiation of our framework to three different domains: text files, webpages, and spreadsheets. On our benchmark comprising 75 documents, FlashExtract is able to extract intended data using an average of 2.36 examples in 0.84 seconds per field.
Overview
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
Citations
Cites
Wrangler: interactive visual specification of data transformation scripts
Kandel, S., Paepcke, A., Hellerstein, J., & Heer, J. (2011) · Proceedings of the SIGCHI Conference on Human Factors in Computing Systems · doi:10.1145/1978942.1979444 · Cited by 581
Automating string processing in spreadsheets using input-output examples
Gulwani, S. (2011) · Proceedings of the 38th annual ACM SIGPLAN-SIGACT symposium on Principles of programming languages · doi:10.1145/1926385.1926423 · Cited by 446
Self-citationGenerating finite-state transducers for semi-structured data extraction from the Web
Hsu, C.-N., & Dung, M.-T. (1998) · Information Systems · doi:10.1016/s0306-4379(98)00027-1 · Cited by 411
IEPAD: information extraction based on pattern discovery
Chang, C.-H., & Lui, S.-C. (2001) · Proceedings of the 10th international conference on World Wide Web · doi:10.1145/371920.372182 · Cited by 411
A hierarchical approach to wrapper induction
Muslea, I., Minton, S., & Knoblock, C. (1999) · Proceedings of the third annual conference on Autonomous Agents · doi:10.1145/301136.301191 · Cited by 371
Spreadsheet data manipulation using examples
Gulwani, S., Harris, W. R., & Singh, R. (2012) · Communications of the ACM · doi:10.1145/2240236.2240260 · Cited by 292
Self-citationBelasco, A., Bergman, D., & Trivette, M. (2023) · Colleges Worth Your Money · doi:10.5771/9781475873191-66 · Cited by 205
Spreadsheet table transformations from examples
Harris, W. R., & Gulwani, S. (2011) · ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI) · doi:10.1145/1993498.1993536 · Cited by 146
Self-citationHeader and Unit Inference for Spreadsheets Through Spatial Analyses
Abraham, R., & Erwig, M. (2005) · 2004 IEEE Symposium on Visual Languages - Human Centric Computing · doi:10.1109/vlhcc.2004.29 · Cited by 130
Learning semantic string transformations from examples
Singh, R., & Gulwani, S. (2012) · Proceedings of the VLDB Endowment · doi:10.14778/2212351.2212356 · Cited by 121
Self-citation
Research works printed but not linked: 4
- Anton T., 2005, LWA
- Crescenzi V., 2001, VLDB
- Frenz C., 2005, APress
- Kushmerick N., 1997, IJCAI (1)
Cited by
SQLizer: query synthesis from natural language
Yaghmazadeh, N., Wang, Y., Dillig, I., & Dillig, T. (2017) · Proceedings of the ACM on Programming Languages · doi:10.1145/3133887 · Cited by 279
S3: syntax- and semantic-guided repair synthesis via programming by examples
Le, X.-B. D., Chu, D.-H., Lo, D., Le Goues, C., & Visser, W. (2017) · Proceedings of the 2017 11th Joint Meeting on Foundations of Software Engineering · doi:10.1145/3106237.3106309 · Cited by 220
Synthesizing highly expressive SQL queries from input-output examples
Wang, C., Cheung, A., & Bodik, R. (2017) · Proceedings of the 38th ACM SIGPLAN Conference on Programming Language Design and Implementation · doi:10.1145/3062341.3062365 · Cited by 178
In-IDE Code Generation from Natural Language: Promise and Challenges
Xu, F. F., Vasilescu, B., & Neubig, G. (2022) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3487569 · Cited by 154
In-IDE Code Generation from Natural Language: Promise and Challenges
Xu, F. F., Vasilescu, B., & Neubig, G. (2021) · arXiv · doi:10.48550/arxiv.2101.11149 · Cited by 153
Auto-Suggest: Learning-to-Recommend Data Preparation Steps Using Data Science Notebooks
Yan, C., & He, Y. (2020) · ACM SIGMOD International Conference on Management of Data (SIGMOD) · doi:10.1145/3318464.3389738 · Cited by 74
Interactive Program Synthesis by Augmented Examples
Zhang, T., Lowmanstone, L., Wang, X., & Glassman, E. L. (2020) · Proceedings of the 33rd Annual ACM Symposium on User Interface Software and Technology · doi:10.1145/3379337.3415900 · Cited by 57
Transform-data-by-example (TDE): an extensible search engine for data transformations
He, Y., Chu, X., Ganjam, K., Zheng, Y., Narasayya, V. R., & Chaudhuri, S. (2018) · Proceedings of the VLDB Endowment · doi:10.14778/3231751.3231766 · Cited by 61
Navigating the Data Lake with DATAMARAN: Automatically Extracting Structure from Log Datasets
Gao, Y., Huang, S., & Parameswaran, A. (2018) · ACM SIGMOD International Conference on Management of Data (SIGMOD) · doi:10.1145/3183713.3183746 · Cited by 60
Synthesizing highly expressive SQL queries from input-output examples
Wang, C., Cheung, A., & Bodik, R. (2017) · ACM SIGPLAN Notices · doi:10.1145/3140587.3062365 · Cited by 48
On the fly synthesis of edit suggestions
Miltner, A., Gulwani, S., Le, V., Leung, A., Radhakrishna, A., Soares, G., Tiwari, A., & Udupa, A. (2019) · Proceedings of the ACM on Programming Languages · doi:10.1145/3360569 · Cited by 47
Self-citationSmall-Step Live Programming by Example
Ferdowsifard, K., Ordookhanians, A., Peleg, H., Lerner, S., & Polikarpova, N. (2020) · Proceedings of the 33rd Annual ACM Symposium on User Interface Software and Technology · doi:10.1145/3379337.3415869 · Cited by 42
Wrangling messy CSV files by detecting row and type patterns
van den Burg, G. J. J., Nazábal, A., & Sutton, C. (2019) · Data Mining and Knowledge Discovery · doi:10.1007/s10618-019-00646-y · Cited by 42
Uni-Detect: A Unified Approach to Automated Error Detection in Tables
Wang, P., & He, Y. (2019) · ACM SIGMOD International Conference on Management of Data (SIGMOD) · doi:10.1145/3299869.3319855 · Cited by 66
Combining the top-down propagation and bottom-up enumeration for inductive program synthesis
Lee, W. (2021) · Proceedings of the ACM on Programming Languages · doi:10.1145/3434335 · Cited by 46
Programming by Examples: PL Meets ML
Gulwani, S., & Jain, P. (2017) · Lecture notes in computer science · doi:10.1007/978-3-319-71237-6_1 · Cited by 49
Self-citationSynthesizing Imperative Programs from Examples Guided by Static Analysis
So, S., & Oh, H. (2017) · Lecture notes in computer science · doi:10.1007/978-3-319-66706-5_18 · Cited by 48
Bespoke: Interactively Synthesizing Custom GUIs from Command-Line Applications By Demonstration
Vaithilingam, P., & Guo, P. J. (2019) · ACM Symposium on User Interface Software and Technology (UIST) · doi:10.1145/3332165.3347944 · Cited by 46
Question selection for interactive program synthesis
Ji, R., Liang, J., Xiong, Y., Zhang, L., & Hu, Z. (2020) · ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI) · doi:10.1145/3385412.3386025 · Cited by 48
Active Learning of Regular Expressions for Entity Extraction
Bartoli, A., Lorenzo, A. D., Medvet, E., & Tarlao, F. (2017) · IEEE Transactions on Cybernetics · doi:10.1109/tcyb.2017.2680466 · Cited by 37
FlashFill++: Scaling Programming by Example by Cutting to the Chase
Cambronero, J., Gulwani, S., Le, V., Perelman, D., Radhakrishna, A., Simon, C., & Tiwari, A. (2023) · Proceedings of the ACM on Programming Languages · doi:10.1145/3571226 · Cited by 49
Self-citationSpreadsheet Property Detection With Rule-assisted Active Learning
Chen, Z., Dadiomov, S., Wesley, R., Xiao, G., Cory, D., Cafarella, M., & Mackinlay, J. D. (2017) · ACM International Conference on Information and Knowledge Management (CIKM) · doi:10.1145/3132847.3132882 · Cited by 35
Automated Generation of Executable RPA Scripts from User Interface Logs
Agostinelli, S., Lupia, M., Marrella, A., & Mecella, M. (2020) · Lecture notes in business information processing · doi:10.1007/978-3-030-58779-6_8 · Cited by 35
Programming by Examples: Applications, Algorithms, and Ambiguity Resolution
Gulwani, S. (2016) · Lecture notes in computer science · doi:10.1007/978-3-319-40229-1_2 · Cited by 52
Self-citationPIDS: attribute decomposition for improved compression and query performance in columnar storage
Jiang, H., Liu, C., Jin, Q., Paparrizos, J., & Elmore, A. J. (2020) · Proceedings of the VLDB Endowment · doi:10.14778/3380750.3380761 · Cited by 43
Meta-Interpretive Learning of Data Transformation Programs
Cropper, A., Tamaddoni-Nezhad, A., & Muggleton, S. H. (2016) · Lecture Notes in Computer Science · doi:10.1007/978-3-319-40566-7_4 · Cited by 32
Interactive Programming for Parametric CAD
Mathur, A. S., Pirron, M., & Damien Zufferey, A. (2020) · Computer Graphics Forum · doi:10.1111/cgf.14046 · Cited by 32
Reactive synthesis of software robots in RPA from user interface logs
Agostinelli, S., Lupia, M., Marrella, A., & Mecella, M. (2022) · Computers in Industry · doi:10.1016/j.compind.2022.103721 · Cited by 33
Miltner, A., Fisher, K. S., Pierce, B. C., Walker, D., & Zdancewic, S. (2017) · Proceedings of the ACM on Programming Languages · doi:10.1145/3158089 · Cited by 37
Web question answering with neurosymbolic program synthesis
Chen, Q., Lamoreaux, A., Wang, X., Durrett, G., Bastani, O., & Dillig, I. (2021) · ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI) · doi:10.1145/3453483.3454047 · Cited by 37
Semantic programming by example with pre-trained models
Verbruggen, G., Le, V., & Gulwani, S. (2021) · Proceedings of the ACM on Programming Languages · doi:10.1145/3485477 · Cited by 36
Self-citationTakenouchi, K., Ishio, T., Okada, J., & Sakata, Y. (2021) · Proceedings of the VLDB Endowment · doi:10.14778/3476249.3476253 · Cited by 26
Example-guided synthesis of relational queries
Thakkar, A., Naik, A., Sands, N., Alur, R., Naik, M., & Raghothaman, M. (2021) · ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI) · doi:10.1145/3453483.3454098 · Cited by 22
Foofah: A Programming-By-Example System for Synthesizing Data Transformation Programs
Jin, Z., Anderson, M. R., Cafarella, M., & Jagadish, H. V. (2017) · ACM SIGMOD International Conference on Management of Data (SIGMOD) · doi:10.1145/3035918.3058732 · Cited by 15
Extracting Syntactical Patterns from Databases
Ilyas, A., da Trindade, J. M. F., Fernandez, R. C., & Madden, S. R. (2018) · IEEE International Conference on Data Engineering (ICDE) · doi:10.1109/icde.2018.00014 · Cited by 15
WebRelate: integrating web data with spreadsheets using examples
Inala, J. P., & Singh, R. (2017) · Proceedings of the ACM on Programming Languages · doi:10.1145/3158090 · Cited by 18
Automata Learning with an Incomplete Teacher
Moeller, M., Wiener, T., Solko-Breslin, A., Koch, C., Foster, N., & Silva, A. (2023) · DROPS (Schloss Dagstuhl – Leibniz Center for Informatics) · doi:10.4230/lipics.ecoop.2023.21 · Cited by 12
Skip blocks: reusing execution history to accelerate web scripts
Chasins, S., & Bodík, R. (2017) · Proceedings of the ACM on Programming Languages · doi:10.1145/3133875 · Cited by 12
Adding Missing Words to Regular Expressions
Rebele, T., Tzompanaki, K., & Suchanek, F. M. (2018) · Lecture notes in computer science · doi:10.1007/978-3-319-93037-4_6 · Cited by 14
Winkels, J., Graefenstein, J., Schäfer, T., Scholz, D., Rehof, J., & Henke, M. (2018) · Lecture notes in computer science · doi:10.1007/978-3-030-03427-6_36 · Cited by 10
FormaT5: Abstention and Examples for Conditional Table Formatting with Natural Language
Singh, M. P., Cambronero, J., Gulwani, S., Le, V., Negreanu, C., Nouri, E., Raza, M., & Verbruggen, G. (2023) · Proceedings of the VLDB Endowment · doi:10.14778/3632093.3632111 · Cited by 13
Self-citationGoverning Open Vocabulary Data Leaks Using an Edge LLM through Programming by Example
Li, Q., Wen, J., & Jin, H. (2024) · Proceedings of the ACM on Interactive Mobile Wearable and Ubiquitous Technologies · doi:10.1145/3699760 · Cited by 12
Etna: Harvesting Action Graphs from Websites
Riva, O., & Kace, J. (2021) · ACM Symposium on User Interface Software and Technology (UIST) · doi:10.1145/3472749.3474752 · Cited by 10
Abstraction-Based Interaction Model for Synthesis
Peleg, H., Itzhaky, S., & Shoham, S. (2017) · Lecture notes in computer science · doi:10.1007/978-3-319-73721-8_18 · Cited by 10
Programming by Example Made Easy
Wu, J., Wei, L., Jiang, Y., Cheung, S.-C., Ren, L., & Xu, C. (2023) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3607185 · Cited by 11
Parsimony: An IDE for example-guided synthesis of lexers and parsers
Leung, A., & Lerner, S. (2017) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase.2017.8115692 · Cited by 6
Web Record Extraction with Invariants
Chen, Z., Meng, W., & Dragut, E. C. (2022) · Proceedings of the VLDB Endowment · doi:10.14778/3574245.3574276 · Cited by 5
Gauss: program synthesis by reasoning over graphs
Bavishi, R., Lemieux, C., Sen, K., & Stoica, I. G. (2021) · Proceedings of the ACM on Programming Languages · doi:10.1145/3485511 · Cited by 7
Transforming spreadsheets with data noodles
Gorinova, M. I., Sarkar, A., Blackwell, A. F., & Prince, K. (2016) · IEEE Symposium on Visual Languages and Human-Centric Computing (VL/HCC) · doi:10.1109/vlhcc.2016.7739694 · Cited by 4
Peleg, H., Rasin, D., & Yahav, E. (2017) · Lecture notes in computer science · doi:10.1007/978-3-319-73721-8_19 · Cited by 6
Cognification of Program Synthesis—A Systematic Feature-Oriented Analysis and Future Direction
Subahi, A. F. (2020) · Computers · doi:10.3390/computers9020027 · Cited by 4
Cornet: Learning Spreadsheet Formatting Rules by Example
Singh, M. P., Cambronero, J., Gulwani, S., Le, V., Negreanu, C., & Verbruggen, G. (2023) · Proceedings of the VLDB Endowment · doi:10.14778/3611540.3611620 · Cited by 4
Self-citationSurvey of intelligent program synthesis techniques
Zhou, B., & Ding, G. (2023) · International Conference on Algorithms, High Performance Computing and Artificial Intelligence (AHPCAI) · doi:10.1117/12.3011627 · Cited by 4
Can ChatGPT Replace a Template-based Code Generator?
Bochenek, A. (2023) · Annals of Computer Science and Information Systems · doi:10.15439/2023f5691 · Cited by 2
Synthesizing relation-aware entity transformation by examples
Wu, J., Jiang, Y., Xu, C., Cheung, S.-C., Ma, X., & Lu, J. J. (2018) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3183440.3194963 · Cited by 2
DataRinse: Semantic Transforms for Data Preparation Based on Code Mining
Abdelaziz, I., Dolby, J., Khurana, U., Samulowitz, H., & Srinivas, K. (2023) · Proceedings of the VLDB Endowment · doi:10.14778/3611540.3611628 · Cited by 1
Metadata Extraction for Low-Quality Semi-structured Spreadsheets
Awad, A., Elgohary, R., Moawad, I. F., & Roushdy, M. I. (2020) · Advances in intelligent systems and computing · doi:10.1007/978-3-030-44289-7_42 · Cited by 1
Table Transformation Rule Learner
Su, Y., Li, C., Song, S., & Takao, K. (2018) · International Conference on Information Science and Technology · doi:10.1109/icist.2018.8426166
A Collaborative Framework for Structure Identification over Print Documents
Hanafi, M. F., Mannino, M., & Abouzied, A. (2019) · Workshop on Human-In-the-Loop Data Analytics (HILDA) · doi:10.1145/3328519.3329131
Evolution of Editing Scripts From Examples
Sedláček, M., & Sekanina, L. (2023) · Genetic and Evolutionary Computation Conference Companion (GECCO Companion) · doi:10.1145/3583133.3590565
Synthesizing Graph Queries from Demonstrations
Liu, X., Liu, Q., Dyce, E., Vora, K., & Wang, Y. (2026) · Proceedings of the ACM on Programming Languages · doi:10.1145/3839524
Metadata
- Authors
- Le, V., & Gulwani, S.
- Affiliations
- University of California, Davis (US)
- Microsoft (United States) (US)
- ORCID
- Venue
- ACM SIGPLAN Notices
- Published
- 2014-06-05
- Volume
- 49
- Issue
- 6
- Pages
- 542-553
- ISSN
- 0362-1340 (ISSN-L)
- 1558-1160
- OpenAlex
- W4256244129
- Cited by
- 59
- References
- 19
- Citations by year
- 2026: 1 · 2024: 1 · 2023: 8 · 2022: 3 · 2021: 7 · 2020: 9 · 2019: 5 · 2018: 7 · 2017: 15 · 2016: 3
- FWCI
- 16.63
- Type
- journal article
- Language
- en
- Open access
- closed
- Locations
- ACM SIGPLAN Notices (publishedVersion)
- Topics
- Physical Sciences › Computer Science › Information Systems › Web Data Mining and Analysis
- Physical Sciences › Computer Science › Information Systems › Advanced Database Systems and Queries
- Physical Sciences › Computer Science › Software › Spreadsheets and End-User Computing
- Keywords
- data extraction, semi-structured documents, learning from examples, inductive synthesis, program synthesis, hierarchical data, text files, web pages, spreadsheet software, interaction model, relational algebra
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.