mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
documenting math
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<P ALIGN="center"><CENTER><H1> Adjectives and adjectival phrases</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Thu Jan 26 15:05:55 2006
|
||||
Last update: Tue Jan 31 18:15:43 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<P ALIGN="center"><CENTER><H1> Adverbs and adverbial phrases</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Thu Jan 26 15:05:55 2006
|
||||
Last update: Tue Jan 31 18:15:44 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<P ALIGN="center"><CENTER><H1> The category system</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Thu Jan 26 15:05:55 2006
|
||||
Last update: Tue Jan 31 18:15:44 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<P ALIGN="center"><CENTER><H1> Coordination</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Thu Jan 26 15:05:55 2006
|
||||
Last update: Tue Jan 31 18:15:44 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
153
lib/resource-1.0/doc/gfdoc/Demonstrative.html
Normal file
153
lib/resource-1.0/doc/gfdoc/Demonstrative.html
Normal file
@@ -0,0 +1,153 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<META NAME="generator" CONTENT="http://txt2tags.sf.net">
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<FONT SIZE="4">
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<P>
|
||||
Author:
|
||||
Last update: Tue Jan 31 18:15:47 2006
|
||||
</P>
|
||||
<P>
|
||||
Produced by
|
||||
gfdoc - a rudimentary GF document generator.
|
||||
(c) Aarne Ranta (<A HREF="mailto:aarne@cs.chalmers.se">aarne@cs.chalmers.se</A>) 2002 under GNU GPL.
|
||||
</P>
|
||||
<P>
|
||||
==
|
||||
</P>
|
||||
<PRE>
|
||||
abstract Demonstrative = Cat ** {
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
Naming convention: <CODE>M</CODE> prepended to 'unimodal' names.
|
||||
Exceptions: lexical units, those without unimodal counterparts.
|
||||
</P>
|
||||
<PRE>
|
||||
cat
|
||||
|
||||
MS ; -- multimodal sentence or question
|
||||
MQS ; -- multimodal wh question
|
||||
MImp ; -- multimodal imperative
|
||||
MVP ; -- multimodal verb phrase
|
||||
MComp ; -- multimodal complement to copula (MAP, MNP, MAdv)
|
||||
MAP ; -- multimodal adjectival phrase
|
||||
MNP ; -- multimodal (demonstrative) noun phrase
|
||||
MAdv ; -- multimodal (demonstrative) adverbial
|
||||
|
||||
Point ; -- pointing gesture
|
||||
|
||||
fun
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
A pointing gesture is constructed from a string.
|
||||
</P>
|
||||
<PRE>
|
||||
MkPoint : String -> Point ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
Construction of sentences, questions, and imperatives.
|
||||
</P>
|
||||
<PRE>
|
||||
MPredVP : MNP -> MVP -> MS ; -- he flies here
|
||||
MQPredVP : MNP -> MVP -> MQS ; -- does he fly here
|
||||
|
||||
MQuestVP : IP -> MVP -> MQS ; -- who flies here
|
||||
|
||||
MImpVP : MVP -> MImp ; -- fly here!
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
Construction of verb phrases from verb + complements.
|
||||
</P>
|
||||
<PRE>
|
||||
MUseV : V -> MVP ; -- flies (here)
|
||||
MComplV2 : V2 -> MNP -> MVP ; -- takes this (here)
|
||||
MComplVV : VV -> MVP -> MVP ; -- wants to fly (here)
|
||||
|
||||
MUseComp : MComp -> MVP ; -- is here ; is bigger than this
|
||||
|
||||
MCompAP : MAP -> MComp ; -- bigger than this
|
||||
MCompNP : MNP -> MComp ; -- the price of this
|
||||
MCompAdv : MAdv -> MComp ; -- here
|
||||
|
||||
MPositA : A -> MAP ; -- big
|
||||
MComparA : A -> MNP -> MAP ; -- bigger than this
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
Adverbial modification of a verb phrase.
|
||||
</P>
|
||||
<PRE>
|
||||
MAdvVP : MVP -> MAdv -> MVP ; -- fly here
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
Demonstrative pronouns as NPs and determiners.
|
||||
</P>
|
||||
<PRE>
|
||||
this_MNP : Point -> MNP ; -- this
|
||||
that_MNP : Point -> MNP ; -- that
|
||||
thisDet_MNP : CN -> Point -> MNP ; -- this car
|
||||
thatDet_MNP : CN -> Point -> MNP ; -- that car
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
Demonstrative adverbs.
|
||||
</P>
|
||||
<PRE>
|
||||
here_MAdv : Point -> MAdv ; -- here
|
||||
here7from_MAdv : Point -> MAdv ; -- from here
|
||||
here7to_MAdv : Point -> MAdv ; -- to here
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
Building an adverb as prepositional phrase.
|
||||
</P>
|
||||
<PRE>
|
||||
MPrepNP : Prep -> MNP -> MAdv ; -- in this car
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
Using ordinary categories.
|
||||
Mounting nondemonstrative expressions.
|
||||
</P>
|
||||
<PRE>
|
||||
DemNP : NP -> MNP ;
|
||||
DemAdv : Adv -> MAdv ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
Top-level phrases.
|
||||
</P>
|
||||
<PRE>
|
||||
PhrMS : Pol -> MS -> Phr ;
|
||||
PhrMS : Pol -> MS -> Phr ;
|
||||
PhrMQS : Pol -> MQS -> Phr ;
|
||||
PhrMImp : Pol -> MImp -> Phr ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
For testing and example-based grammar writing.
|
||||
</P>
|
||||
<PRE>
|
||||
point1, point2 : Point ;
|
||||
|
||||
}
|
||||
</PRE>
|
||||
<P></P>
|
||||
|
||||
<!-- html code generated by txt2tags 2.0 (http://txt2tags.sf.net) -->
|
||||
<!-- cmdline: txt2tags -thtml -\-toc multimodal/Demonstrative.txt -->
|
||||
</BODY></HTML>
|
||||
@@ -7,7 +7,7 @@
|
||||
<P ALIGN="center"><CENTER><H1> The Main Module of the Resource Grammar</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Thu Jan 26 15:05:56 2006
|
||||
Last update: Tue Jan 31 18:15:44 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
77
lib/resource-1.0/doc/gfdoc/Mathematical.html
Normal file
77
lib/resource-1.0/doc/gfdoc/Mathematical.html
Normal file
@@ -0,0 +1,77 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<META NAME="generator" CONTENT="http://txt2tags.sf.net">
|
||||
<TITLE> The Mathematics API to the Resource Grammar</TITLE>
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> The Mathematics API to the Resource Grammar</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Tue Jan 31 18:15:47 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<UL>
|
||||
<LI><A HREF="#toc1">The Mathematics API to the Resource Grammar</A>
|
||||
</UL>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<P>
|
||||
Produced by
|
||||
gfdoc - a rudimentary GF document generator.
|
||||
(c) Aarne Ranta (<A HREF="mailto:aarne@cs.chalmers.se">aarne@cs.chalmers.se</A>) 2002 under GNU GPL.
|
||||
</P>
|
||||
<A NAME="toc1"></A>
|
||||
<H1>The Mathematics API to the Resource Grammar</H1>
|
||||
<P>
|
||||
This grammar is a collection of the different modules.
|
||||
It differs from <CODE>Lang</CODE> in two main ways:
|
||||
</P>
|
||||
<UL>
|
||||
<LI>the combinations in Noun, Verb, Adjective, Adverb, Sentence are not included
|
||||
<LI>instead, Symbol and Predication are used
|
||||
</UL>
|
||||
|
||||
<P>
|
||||
In practice, the most important difference is that only present-tense sentences
|
||||
are included, and that symbolic expressions are recognized as NPs.
|
||||
</P>
|
||||
<PRE>
|
||||
abstract Mathematical =
|
||||
Noun - [ComplN2], --- to avoid ambiguity
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
Verb,
|
||||
Adjective,
|
||||
Adverb,
|
||||
</P>
|
||||
<PRE>
|
||||
Numeral,
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
Sentence,
|
||||
</P>
|
||||
<PRE>
|
||||
Question,
|
||||
Relative,
|
||||
Conjunction,
|
||||
Phrase,
|
||||
Structural,
|
||||
|
||||
Symbol,
|
||||
Predication,
|
||||
|
||||
Lexicon
|
||||
** {} ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
|
||||
<!-- html code generated by txt2tags 2.0 (http://txt2tags.sf.net) -->
|
||||
<!-- cmdline: txt2tags -thtml -\-toc mathematical/Mathematical.txt -->
|
||||
</BODY></HTML>
|
||||
59
lib/resource-1.0/doc/gfdoc/Multimodal.html
Normal file
59
lib/resource-1.0/doc/gfdoc/Multimodal.html
Normal file
@@ -0,0 +1,59 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<META NAME="generator" CONTENT="http://txt2tags.sf.net">
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<FONT SIZE="4">
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<P>
|
||||
Author:
|
||||
Last update: Tue Jan 31 18:15:47 2006
|
||||
</P>
|
||||
<P>
|
||||
Produced by
|
||||
gfdoc - a rudimentary GF document generator.
|
||||
(c) Aarne Ranta (<A HREF="mailto:aarne@cs.chalmers.se">aarne@cs.chalmers.se</A>) 2002 under GNU GPL.
|
||||
</P>
|
||||
<P>
|
||||
==
|
||||
</P>
|
||||
<PRE>
|
||||
abstract Multimodal =
|
||||
Noun,
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
Verb,
|
||||
</P>
|
||||
<PRE>
|
||||
Adjective,
|
||||
Adverb,
|
||||
Numeral,
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
Sentence,
|
||||
Question,
|
||||
Relative,
|
||||
Conjunction,
|
||||
Phrase,
|
||||
Tensed,
|
||||
</P>
|
||||
<PRE>
|
||||
Structural,
|
||||
Demonstrative,
|
||||
Lexicon
|
||||
** {} ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
|
||||
<!-- html code generated by txt2tags 2.0 (http://txt2tags.sf.net) -->
|
||||
<!-- cmdline: txt2tags -thtml -\-toc multimodal/Multimodal.txt -->
|
||||
</BODY></HTML>
|
||||
@@ -7,7 +7,7 @@
|
||||
<P ALIGN="center"><CENTER><H1> The construction of nouns, noun phrases, and determiners</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Thu Jan 26 15:05:56 2006
|
||||
Last update: Tue Jan 31 18:15:45 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<P ALIGN="center"><CENTER><H1> Numerals</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Thu Jan 26 15:05:56 2006
|
||||
Last update: Tue Jan 31 18:15:45 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
<P></P>
|
||||
<P>
|
||||
Author:
|
||||
Last update: Thu Jan 26 15:05:57 2006
|
||||
Last update: Tue Jan 31 18:15:46 2006
|
||||
</P>
|
||||
<P>
|
||||
Produced by
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
<P></P>
|
||||
<P>
|
||||
Author:
|
||||
Last update: Thu Jan 26 15:05:58 2006
|
||||
Last update: Tue Jan 31 18:15:46 2006
|
||||
</P>
|
||||
<P>
|
||||
Produced by
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
<P></P>
|
||||
<P>
|
||||
Author:
|
||||
Last update: Thu Jan 26 15:05:58 2006
|
||||
Last update: Tue Jan 31 18:15:46 2006
|
||||
</P>
|
||||
<P>
|
||||
Produced by
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
<P></P>
|
||||
<P>
|
||||
Author:
|
||||
Last update: Thu Jan 26 15:05:58 2006
|
||||
Last update: Tue Jan 31 18:15:46 2006
|
||||
</P>
|
||||
<P>
|
||||
Produced by
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
<P></P>
|
||||
<P>
|
||||
Author:
|
||||
Last update: Thu Jan 26 15:05:58 2006
|
||||
Last update: Tue Jan 31 18:15:47 2006
|
||||
</P>
|
||||
<P>
|
||||
Produced by
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<P ALIGN="center"><CENTER><H1> Phrases and utterances</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Thu Jan 26 15:05:56 2006
|
||||
Last update: Tue Jan 31 18:15:45 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
113
lib/resource-1.0/doc/gfdoc/Predication.html
Normal file
113
lib/resource-1.0/doc/gfdoc/Predication.html
Normal file
@@ -0,0 +1,113 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<META NAME="generator" CONTENT="http://txt2tags.sf.net">
|
||||
<TITLE> A Small Predication Library</TITLE>
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> A Small Predication Library</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Tue Jan 31 18:15:47 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<UL>
|
||||
<LI><A HREF="#toc1">A Small Predication Library</A>
|
||||
<UL>
|
||||
<LI><A HREF="#toc2">The category of atomic sentences</A>
|
||||
<LI><A HREF="#toc3">Predication patterns.</A>
|
||||
<LI><A HREF="#toc4">Individual-valued function applications</A>
|
||||
<LI><A HREF="#toc5">Families of types</A>
|
||||
<LI><A HREF="#toc6">Type constructor</A>
|
||||
</UL>
|
||||
</UL>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<P>
|
||||
Produced by
|
||||
gfdoc - a rudimentary GF document generator.
|
||||
(c) Aarne Ranta (<A HREF="mailto:aarne@cs.chalmers.se">aarne@cs.chalmers.se</A>) 2002 under GNU GPL.
|
||||
</P>
|
||||
<A NAME="toc1"></A>
|
||||
<H1>A Small Predication Library</H1>
|
||||
<P>
|
||||
(c) Aarne Ranta 2003-2006 under Gnu GPL.
|
||||
</P>
|
||||
<P>
|
||||
This library is a derived library built on the language-independent Ground
|
||||
API of resource grammars.
|
||||
</P>
|
||||
<PRE>
|
||||
abstract Predication = Cat ** {
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc2"></A>
|
||||
<H2>The category of atomic sentences</H2>
|
||||
<P>
|
||||
These sentences have both a positive and a negative form
|
||||
</P>
|
||||
<PRE>
|
||||
cat
|
||||
AS ;
|
||||
|
||||
fun
|
||||
PosAS : AS -> S ;
|
||||
NegAS : AS -> S ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc3"></A>
|
||||
<H2>Predication patterns.</H2>
|
||||
<PRE>
|
||||
predV : V -> NP -> AS ; -- one-place verb: "x converges"
|
||||
predV2 : V2 -> NP -> NP -> AS ; -- two-place verb: "x intersects y"
|
||||
predV3 : V3 -> NP->NP-> NP -> AS; -- three-place verb: "x intersects y at z"
|
||||
predVColl : V -> NP -> NP -> AS ; -- collective verb: "x and y intersect"
|
||||
predA : A -> NP -> AS ; -- one-place adjective: "x is even"
|
||||
predA2 : A2 -> NP -> NP -> AS ; -- two-place adj: "x is divisible by y"
|
||||
predAComp : A -> NP -> NP -> AS; -- comparative adj: "x is greater than y"
|
||||
predAColl : A -> NP -> NP -> AS ; -- collective adj: "x and y are parallel"
|
||||
predN : N -> NP -> AS ; -- one-place noun: "x is a point"
|
||||
predN2 : N2 -> NP -> NP -> AS ; -- two-place noun: "x is a divisor of y"
|
||||
predNColl : N -> NP -> NP -> AS ; -- collective noun: "x and y are duals"
|
||||
predAdv : Adv -> NP -> AS ; -- adverb: "x is inside"
|
||||
predPrep : Prep -> NP -> NP -> AS ; -- preposition: "x is outside y"
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc4"></A>
|
||||
<H2>Individual-valued function applications</H2>
|
||||
<PRE>
|
||||
appN2 : N2 -> NP -> NP ; -- one-place function: "the successor of x"
|
||||
appN3 : N3 -> NP -> NP -> NP ; -- two-place function: "the distance from x to y"
|
||||
appColl : N2 -> NP -> NP -> NP ; -- collective function: "the sum of x and y"
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc5"></A>
|
||||
<H2>Families of types</H2>
|
||||
<P>
|
||||
These are expressed by relational nouns applied to arguments.
|
||||
</P>
|
||||
<PRE>
|
||||
famN2 : N2 -> NP -> CN ; -- one-place family: "divisor of x"
|
||||
famN3 : N3 -> NP -> NP -> CN ; -- two-place family: "path from x to y"
|
||||
famColl : N2 -> NP -> NP -> CN ; -- collective family: "path between x and y"
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc6"></A>
|
||||
<H2>Type constructor</H2>
|
||||
<P>
|
||||
This is similar to a family except that the argument is a type.
|
||||
</P>
|
||||
<PRE>
|
||||
typN2 : N2 -> CN -> CN ; -- constructed type: "list of integers"
|
||||
|
||||
}
|
||||
</PRE>
|
||||
<P></P>
|
||||
|
||||
<!-- html code generated by txt2tags 2.0 (http://txt2tags.sf.net) -->
|
||||
<!-- cmdline: txt2tags -thtml -\-toc mathematical/Predication.txt -->
|
||||
</BODY></HTML>
|
||||
@@ -7,7 +7,7 @@
|
||||
<P ALIGN="center"><CENTER><H1> Questions and interrogative pronouns</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Thu Jan 26 15:05:57 2006
|
||||
Last update: Tue Jan 31 18:15:45 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<P ALIGN="center"><CENTER><H1> Relative clauses and pronouns</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Thu Jan 26 15:05:57 2006
|
||||
Last update: Tue Jan 31 18:15:45 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<P ALIGN="center"><CENTER><H1> Sentences, clauses, imperatives, and sentential complements</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Thu Jan 26 15:05:57 2006
|
||||
Last update: Tue Jan 31 18:15:45 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<P ALIGN="center"><CENTER><H1> GF Resource Grammar API for Structural Words</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Thu Jan 26 15:05:57 2006
|
||||
Last update: Tue Jan 31 18:15:45 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<P ALIGN="center"><CENTER><H1> Symbolic expressions</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Thu Jan 26 15:05:56 2006
|
||||
Last update: Tue Jan 31 18:15:47 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
@@ -16,7 +16,7 @@ Last update: Thu Jan 26 15:05:56 2006
|
||||
<UL>
|
||||
<LI><A HREF="#toc1">Symbolic expressions</A>
|
||||
<UL>
|
||||
<LI><A HREF="#toc2">Noun phrases with symbols</A>
|
||||
<LI><A HREF="#toc2">Noun phrases with symbols and numbers</A>
|
||||
<LI><A HREF="#toc3">Symbol lists</A>
|
||||
</UL>
|
||||
</UL>
|
||||
@@ -36,18 +36,19 @@ gfdoc - a rudimentary GF document generator.
|
||||
grammar <A HREF="Lang.html">Lang</A>.
|
||||
</P>
|
||||
<PRE>
|
||||
abstract Math = Cat ** {
|
||||
abstract Symbol = Cat ** {
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc2"></A>
|
||||
<H2>Noun phrases with symbols</H2>
|
||||
<H2>Noun phrases with symbols and numbers</H2>
|
||||
<PRE>
|
||||
fun
|
||||
|
||||
SymbPN : Symb -> PN ; -- x
|
||||
IntPN : Int -> PN ; -- 27
|
||||
CNIntNP : CN -> Int -> NP ; -- level 53
|
||||
CNSymbNP : Det -> CN -> [Symb] -> NP ; -- (the) (2) numbers x and y
|
||||
SymbPN : Symb -> PN ; -- x
|
||||
IntPN : Int -> PN ; -- 27
|
||||
FloatPN : Float -> PN ; -- 3.14159
|
||||
CNIntNP : CN -> Int -> NP ; -- level 53
|
||||
CNSymbNP : Det -> CN -> [Symb] -> NP ; -- (the) (2) numbers x and y
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc3"></A>
|
||||
@@ -70,5 +71,5 @@ This produces <I>x, y and z</I>, in English.
|
||||
<P></P>
|
||||
|
||||
<!-- html code generated by txt2tags 2.0 (http://txt2tags.sf.net) -->
|
||||
<!-- cmdline: txt2tags -thtml -\-toc abstract/Math.txt -->
|
||||
<!-- cmdline: txt2tags -thtml -\-toc mathematical/Symbol.txt -->
|
||||
</BODY></HTML>
|
||||
@@ -7,7 +7,7 @@
|
||||
<P ALIGN="center"><CENTER><H1> Tense, Polarity, and Anteriority</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Thu Jan 26 15:05:57 2006
|
||||
Last update: Tue Jan 31 18:15:46 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -1,72 +0,0 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<META NAME="generator" CONTENT="http://txt2tags.sf.net">
|
||||
<TITLE> Tensed forms of sentences, questions, and relative clauses</TITLE>
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Tensed forms of sentences, questions, and relative clauses</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Wed Jan 25 10:50:14 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<UL>
|
||||
<LI><A HREF="#toc1">Tensed forms of sentences, questions, and relative clauses</A>
|
||||
</UL>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<P>
|
||||
Produced by
|
||||
gfdoc - a rudimentary GF document generator.
|
||||
(c) Aarne Ranta (<A HREF="mailto:aarne@cs.chalmers.se">aarne@cs.chalmers.se</A>) 2002 under GNU GPL.
|
||||
</P>
|
||||
<A NAME="toc1"></A>
|
||||
<H1>Tensed forms of sentences, questions, and relative clauses</H1>
|
||||
<P>
|
||||
This module defines the 2 x 4 x 4 = 16 forms generated by different
|
||||
combinations of tense, polarity, and
|
||||
anteriority, which are defined in <A HREF="Tense.html">Tense</A>.
|
||||
A variant with just the polarity variation is given in
|
||||
<A HREF="Untensed.html">Untensed</A>.
|
||||
</P>
|
||||
<PRE>
|
||||
abstract Tensed = Cat, Tense ** {
|
||||
|
||||
fun
|
||||
UseCl : Tense -> Ant -> Pol -> Cl -> S ;
|
||||
UseQCl : Tense -> Ant -> Pol -> QCl -> QS ;
|
||||
UseRCl : Tense -> Ant -> Pol -> RCl -> RS ;
|
||||
|
||||
}
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
Examples for English <CODE>S</CODE>:
|
||||
</P>
|
||||
<P>
|
||||
Pres Simul Pos ODir : he sleeps
|
||||
Pres Simul Neg ODir : he doesn't sleep
|
||||
Pres Anter Pos ODir : he has slept
|
||||
Pres Anter Neg ODir : he hasn't slept
|
||||
Past Simul Pos ODir : he slept
|
||||
Past Simul Neg ODir : he didn't sleep
|
||||
Past Anter Pos ODir : he had slept
|
||||
Past Anter Neg ODir : he hadn't slept
|
||||
Fut Simul Pos ODir : he will sleep
|
||||
Fut Simul Neg ODir : he won't sleep
|
||||
Fut Anter Pos ODir : he will have slept
|
||||
Fut Anter Neg ODir : he won't have slept
|
||||
Cond Simul Pos ODir : he would sleep
|
||||
Cond Simul Neg ODir : he wouldn't sleep
|
||||
Cond Anter Pos ODir : he would have slept
|
||||
Cond Anter Neg ODir : he wouldn't have slept
|
||||
</P>
|
||||
|
||||
<!-- html code generated by txt2tags 2.0 (http://txt2tags.sf.net) -->
|
||||
<!-- cmdline: txt2tags -thtml -\-toc abstract/Tensed.txt -->
|
||||
</BODY></HTML>
|
||||
@@ -1,60 +0,0 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<META NAME="generator" CONTENT="http://txt2tags.sf.net">
|
||||
<TITLE> The Reduced Top Module of the Resource Grammar</TITLE>
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> The Reduced Top Module of the Resource Grammar</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Fri Jan 20 18:01:40 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<UL>
|
||||
<LI><A HREF="#toc1">The Reduced Top Module of the Resource Grammar</A>
|
||||
</UL>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<P>
|
||||
Produced by
|
||||
gfdoc - a rudimentary GF document generator.
|
||||
(c) Aarne Ranta (<A HREF="mailto:aarne@cs.chalmers.se">aarne@cs.chalmers.se</A>) 2002 under GNU GPL.
|
||||
</P>
|
||||
<A NAME="toc1"></A>
|
||||
<H1>The Reduced Top Module of the Resource Grammar</H1>
|
||||
<P>
|
||||
This grammar is just a collection of the different modules,
|
||||
and one that can be imported when one wants to test a reduced version
|
||||
of the grammar. The complete top module is <A HREF="Lang.html">Lang</A>.
|
||||
The main constructs missing are tenses of sentences, numerals, and
|
||||
comprehensive lexicon.
|
||||
</P>
|
||||
<PRE>
|
||||
abstract Test =
|
||||
Noun,
|
||||
Verb,
|
||||
Adjective,
|
||||
Adverb,
|
||||
Sentence,
|
||||
Question,
|
||||
Relative,
|
||||
Conjunction,
|
||||
Phrase,
|
||||
Untensed,
|
||||
-- Tensed,
|
||||
-- Structural,
|
||||
-- Basic,
|
||||
-- Numeral,
|
||||
Lex
|
||||
** {} ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
|
||||
<!-- html code generated by txt2tags 2.0 (http://txt2tags.sf.net) -->
|
||||
<!-- cmdline: txt2tags -thtml -\-toc abstract/Test.txt -->
|
||||
</BODY></HTML>
|
||||
@@ -1,49 +0,0 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<META NAME="generator" CONTENT="http://txt2tags.sf.net">
|
||||
<TITLE> Untensed forms of sentences, questions, and relative clauses</TITLE>
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Untensed forms of sentences, questions, and relative clauses</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Fri Jan 20 18:01:40 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<UL>
|
||||
<LI><A HREF="#toc1">Untensed forms of sentences, questions, and relative clauses</A>
|
||||
</UL>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<P>
|
||||
Produced by
|
||||
gfdoc - a rudimentary GF document generator.
|
||||
(c) Aarne Ranta (<A HREF="mailto:aarne@cs.chalmers.se">aarne@cs.chalmers.se</A>) 2002 under GNU GPL.
|
||||
</P>
|
||||
<A NAME="toc1"></A>
|
||||
<H1>Untensed forms of sentences, questions, and relative clauses</H1>
|
||||
<P>
|
||||
This module defines just positive and negative present tense forms.
|
||||
Am alternative with full variation in polarity, tense, and anteriority is
|
||||
given in <A HREF="Untensed.html">Untensed</A>.
|
||||
</P>
|
||||
<PRE>
|
||||
abstract Untensed = Cat ** {
|
||||
|
||||
fun
|
||||
PosCl, NegCl : Cl -> S ;
|
||||
PosQCl, NegQCl : QCl -> QS ;
|
||||
PosRCl, NegRCl : RCl -> RS ;
|
||||
|
||||
}
|
||||
</PRE>
|
||||
<P></P>
|
||||
|
||||
<!-- html code generated by txt2tags 2.0 (http://txt2tags.sf.net) -->
|
||||
<!-- cmdline: txt2tags -thtml -\-toc abstract/Untensed.txt -->
|
||||
</BODY></HTML>
|
||||
@@ -7,7 +7,7 @@
|
||||
<P ALIGN="center"><CENTER><H1> The construction of verb phrases</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Thu Jan 26 15:05:57 2006
|
||||
Last update: Tue Jan 31 18:15:46 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -63,3 +63,15 @@ The documentation of the individual modules:
|
||||
|
||||
==Special-purpose APIs==
|
||||
|
||||
===Multimodal===
|
||||
|
||||
- [Multimodal gfdoc/Multimodal.html]: main module for multimodal dialogue systems
|
||||
- [Demonstrative gfdoc/Demonstrative.html]: demonstrative noun phrases and adverbs
|
||||
|
||||
|
||||
===Mathematical===
|
||||
|
||||
- [Mathematical gfdoc/Mathematical.html]: main module for mathematical language
|
||||
- [Predication gfdoc/Predication.html]: predication with verbs, adjectives, etc
|
||||
- [Symbol gfdoc/Symbol.html]: symbols and numbers in text
|
||||
|
||||
|
||||
Reference in New Issue
Block a user