Using GF grammars in Java and OAA

Björn Bringert, bringert@cs.chalmers.se

Introduction

The Grammatical Framework (GF) is a grammar formalism well suited to writing multilingual grammars for natural languages. The system presented in this document implements parsing and linearization using GF grammars.

Requirements

The GF system is required for producing the input to this system from GF source grammars. GF is not required to run programs using this system, only to produce the grammars for them.

Java 1.5 is required to compile and run the system.

OAA 2.3.0 or later is required to use the OAA interface.

Download

Get the GF interpreter here.

There is also a gfc2java darcs repo with the development version. Get darcs here.

Demos and examples

Java API

JavaDoc for the GF API.

JavaDoc for the API can also be built using make javadoc.

OAA interface

The OAA solvables declared by the GF OAA interface is described in "GF OAA interface".

Typed abstract syntax trees

The standard parsing and linearization functions use untyped abstract syntax trees. There is a facility for generating Java classes which can represent an abstract syntax using typed trees.

Known issues