资 源 简 介
This is a library of Prolog files for parsing Multiple Context-Free Grammars.
Note 1: This is a programming library! Good knowledge of Prolog, and of Multiple Context-Free Grammars, is required to be able to use it.
Note 2: The library only works for Sicstus Prolog 3. Someday I might port it to SWI prolog.
Here can be found implementations of some of the algorithms I describe in chapter 4 of my PhD Thesis (2004). The algorithms are implemented using deductive parsing, in the spirit of Shieber, Schabes and Pereira (1995) and Sikkel (1997).
There are also utilities for extracting syntax trees and forests from the chart; and for linearization (i.e., generation of strings from syntax trees). The grammars can be multilingual, meaning that this can be used as a simple translation system.
There is also support for Grammatical Framework (GF) grammars, meaning that the library can be used as a Prolog A