Transforming Spreadsheet Data Types Using Examples
Title | Transforming Spreadsheet Data Types Using Examples |
Publication Type | Conference Paper |
Year of Publication | 2016 |
Authors | Singh, Rishabh, Gulwani, Sumit |
Conference Name | Proceedings of the 43rd Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages |
Publisher | ACM |
Conference Location | New York, NY, USA |
ISBN Number | 978-1-4503-3549-2 |
Keywords | Noisy Examples, Probabilistic Synthesis, Program Synthesis, Programming By Examples, pubcrawl170201, Spreadsheet Programming |
Abstract | Cleaning spreadsheet data types is a common problem faced by millions of spreadsheet users. Data types such as date, time, name, and units are ubiquitous in spreadsheets, and cleaning transformations on these data types involve parsing and pretty printing their string representations. This presents many challenges to users because cleaning such data requires some background knowledge about the data itself and moreover this data is typically non-uniform, unstructured, and ambiguous. Spreadsheet systems and Programming Languages provide some UI-based and programmatic solutions for this problem but they are either insufficient for the user's needs or are beyond their expertise. In this paper, we present a programming by example methodology of cleaning data types that learns the desired transformation from a few input-output examples. We propose a domain specific language with probabilistic semantics that is parameterized with declarative data type definitions. The probabilistic semantics is based on three key aspects: (i) approximate predicate matching, (ii) joint learning of data type interpretation, and (iii) weighted branches. This probabilistic semantics enables the language to handle non-uniform, unstructured, and ambiguous data. We then present a synthesis algorithm that learns the desired program in this language from a set of input-output examples. We have implemented our algorithm as an Excel add-in and present its successful evaluation on 55 benchmark problems obtained from online help forums and Excel product team. |
URL | http://doi.acm.org/10.1145/2837614.2837668 |
DOI | 10.1145/2837614.2837668 |
Citation Key | singh_transforming_2016 |