Generating Context-Free Grammars using Classical Planning

Generating Context-Free Grammars using Classical Planning

Javier Segovia-Aguas, Sergio Jiménez, Anders Jonsson

Proceedings of the Twenty-Sixth International Joint Conference on Artificial Intelligence
Main track. Pages 4391-4397. https://doi.org/10.24963/ijcai.2017/613

This paper presents a novel approach for generating Context-Free Grammars (CFGs) from small sets of input strings (a single input string in some cases). Our approach is to compile this task into a classical planning problem whose solutions are sequences of actions that build and validate a CFG compliant with the input strings. In addition, we show that our compilation is suitable for implementing the two canonical tasks for CFGs, string production and string recognition.
Keywords:
Planning and Scheduling: Applications of Planning
Planning and Scheduling: Hierarchical planning