From 8019e4e97703b2c68f5d3eaf1ca6417a6abba659 Mon Sep 17 00:00:00 2001 From: aarne Date: Wed, 8 Mar 2006 08:09:11 +0000 Subject: [PATCH] clt slides intermediary version --- lib/resource-1.0/doc/clt2006.html | 61 ++++++++++++++++++++++++++++--- lib/resource-1.0/doc/clt2006.txt | 21 ++++++++--- 2 files changed, 71 insertions(+), 11 deletions(-) diff --git a/lib/resource-1.0/doc/clt2006.html b/lib/resource-1.0/doc/clt2006.html index 85bca136f..37bae8b0e 100644 --- a/lib/resource-1.0/doc/clt2006.html +++ b/lib/resource-1.0/doc/clt2006.html @@ -7,7 +7,7 @@

The GF Resource Grammar Library Version 1.0

Author: Aarne Ranta <aarne (at) cs.chalmers.se>
-Last update: Tue Mar 7 21:50:28 2006 +Last update: Wed Mar 8 08:31:08 2006

@@ -117,18 +117,33 @@ Resource grammars have generation perspective, rather than parsing

Division of labour: resource grammars hide linguistic details

+ +

Presentation: "school grammar" concepts, dictionary-like conventions

+
+    bird_N = reg2N "Vogel" "Vögel" masculine
+

API = Application Programmer's Interface

-Documentation: gfdoc +Documentation: gfdoc

+ +

IDE = Interactive Development Environment (forthcoming)

+ +

Example-based grammar writing

@@ -480,6 +495,7 @@ There are also special constructs taking other forms:

     mk2N : (nyckel,nycklar : Str) -> N
+  
     mk1N : (bilarna : Str) -> N
   
     irregV : (dricka, drack, druckit : Str) -> V
@@ -502,7 +518,9 @@ To cover all situations, worst-case paradigms are given. E.g. Swedish
 

     mkN : (apa,apan,apor,aporna : Str) -> N
-    mkA : (liten, litet, lilla, sma, mindre, minst, minsta : Str) -> A
+  
+    mkA : (liten, litet, lilla, små, mindre, minst, minsta : Str) -> A
+  
     mkV : (supa,super,sup,söp,supit,supen : Str) -> V
 

@@ -682,9 +700,6 @@ Try out inflection patterns

-

- -

Syntax editing

We start a demo by @@ -701,23 +716,57 @@ We start a demo by

Efficient parsing via application grammar

+Get rid of discontinuous constituents +

+

+Examples: mathematical/Predication, examples/bronzeage +

+

How to use as library

Specialization through parametrized modules

+The application grammar is implemented with reference to +the resource API +

+

+Individual languages are instantiations +

+

+Example: tram +

+

Compile-time transfer

+Instead of parametrized modules: +

+

+select resource functions differently for different languages +

+

+Example: imperative vs. infinitive in mathematical exercises +

+

A natural division into modules

+Lexicon in language-dependent moduls +

+

+Combination rules in a parametrized module +

+

Example-based grammar writing

+Example: animal +

+

How to implement a new language

diff --git a/lib/resource-1.0/doc/clt2006.txt b/lib/resource-1.0/doc/clt2006.txt index 7a7f82dc2..d6f8cc3de 100644 --- a/lib/resource-1.0/doc/clt2006.txt +++ b/lib/resource-1.0/doc/clt2006.txt @@ -93,14 +93,22 @@ Resource grammars have generation perspective, rather than parsing ===Usability by non-linguists=== Division of labour: resource grammars hide linguistic details +- ``AdjCN : AP -> CN -> CN`` hides agreement, word order,... + Presentation: "school grammar" concepts, dictionary-like conventions - +``` + bird_N = reg2N "Vogel" "Vögel" masculine +``` API = Application Programmer's Interface -Documentation: ``gfdoc`` +Documentation: ``gfdoc`` +- produces html from gf + IDE = Interactive Development Environment (forthcoming) +- library browser and syntax editor for grammar writing + Example-based grammar writing ``` @@ -400,6 +408,7 @@ In Swedish, giving the gender of ``N`` improves a lot There are also special constructs taking other forms: ``` mk2N : (nyckel,nycklar : Str) -> N + mk1N : (bilarna : Str) -> N irregV : (dricka, drack, druckit : Str) -> V @@ -419,7 +428,9 @@ Regular verbs are actually implemented the To cover all situations, worst-case paradigms are given. E.g. Swedish ``` mkN : (apa,apan,apor,aporna : Str) -> N - mkA : (liten, litet, lilla, sma, mindre, minst, minsta : Str) -> A + + mkA : (liten, litet, lilla, små, mindre, minst, minsta : Str) -> A + mkV : (supa,super,sup,söp,supit,supen : Str) -> V ``` @@ -602,7 +613,7 @@ the resource API Individual languages are instantiations -Example: [tram ../../examples/tram/TramI.gfe] +Example: [tram ../../../examples/tram/TramI.gf] #NEW @@ -628,7 +639,7 @@ Combination rules in a parametrized module ===Example-based grammar writing=== -Example: [animal ../../examples/animal/QuestionsI.gfe] +Example: [animal ../../../examples/animal/QuestionsI.gfe] #NEW