CNL2ASP: converting controlled natural language sentences into ASP

Simone Caruso, Carmine Dodaro, Marco Maratea, Marco Mochi, Francesco Riccio
11/17/2023
cs.AIcs.CLcs.LO

No confident code implementation found for this paper. 5 possible matches can be shown below.

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. Under consideration in Theory and Practice of Logic Programming (TPLP).

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 5 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{caruso2023cnlasp,
  title  = {CNL2ASP: converting controlled natural language sentences into ASP},
  author = {Simone Caruso and Carmine Dodaro and Marco Maratea and Marco Mochi and Francesco Riccio},
  year   = {2023},
  eprint = {2311.10505},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.10505v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.10505.svg)](https://codeofpaper.com/paper/2311.10505)

Discussion