Skip to main content
QUICK REVIEW

[Paper Review] Parsing Combinatory Categorial Grammar with Answer Set Programming: Preliminary Report

Yuliya Lierler, Peter Schüller|arXiv (Cornell University)|Aug 29, 2011
Logic, Reasoning, and KnowledgeComputer Science22 references4 citations
TL;DR

This paper proposes a novel approach to Combinatory Categorial Grammar (CCG) parsing using Answer Set Programming (ASP), formulating parsing as a planning problem to generate all semantically distinct parse trees. The method leverages ASP's declarative modeling to avoid implementing custom parsing algorithms, achieving wide-coverage parsing via integration with the C&C supertagger and enabling robust, best-effort parsing even when full parses fail.

ABSTRACT

Combinatory categorial grammar (CCG) is a grammar formalism used for natural language parsing. CCG assigns structured lexical categories to words and uses a small set of combinatory rules to combine these categories to parse a sentence. In this work we propose and implement a new approach to CCG parsing that relies on a prominent knowledge representation formalism, answer set programming (ASP) - a declarative programming paradigm. We formulate the task of CCG parsing as a planning problem and use an ASP computational tool to compute solutions that correspond to valid parses. Compared to other approaches, there is no need to implement a specific parsing algorithm using such a declarative method. Our approach aims at producing all semantically distinct parse trees for a given sentence. From this goal, normalization and efficiency issues arise, and we deal with them by combining and extending existing strategies. We have implemented a CCG parsing tool kit - AspCcgTk - that uses ASP as its main computational means. The C&C supertagger can be used as a preprocessor within AspCcgTk, which allows us to achieve wide-coverage natural language parsing.

Motivation & Objective

  • To develop a declarative, extensible framework for CCG parsing that avoids implementing low-level parsing algorithms.
  • To enable wide-coverage natural language parsing by integrating with the C&C supertagger for category assignment.
  • To generate all semantically distinct parse trees for a given sentence, addressing ambiguity inherent in natural language.
  • To support robust parsing through best-effort derivation when full parses are unattainable.
  • To provide a generic test-bed for experimenting with different CCG rule sets and normalization strategies.

Proposed method

  • Formulate CCG parsing as a planning problem within the Answer Set Programming (ASP) paradigm.
  • Use ASP solvers (gringo + clasp) to compute answer sets corresponding to valid CCG parse trees.
  • Integrate the C&C supertagger as a front-end to assign likely CCG categories with associated probabilities.
  • Implement a best-effort parsing strategy that produces partial parse trees when full derivations fail.
  • Use a separate ASP encoding (ccg2idpdraw.asp) to generate visualization instructions for IDPDraw, enabling graphical rendering of parse trees.
  • Apply syntactic normalization techniques to eliminate spurious parse trees that yield identical semantics.

Experimental results

Research questions

  • RQ1Can CCG parsing be effectively modeled as a planning problem using ASP, enabling declarative specification without implementing custom parsing logic?
  • RQ2How can ASP be used to generate all semantically distinct parse trees for ambiguous natural language sentences?
  • RQ3To what extent can the C&C supertagger be integrated into an ASP-based CCG parser to achieve wide-coverage parsing?
  • RQ4How does the framework handle incomplete or ambiguous input, and what is the behavior of best-effort parsing?
  • RQ5Can the framework be extended to support different CCG rule sets and normalization strategies in a modular, declarative way?

Key findings

  • The AspCcgTk toolkit successfully generates all semantically distinct parse trees for a given sentence using ASP, demonstrating the feasibility of declarative CCG parsing.
  • Integration with the C&C supertagger enables wide-coverage parsing comparable to the original C&C system, supporting real-world sentence coverage.
  • Best-effort parsing allows the system to produce partial parse trees when full derivations are not possible, improving robustness.
  • The separation of parsing and visualization logic via distinct ASP encodings (ccg.asp and ccg2idpdraw.asp) improves performance and maintainability.
  • Preliminary experiments show that the approach is scalable and efficient enough for practical use, with potential for further optimization through configuration-based reformulation or incremental ASP.
  • The framework enables systematic comparison of different CCG rule sets and normalization strategies due to its declarative and modular design.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.