diff --git a/lib/resource-1.0/doc/gslt-sem-2006.html b/lib/resource-1.0/doc/gslt-sem-2006.html index 3c7eeb469..70fd31165 100644 --- a/lib/resource-1.0/doc/gslt-sem-2006.html +++ b/lib/resource-1.0/doc/gslt-sem-2006.html @@ -7,12 +7,67 @@

Grammars as Software Libraries

Author: Aarne Ranta <aarne (at) cs.chalmers.se>
-Last update: Wed Feb 8 19:06:27 2006 +Last update: Thu Feb 9 11:57:20 2006
+

+
+

+ + +

+
+

+

Setting

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

+

People

Staff contributions to grammar libraries: @@ -81,11 +137,11 @@ Technology, also:

-Various grammar library contributions from the multilingual Chalmers comminity: +Various grammar library contributions from the multilingual Chalmers community:

@@ -98,6 +154,7 @@ Resource library patches and suggestions from the WebALT staff:

+

Software Libraries

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

+

Abstraction

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

+

Grammars as libraries?

Example: we want to create a GUI (Graphical User Interface) button @@ -190,6 +249,7 @@ 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: @@ -217,6 +277,7 @@ 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", @@ -243,6 +304,7 @@ of "message":

+

More problems with the advanced example

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

+

A library-based solution

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

+

An improved library-based solution

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

+

The ultimate solution?

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

+

The components of a grammar library

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

+

Implementing a grammar library in GF

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

+

Linearization and parsing

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

+

Applying GF

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

+

Domain, ontology, idiom

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

+

Example domain

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

+

Translation system

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

+

Difficulties with concrete syntax

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

+

Solving the difficulties

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

+

Application grammars vs. resource grammars

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

+

GF as programming language

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

+

Concrete syntax using library

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

+

Design questions for the grammar library

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

+

Design decisions

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

+

Design decisions, cont'd

Where do we get the data from? @@ -732,11 +812,13 @@ Where do we get the data from?

-The resource grammar library is entirely open-source free software (under GNU GPL license). +The resource grammar library is entirely open-source free software +(under GNU GPL license).

+

Success criteria and evaluation

Grammatical correctness of everything generated. @@ -751,8 +833,12 @@ Usability as library for non-linguists. Evaluation: tested in third-party projects.

+Tools for regression testing (treebank generation and comparison) +

+

+

These are not our success criteria

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

+

Where is semantics?

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

+

Representations in different APIs

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

+

Languages

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

+

Library structure 1: language-independent API

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

+

Library structure 2: language-dependent APIs