Abstract
Abstract
Answer set programming (ASP) is a popular declarative programming language for solving hard combinatorial problems. Although ASP has gained widespread acceptance in academic and industrial contexts, there are certain user groups who may find it more advantageous to employ a higher-level language that closely resembles natural language when specifying ASP programs. In this paper, we propose a novel tool, called CNL2ASP, for translating English sentences expressed in a controlled natural language (CNL) form into ASP. In particular, we first provide a definition of the type of sentences allowed by our CNL and their translation as ASP rules and then exemplify the usage of the CNL for the specification of both synthetic and real-world combinatorial problems. Finally, we report the results of an experimental analysis conducted on the real-world problems to compare the performance of automatically generated encodings with the ones written by ASP practitioners, showing that our tool can obtain satisfactory performance on these benchmarks.
Publisher
Cambridge University Press (CUP)
Subject
Artificial Intelligence,Computational Theory and Mathematics,Hardware and Architecture,Theoretical Computer Science,Software
Reference33 articles.
1. Asp-core-2 input language format;Calimeri;Theory and Practice of Logic Programming 20,2020
2. Caruso, S. , Dodaro, C. , Maratea, M. , Mochi, M. and Riccio, F. 2022. Grammar of the CNL. URL: https://github.com/dodaro/cnl2asp/blob/main/src/cnl/grammar/cnl_grammar.lark.
3. Nurse (re)scheduling via answer set programming;Alviano;Intelligenza Artificiale 12,2018
4. A survey and classification of controlled natural languages;Kuhn;Computational Linguistics 40,2014
5. Manipulation of articulated objects using dual-arm robots via answer set programming;Bertolucci;Theory and Practice of Logic Programming 21,2021