Learning Context Free Grammars by Using SAT Solvers
Authors:
- Keita ImadaKIKeita Imada
- Katsuhiko NakamuraKNKatsuhiko Nakamura
- 1 December 2009
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 267-272
Abstract
In this paper, we propose a novel approach for learning context free grammars (CFGs) from positive and negative samples by solving a Boolean satisfiability problem (SAT). We encode the set of samples, together with limits on the sizes of rule sets to be synthesized as a Boolean expression. An assignment satisfying the Boolean expression contains a minimal set of rules that derives all positive samples and no negative samples. A feature of this approach is that we can synthesize the minimal set of rules in Chomsky normal form. The other feature is that our learning method reflects any improvements of SAT solvers. We present experimental results on learning CFGs for fundamental context free languages, including a set of strings composed of the equal numbers of a's and b's and the set of strings over {a, b}* not of the form ww.Keywords
This publication has 9 references indexed in Scilit:
- Towards Machine Learning of Grammars and Compilers of Programming Languages2008
- Analyzing Context-Free Grammars Using an Incremental SAT SolverLecture Notes in Computer Science, 2008
- PicoSAT EssentialsJournal on Satisfiability, Boolean Modeling and Computation, 2008
- Applications of SAT Solvers to Cryptanalysis of Hash Functions2006
- Incremental Learning of Context Free Grammars by Bridging Rule Generation and Search for Semi-optimum Rule SetsLecture Notes in Computer Science, 2006
- Experiments in Inductive Chart ParsingLecture Notes in Computer Science, 2000
- Learning Context-Free Grammars from Partially Structured Examples2000
- Symbolic Model Checking without BDDs1999
- Parenthesis GrammarsJournal of the ACM, 1967