mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
Add FoodsSwe (fails)
This commit is contained in:
@@ -3,28 +3,33 @@ FoodsBul: онова вино е превъзходно
|
||||
FoodsChi: 那 瓶 酒 是 美 味 的
|
||||
FoodsEng: that wine is delicious
|
||||
FoodsHeb: היין ההוא טעים
|
||||
FoodsSwe: det där vinet är läckert
|
||||
|
||||
Foods: Pred (This Pizza) (Very Boring)
|
||||
FoodsBul: тази пица е много еднообразна
|
||||
FoodsChi: 这 张 比 萨 饼 是 非 常 难 吃 的
|
||||
FoodsEng: this pizza is very boring
|
||||
FoodsHeb: הפיצה הזאת מאוד משעממת
|
||||
FoodsSwe: den här pizzan är mycket tråkig
|
||||
|
||||
Foods: Pred (This Cheese) Fresh
|
||||
FoodsBul: това сирене е свежо
|
||||
FoodsChi: 这 块 奶 酪 是 新 鲜 的
|
||||
FoodsEng: this cheese is fresh
|
||||
FoodsHeb: הגבינה הזאת טריה
|
||||
FoodsSwe: den här osten är färsk
|
||||
|
||||
Foods: Pred (Those Fish) Warm
|
||||
FoodsBul: онези риби са горещи
|
||||
FoodsChi: 那 几 条 鱼 是 温 热 的
|
||||
FoodsEng: those fish are warm
|
||||
FoodsHeb: הדגים ההם חמים
|
||||
FoodsSwe: de där fiskarna är varma
|
||||
|
||||
Foods: Pred (That (Mod Boring (Mod Italian Pizza))) Expensive
|
||||
FoodsBul: онази еднообразна италианска пица е скъпа
|
||||
FoodsChi: 那 张 又 难 吃 又 意 大 利 式 的 比 萨 饼 是 昂 贵 的
|
||||
FoodsEng: that boring Italian pizza is expensive
|
||||
FoodsHeb: הפיצה האיטלקית המשעממת ההיא יקרה
|
||||
FoodsSwe: den där tråkiga italienska pizzan är dyr
|
||||
|
||||
|
||||
29
testsuite/lpgf/FoodsI.gf
Normal file
29
testsuite/lpgf/FoodsI.gf
Normal file
@@ -0,0 +1,29 @@
|
||||
-- (c) 2009 Aarne Ranta under LGPL
|
||||
|
||||
incomplete concrete FoodsI of Foods =
|
||||
open Syntax, LexFoods in {
|
||||
lincat
|
||||
Comment = Utt ;
|
||||
Item = NP ;
|
||||
Kind = CN ;
|
||||
Quality = AP ;
|
||||
lin
|
||||
Pred item quality = mkUtt (mkCl item quality) ;
|
||||
This kind = mkNP this_Det kind ;
|
||||
That kind = mkNP that_Det kind ;
|
||||
These kind = mkNP these_Det kind ;
|
||||
Those kind = mkNP those_Det kind ;
|
||||
Mod quality kind = mkCN quality kind ;
|
||||
Very quality = mkAP very_AdA quality ;
|
||||
|
||||
Wine = mkCN wine_N ;
|
||||
Pizza = mkCN pizza_N ;
|
||||
Cheese = mkCN cheese_N ;
|
||||
Fish = mkCN fish_N ;
|
||||
Fresh = mkAP fresh_A ;
|
||||
Warm = mkAP warm_A ;
|
||||
Italian = mkAP italian_A ;
|
||||
Expensive = mkAP expensive_A ;
|
||||
Delicious = mkAP delicious_A ;
|
||||
Boring = mkAP boring_A ;
|
||||
}
|
||||
6
testsuite/lpgf/FoodsSwe.gf
Normal file
6
testsuite/lpgf/FoodsSwe.gf
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
-- (c) 2009 Aarne Ranta under LGPL
|
||||
|
||||
concrete FoodsSwe of Foods = FoodsI with
|
||||
(Syntax = SyntaxSwe),
|
||||
(LexFoods = LexFoodsSwe) ** {flags language = sv_SE;} ;
|
||||
15
testsuite/lpgf/LexFoods.gf
Normal file
15
testsuite/lpgf/LexFoods.gf
Normal file
@@ -0,0 +1,15 @@
|
||||
-- (c) 2009 Aarne Ranta under LGPL
|
||||
|
||||
interface LexFoods = open Syntax in {
|
||||
oper
|
||||
wine_N : N ;
|
||||
pizza_N : N ;
|
||||
cheese_N : N ;
|
||||
fish_N : N ;
|
||||
fresh_A : A ;
|
||||
warm_A : A ;
|
||||
italian_A : A ;
|
||||
expensive_A : A ;
|
||||
delicious_A : A ;
|
||||
boring_A : A ;
|
||||
}
|
||||
17
testsuite/lpgf/LexFoodsSwe.gf
Normal file
17
testsuite/lpgf/LexFoodsSwe.gf
Normal file
@@ -0,0 +1,17 @@
|
||||
-- (c) 2009 Aarne Ranta under LGPL
|
||||
--# -coding=latin1
|
||||
|
||||
instance LexFoodsSwe of LexFoods =
|
||||
open SyntaxSwe, ParadigmsSwe in {
|
||||
oper
|
||||
wine_N = mkN "vin" "vinet" "viner" "vinerna" ;
|
||||
pizza_N = mkN "pizza" ;
|
||||
cheese_N = mkN "ost" ;
|
||||
fish_N = mkN "fisk" ;
|
||||
fresh_A = mkA "färsk" ;
|
||||
warm_A = mkA "varm" ;
|
||||
italian_A = mkA "italiensk" ;
|
||||
expensive_A = mkA "dyr" ;
|
||||
delicious_A = mkA "läcker" ;
|
||||
boring_A = mkA "tråkig" ;
|
||||
}
|
||||
@@ -12,7 +12,7 @@ TREEBANK="$ABSNAME.treebank"
|
||||
|
||||
: > $TREEBANK
|
||||
while read tree; do
|
||||
echo "linearize -treebank $tree | write_file -file=$TREEBANK -append" | gf --run --quiet $ABSNAME*.gf
|
||||
echo "linearize -treebank $tree | write_file -file=$TREEBANK -append" | gf --run $ABSNAME*.gf > /dev/null
|
||||
echo "" >> $TREEBANK
|
||||
done < $TREES
|
||||
|
||||
|
||||
Reference in New Issue
Block a user