# Using Filters for the Disambiguation of Context-free Grammars

In Proceedings of the ASMICS Workshop on Parsing Theory. Tech. Rep. 126--1994, Dipartimento di Scienze dell'Informazione, Universit\a di Milano, Milano, Italy, October 1994.

## Abstract

An ambiguous context-free grammar defines a language in which some sentences have multiple interpretations. For conciseness, ambiguous context-free grammars are frequently used to define even completely unambiguous languages and numerous disambiguation methods exist for specifying which interpretation is the intended one for each sentence. The existing methods can be divided in parser specific' methods that describe how some parsing technique deals with ambiguous sentences and`logical' methods that describe the intended interpretation without reference to a specific parsing technique. We propose a framework of \em filters/ to describe and compare a wide range of disambiguation problems in a parser-independent way. A filter is a function that selects from a set of parse trees (the canonical representation of the interpretations of a sentence) the intended trees. The framework enables us to define several general properties of disambiguation methods. The expressive power of filters is illustrated by several case studies. Finally, a start is made with the study of efficient implementation techniques for filters by exploiting the commutativity of parsing steps and filter steps for certain classes of filters.

## Technical report

The following is a technical report version of this publication:

• Technical Report P9426, 1994.

## Predecessors

The following are older variants of this publication: