From c12ee01480ffd2d9acf864e95967fe3cace1885a Mon Sep 17 00:00:00 2001 From: aarne Date: Fri, 10 Feb 2006 08:02:34 +0000 Subject: [PATCH] seminar slides --- lib/resource-1.0/doc/gslt-sem-2006.html | 105 +----------------------- lib/resource-1.0/lang.gfprob | 5 ++ 2 files changed, 8 insertions(+), 102 deletions(-) diff --git a/lib/resource-1.0/doc/gslt-sem-2006.html b/lib/resource-1.0/doc/gslt-sem-2006.html index 70fd31165..e1fefb366 100644 --- a/lib/resource-1.0/doc/gslt-sem-2006.html +++ b/lib/resource-1.0/doc/gslt-sem-2006.html @@ -7,67 +7,12 @@

Grammars as Software Libraries

Author: Aarne Ranta <aarne (at) cs.chalmers.se>
-Last update: Thu Feb 9 11:57:20 2006 +Last update: Thu Feb 9 13:03:45 2006
-

-
-

- - -

-
-

-

Setting

Current funding @@ -101,7 +46,6 @@ Main applications

-

People

Staff contributions to grammar libraries: @@ -154,7 +98,6 @@ Resource library patches and suggestions from the WebALT staff:

-

Software Libraries

The main device of division of labour in programming. @@ -180,7 +123,6 @@ Practical advantages:

-

Abstraction

Libraries promote abstraction: you abstract away from details. @@ -199,7 +141,6 @@ if it just has a support for functions or macros.

-

Grammars as libraries?

Example: we want to create a GUI (Graphical User Interface) button @@ -249,7 +190,6 @@ The library has an API (Application Programmer's Interface) with:

-

A slightly more advanced example

This is what you often see as a feedback from a program: @@ -277,7 +217,6 @@ The code that should be written is of course

-

Problems with the more advanced example

The same as with "Yes": you have to know the words "you", @@ -304,7 +243,6 @@ of "message":

-

More problems with the advanced example

You also have to know the case required by the verb "have" @@ -328,7 +266,6 @@ address the user:

-

A library-based solution

In analogy with the "Yes" case, you write @@ -350,7 +287,6 @@ It is time to move from canned text to a grammar.

-

An improved library-based solution

You may want to write @@ -378,7 +314,6 @@ For this purpose, you need a library with the API

-

The ultimate solution?

The library API for language will certainly grow big and become @@ -423,7 +358,6 @@ Thus some amount of interaction is needed.

-

The components of a grammar library

The library has construction functions like @@ -451,7 +385,6 @@ knowledge by application programmers!

-

Implementing a grammar library in GF

GF = Grammatical Framework @@ -495,7 +428,6 @@ Simplest possible example:

-

Linearization and parsing

The realizatin function is, for each language, implemented by @@ -517,7 +449,6 @@ The GF formalism moreover has the property of reversibility:

-

Applying GF

multilingual grammar = abstract syntax + concrete syntaxes @@ -534,7 +465,6 @@ Examples of the idea:

-

Domain, ontology, idiom

An abstract syntax has other names: @@ -566,7 +496,6 @@ Problem: the expertise of both a linguist and a domain expert are required.

-

Example domain

Arithmetic of natural numbers: abstract syntax @@ -589,7 +518,6 @@ Arithmetic of natural numbers: abstract syntax

-

Translation system

We can translate using the abstract syntax as interlingua: @@ -611,7 +539,6 @@ But is it really so simple?

-

Difficulties with concrete syntax

The previous multilingual grammar breaks these rules in many situations: @@ -628,7 +555,6 @@ All these sentences are grammatically incorrect.

-

Solving the difficulties

GF can express the linguistic rules that are needed to @@ -659,7 +585,6 @@ Linguistic knowledge dominates in the size of this grammar.

-

Application grammars vs. resource grammars

Application grammar ("semantic grammar") @@ -682,7 +607,6 @@ Resource grammar ("syntactic grammar")

-

GF as programming language

The expressive power is between TAG and HPSG. @@ -702,7 +626,6 @@ We have built a module system that can hide details.

-

Concrete syntax using library

Assume the following API @@ -733,7 +656,6 @@ Notice: the choice of adjective is domain expert knowledge.

-

Design questions for the grammar library

What should there be in the library? @@ -765,7 +687,6 @@ hence cannot use existing proprietary resources.

-

Design decisions

Coverage, for each language: @@ -798,7 +719,6 @@ Presentation:

-

Design decisions, cont'd

Where do we get the data from? @@ -818,7 +738,6 @@ The resource grammar library is entirely open-source free software

-

Success criteria and evaluation

Grammatical correctness of everything generated. @@ -838,7 +757,6 @@ Tools for regression testing (treebank generation and comparison)

-

These are not our success criteria

Language coverage: @@ -873,7 +791,6 @@ Linguistic innovation in syntax:

-

Where is semantics?

Application grammars use domain-specific @@ -897,7 +814,6 @@ for all for the whole language.

-

Representations in different APIs

Grammar composition: any grammar can serve as resource to another one. @@ -935,7 +851,6 @@ In Lang (ground level resource API)

-

Languages

The current GF Resource Project covers ten languages: @@ -962,7 +877,6 @@ In addition, we have parts (morphology) of Arabic, Estonian, Latin, and Urdu

-

Library structure 1: language-independent API

@@ -979,7 +893,6 @@ Cf. "matrix" in BLARK, LinGo

-

Library structure 2: language-dependent APIs