mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-23 18:02:54 -06:00
resource = resource-1.0
This commit is contained in:
56
lib/resource-0.9/doc/Makefile
Normal file
56
lib/resource-0.9/doc/Makefile
Normal file
@@ -0,0 +1,56 @@
|
||||
all: gfdoc htmls gifs
|
||||
|
||||
htmls:
|
||||
htmls gf-resource.html
|
||||
|
||||
gfdoc:
|
||||
gfdoc ../abstract/Categories.gf ; mv ../abstract/Categories.html .
|
||||
gfdoc ../abstract/Rules.gf ; mv ../abstract/Rules.html .
|
||||
gfdoc ../abstract/Verbphrase.gf ; mv ../abstract/Verbphrase.html .
|
||||
gfdoc ../abstract/Clause.gf ; mv ../abstract/Clause.html .
|
||||
gfdoc ../abstract/Structural.gf ; mv ../abstract/Structural.html .
|
||||
gfdoc ../abstract/Basic.gf ; mv ../abstract/Basic.html .
|
||||
gfdoc ../abstract/Time.gf ; mv ../abstract/Time.html .
|
||||
gfdoc ../abstract/Lang.gf ; mv ../abstract/Lang.html .
|
||||
gfdoc ../swedish/ParadigmsSwe.gf ; mv ../swedish/ParadigmsSwe.html .
|
||||
gfdoc ../swedish/VerbsSwe.gf ; mv ../swedish/VerbsSwe.html .
|
||||
gfdoc ../swedish/BasicSwe.gf ; mv ../swedish/BasicSwe.html .
|
||||
gfdoc ../english/ParadigmsEng.gf ; mv ../english/ParadigmsEng.html .
|
||||
gfdoc ../english/VerbsEng.gf ; mv ../english/VerbsEng.html .
|
||||
gfdoc ../english/BasicEng.gf ; mv ../english/BasicEng.html .
|
||||
gfdoc ../french/ParadigmsFre.gf ; mv ../french/ParadigmsFre.html .
|
||||
gfdoc ../french/VerbsFre.gf ; mv ../french/VerbsFre.html .
|
||||
gfdoc ../french/BasicFre.gf ; mv ../french/BasicFre.html .
|
||||
|
||||
gfdoc ../norwegian/ParadigmsNor.gf ; mv ../norwegian/ParadigmsNor.html .
|
||||
gfdoc ../norwegian/VerbsNor.gf ; mv ../norwegian/VerbsNor.html .
|
||||
gfdoc ../norwegian/BasicNor.gf ; mv ../norwegian/BasicNor.html .
|
||||
|
||||
gfdoc ../finnish/ParadigmsFin.gf ; mv ../finnish/ParadigmsFin.html .
|
||||
gfdoc ../finnish/BasicFin.gf ; mv ../finnish/BasicFin.html .
|
||||
|
||||
gfdoc ../italian/ParadigmsIta.gf ; mv ../italian/ParadigmsIta.html .
|
||||
gfdoc ../italian/BasicIta.gf ; mv ../italian/BasicIta.html .
|
||||
gfdoc ../italian/BeschIta.gf ; mv ../italian/BeschIta.html .
|
||||
|
||||
gfdoc ../spanish/ParadigmsSpa.gf ; mv ../spanish/ParadigmsSpa.html .
|
||||
gfdoc ../spanish/BasicSpa.gf ; mv ../spanish/BasicSpa.html .
|
||||
gfdoc ../spanish/BeschSpa.gf ; mv ../spanish/BeschSpa.html .
|
||||
|
||||
gifs: api lang scand low
|
||||
|
||||
api:
|
||||
# echo "pm -printer=graph | wf Resource.dot" | gf ../abstract/Resource.gf
|
||||
dot -Tgif ResourceVP.dot>Resource.gif
|
||||
|
||||
lang:
|
||||
echo "pm -printer=graph | wf Lang.dot" | gf ../abstract/Lang.gf
|
||||
dot -Tgif Lang.dot>Lang.gif
|
||||
|
||||
low:
|
||||
echo "pm -printer=graph | wf Low.dot" | gf ../english/RulesEng.gf
|
||||
dot -Tgif Low.dot >Low.gif
|
||||
|
||||
scand:
|
||||
echo "pm -printer=graph | wf Scand.dot" | gf ../swedish/RulesSwe.gf
|
||||
dot -Tgif Scand.dot >Scand.gif
|
||||
28
lib/resource-0.9/doc/Resource.dot
Normal file
28
lib/resource-0.9/doc/Resource.dot
Normal file
@@ -0,0 +1,28 @@
|
||||
digraph {
|
||||
|
||||
Verbphrase [style = "solid", shape = "ellipse", URL = "Verbphrase.gf"];
|
||||
Clause -> Categories [style = "solid"];
|
||||
|
||||
Resource [style = "solid", shape = "ellipse", URL = "Resource.gf"];
|
||||
Resource -> Rules [style = "solid"];
|
||||
Resource -> Clause [style = "solid"];
|
||||
Resource -> Structural [style = "solid"];
|
||||
|
||||
Clause [style = "solid", shape = "ellipse", URL = "Clause.gf"];
|
||||
Clause -> Categories [style = "solid"];
|
||||
|
||||
Rules [style = "solid", shape = "ellipse", URL = "Rules.gf"];
|
||||
Rules -> Categories [style = "solid"];
|
||||
|
||||
Structural [style = "solid", shape = "ellipse", URL = "Structural.gf"];
|
||||
Structural -> Categories [style = "solid"];
|
||||
Structural -> Numerals [style = "solid"];
|
||||
|
||||
Categories [style = "solid", shape = "ellipse", URL = "Categories.gf"];
|
||||
Categories -> PredefAbs [style = "solid"];
|
||||
|
||||
PredefAbs [style = "solid", shape = "ellipse", URL = "PredefAbs.gf"];
|
||||
|
||||
Numerals [style = "solid", shape = "ellipse", URL = "Numerals.gf"];
|
||||
|
||||
}
|
||||
28
lib/resource-0.9/doc/ResourceVP.dot
Normal file
28
lib/resource-0.9/doc/ResourceVP.dot
Normal file
@@ -0,0 +1,28 @@
|
||||
digraph {
|
||||
|
||||
Verbphrase [style = "solid", shape = "ellipse", URL = "Verbphrase.gf"];
|
||||
Verbphrase -> Categories [style = "solid"];
|
||||
|
||||
Resource [style = "solid", shape = "ellipse", URL = "Resource.gf"];
|
||||
Resource -> Rules [style = "solid"];
|
||||
Resource -> Clause [style = "solid"];
|
||||
Resource -> Structural [style = "solid"];
|
||||
|
||||
Rules [style = "solid", shape = "ellipse", URL = "Rules.gf"];
|
||||
Rules -> Categories [style = "solid"];
|
||||
|
||||
Clause [style = "solid", shape = "ellipse", URL = "Clause.gf"];
|
||||
Clause -> Categories [style = "solid"];
|
||||
|
||||
Structural [style = "solid", shape = "ellipse", URL = "Structural.gf"];
|
||||
Structural -> Categories [style = "solid"];
|
||||
Structural -> Numerals [style = "solid"];
|
||||
|
||||
Categories [style = "solid", shape = "ellipse", URL = "Categories.gf"];
|
||||
Categories -> PredefAbs [style = "solid"];
|
||||
|
||||
PredefAbs [style = "solid", shape = "ellipse", URL = "PredefAbs.gf"];
|
||||
|
||||
Numerals [style = "solid", shape = "ellipse", URL = "Numerals.gf"];
|
||||
|
||||
}
|
||||
29
lib/resource-0.9/doc/ScanMod.dot
Normal file
29
lib/resource-0.9/doc/ScanMod.dot
Normal file
@@ -0,0 +1,29 @@
|
||||
digraph {
|
||||
|
||||
GrammarSwe [style = "solid", shape = "box", color = "green"];
|
||||
GrammarSwe -> GrammarScand [style = "solid"];
|
||||
GrammarSwe -> SyntaxSwe [style = "solid"];
|
||||
|
||||
LexiconSwe [style = "solid", shape = "box", color = "red"];
|
||||
LexiconSwe -> MorphoSwe [style = "solid"];
|
||||
|
||||
GrammarScand [style = "solid", shape = "box"];
|
||||
GrammarScand -> SyntaxScand [style = "solid"];
|
||||
|
||||
SyntaxScand [style = "solid", shape = "ellipse"];
|
||||
SyntaxScand -> TypesScand [style = "solid"];
|
||||
|
||||
SyntaxSwe [style = "solid", shape = "ellipse", color = "yellow"];
|
||||
SyntaxSwe -> SyntaxScand [style = "solid"];
|
||||
SyntaxSwe -> TypesSwe [style = "solid"];
|
||||
SyntaxSwe -> MorphoSwe [style = "solid"];
|
||||
|
||||
MorphoSwe [style = "solid", shape = "ellipse", color="red"];
|
||||
MorphoSwe -> TypesSwe [style = "solid"];
|
||||
|
||||
TypesSwe [style = "solid", shape = "ellipse", color = "yellow"];
|
||||
TypesSwe -> TypesScand [style = "solid"];
|
||||
|
||||
TypesScand [style = "solid", shape = "ellipse"];
|
||||
|
||||
}
|
||||
BIN
lib/resource-0.9/doc/ScanMod.gif
Normal file
BIN
lib/resource-0.9/doc/ScanMod.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
12
lib/resource-0.9/doc/example/Animals.gf
Normal file
12
lib/resource-0.9/doc/example/Animals.gf
Normal file
@@ -0,0 +1,12 @@
|
||||
-- The Question grammar specialized to animals.
|
||||
|
||||
abstract Animals = Questions ** {
|
||||
|
||||
flags startcat=Phrase ;
|
||||
|
||||
fun
|
||||
-- a lexicon of animals and actions among them
|
||||
Dog, Cat, Mouse, Lion, Zebra : Entity ;
|
||||
Chase, Eat, See : Action ;
|
||||
}
|
||||
|
||||
15
lib/resource-0.9/doc/example/AnimalsEng.gf
Normal file
15
lib/resource-0.9/doc/example/AnimalsEng.gf
Normal file
@@ -0,0 +1,15 @@
|
||||
--# -path=.:resource/english:resource/abstract:resource/../prelude
|
||||
|
||||
concrete AnimalsEng of Animals = QuestionsEng **
|
||||
open ResourceEng, ParadigmsEng, VerbsEng in {
|
||||
|
||||
lin
|
||||
Dog = regN "dog" ;
|
||||
Cat = regN "cat" ;
|
||||
Mouse = mk2N "mouse" "mice" ;
|
||||
Lion = regN "lion" ;
|
||||
Zebra = regN "zebra" ;
|
||||
Chase = dirV2 (regV "chase") ;
|
||||
Eat = dirV2 eat_V ;
|
||||
See = dirV2 see_V ;
|
||||
}
|
||||
15
lib/resource-0.9/doc/example/AnimalsFre.gf
Normal file
15
lib/resource-0.9/doc/example/AnimalsFre.gf
Normal file
@@ -0,0 +1,15 @@
|
||||
--# -path=.:resource/french:resource/romance:resource/abstract:resource/../prelude
|
||||
|
||||
concrete AnimalsFre of Animals = QuestionsFre **
|
||||
open ResourceFre, ParadigmsFre, VerbsFre in {
|
||||
|
||||
lin
|
||||
Dog = regN "chien" masculine ;
|
||||
Cat = regN "chat" masculine ;
|
||||
Mouse = regN "souris" feminine ;
|
||||
Lion = regN "lion" masculine ;
|
||||
Zebra = regN "zèbre" masculine ;
|
||||
Chase = dirV2 (regV "chasser") ;
|
||||
Eat = dirV2 (regV "manger") ;
|
||||
See = voir_V2 ;
|
||||
}
|
||||
15
lib/resource-0.9/doc/example/AnimalsSwe.gf
Normal file
15
lib/resource-0.9/doc/example/AnimalsSwe.gf
Normal file
@@ -0,0 +1,15 @@
|
||||
--# -path=.:resource/swedish:resource/scandinavian:resource/abstract:resource/../prelude
|
||||
|
||||
concrete AnimalsSwe of Animals = QuestionsSwe **
|
||||
open ResourceSwe, ParadigmsSwe, VerbsSwe in {
|
||||
|
||||
lin
|
||||
Dog = regN "hund" utrum ;
|
||||
Cat = mk2N "katt" "katter" ;
|
||||
Mouse = mkN "mus" "musen" "möss" "mössen" ;
|
||||
Lion = mk2N "lejon" "lejon" ;
|
||||
Zebra = regN "zebra" utrum ;
|
||||
Chase = dirV2 (regV "jaga") ;
|
||||
Eat = dirV2 äta_V ;
|
||||
See = dirV2 se_V ;
|
||||
}
|
||||
20
lib/resource-0.9/doc/example/HandQuestionsI.gf
Normal file
20
lib/resource-0.9/doc/example/HandQuestionsI.gf
Normal file
@@ -0,0 +1,20 @@
|
||||
--# -path=.:resource/abstract:resource/../prelude
|
||||
|
||||
-- Language-independent question grammar parametrized on Resource.
|
||||
|
||||
incomplete concrete QuestionsI of Questions = open Resource in {
|
||||
lincat
|
||||
Phrase = Phr ;
|
||||
Entity = N ;
|
||||
Action = V2 ;
|
||||
lin
|
||||
Who act obj =
|
||||
QuestPhrase (UseQCl (PosTP TPresent ASimul)
|
||||
(QPredV2 who8one_IP act (IndefNumNP NoNum (UseN obj)))) ;
|
||||
Whom subj act =
|
||||
QuestPhrase (UseQCl (PosTP TPresent ASimul)
|
||||
(IntSlash who8one_IP (SlashV2 (DefOneNP (UseN subj)) act))) ;
|
||||
Answer subj act obj =
|
||||
IndicPhrase (UseCl (PosTP TPresent ASimul)
|
||||
(SPredV2 (DefOneNP (UseN subj)) act (IndefNumNP NoNum (UseN obj)))) ;
|
||||
}
|
||||
10
lib/resource-0.9/doc/example/Questions.gf
Normal file
10
lib/resource-0.9/doc/example/Questions.gf
Normal file
@@ -0,0 +1,10 @@
|
||||
-- Simple questions and answers, in present tense.
|
||||
|
||||
abstract Questions = {
|
||||
cat
|
||||
Phrase ; Entity ; Action ;
|
||||
fun
|
||||
Who : Action -> Entity -> Phrase ; -- who chases X
|
||||
Whom : Entity -> Action -> Phrase ; -- whom does X chase
|
||||
Answer : Entity -> Action -> Entity -> Phrase ; -- X chases Y
|
||||
}
|
||||
2
lib/resource-0.9/doc/example/QuestionsEng.gf
Normal file
2
lib/resource-0.9/doc/example/QuestionsEng.gf
Normal file
@@ -0,0 +1,2 @@
|
||||
concrete QuestionsEng of Questions = QuestionsI with
|
||||
(Resource = ResourceEng) ;
|
||||
2
lib/resource-0.9/doc/example/QuestionsFre.gf
Normal file
2
lib/resource-0.9/doc/example/QuestionsFre.gf
Normal file
@@ -0,0 +1,2 @@
|
||||
concrete QuestionsFre of Questions = QuestionsI with
|
||||
(Resource = ResourceFre) ;
|
||||
19
lib/resource-0.9/doc/example/QuestionsI.gf
Normal file
19
lib/resource-0.9/doc/example/QuestionsI.gf
Normal file
@@ -0,0 +1,19 @@
|
||||
-- File generated by GF from ./QuestionsI.gfe
|
||||
--# -resource=../../english/LangEng.gf
|
||||
|
||||
-- to compile: gf -examples QuestionsI.gfe
|
||||
|
||||
incomplete concrete QuestionsI of Questions = open Resource in {
|
||||
lincat
|
||||
Phrase = Phr ;
|
||||
Entity = N ;
|
||||
Action = V2 ;
|
||||
|
||||
lin
|
||||
Who love_V2 man_N = QuestPhrase (UseQCl (PosTP TPresent ASimul) (QPredV2 who8one_IP love_V2 (IndefNumNP NoNum (UseN man_N)))) ;
|
||||
Whom man_N love_V2 = QuestPhrase (UseQCl (PosTP TPresent ASimul) (IntSlash who8many_IP (SlashV2 (DefOneNP (UseN man_N)) love_V2))) ; -- AMBIGUOUS:
|
||||
-- QuestPhrase (UseQCl (PosTP TPresent ASimul) (IntSlash who8one_IP (SlashV2 (DefOneNP (UseN man_N)) love_V2))) ;
|
||||
|
||||
Answer woman_N love_V2 man_N = IndicPhrase (UseCl (PosTP TPresent ASimul) (SPredV2 (DefOneNP (UseN woman_N)) love_V2 (IndefNumNP NoNum (UseN man_N)))) ;
|
||||
|
||||
}
|
||||
16
lib/resource-0.9/doc/example/QuestionsI.gfe
Normal file
16
lib/resource-0.9/doc/example/QuestionsI.gfe
Normal file
@@ -0,0 +1,16 @@
|
||||
--# -resource=../../english/LangEng.gf
|
||||
|
||||
-- to compile: gf -examples QuestionsI.gfe
|
||||
|
||||
incomplete concrete QuestionsI of Questions = open Resource in {
|
||||
lincat
|
||||
Phrase = Phr ;
|
||||
Entity = N ;
|
||||
Action = V2 ;
|
||||
|
||||
lin
|
||||
Who love_V2 man_N = in Phr "who loves men ?" ;
|
||||
Whom man_N love_V2 = in Phr "whom does the man love ?" ;
|
||||
Answer woman_N love_V2 man_N = in Phr "the woman loves men ." ;
|
||||
|
||||
}
|
||||
2
lib/resource-0.9/doc/example/QuestionsSwe.gf
Normal file
2
lib/resource-0.9/doc/example/QuestionsSwe.gf
Normal file
@@ -0,0 +1,2 @@
|
||||
concrete QuestionsSwe of Questions = QuestionsI with
|
||||
(Resource = ResourceSwe) ;
|
||||
4
lib/resource-0.9/doc/example/mkAnimals.gfs
Normal file
4
lib/resource-0.9/doc/example/mkAnimals.gfs
Normal file
@@ -0,0 +1,4 @@
|
||||
i -ex AnimalsEng.gf ;; s
|
||||
i AnimalsFre.gf ;; s
|
||||
i AnimalsSwe.gf ;; s
|
||||
pm | wf animals.gfcm
|
||||
BIN
lib/resource-0.9/doc/gf-logo.gif
Normal file
BIN
lib/resource-0.9/doc/gf-logo.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
1073
lib/resource-0.9/doc/gf-resource.html
Normal file
1073
lib/resource-0.9/doc/gf-resource.html
Normal file
File diff suppressed because it is too large
Load Diff
1461
lib/resource-0.9/doc/spraakdata2005.html
Normal file
1461
lib/resource-0.9/doc/spraakdata2005.html
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user