forked from GitHub/gf-core
fixed SUMORon according to changes in the resource grammar
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
--# -path=.:romanian:abstract:prelude:common
|
--# -path=.:RGLExt:alltenses
|
||||||
|
|
||||||
concrete BasicRon of Basic = CatRon - [Text] ** open DictLangRon,ResRon, Prelude, ParamBasic,Coordination, ParadigmsRon in{
|
concrete BasicRon of Basic = CatRon - [Text] ** open DictLangRon,ResRon, Prelude, ParamBasic,Coordination, ParadigmsRon in{
|
||||||
lincat
|
lincat
|
||||||
Class = CN ;
|
Class = CN ;
|
||||||
@@ -12,13 +13,14 @@ lincat
|
|||||||
Formula = PolSentence;
|
Formula = PolSentence;
|
||||||
Stmt = StmtS ;
|
Stmt = StmtS ;
|
||||||
[El] = {s1,s2 : NCase => Str ; a : Agr; nForm : NForm};
|
[El] = {s1,s2 : NCase => Str ; a : Agr; nForm : NForm};
|
||||||
[Class] = {s1,s2 : Number => Species => ACase => Str; g : NGender; a : Animacy ; isComp : Bool};
|
[Class] = {s1,s2 : Number => Species => ACase => Str; g : NGender; a : Animacy ; isComp : Bool; needsRefForm : Bool};
|
||||||
|
|
||||||
lin
|
lin
|
||||||
BaseClass = {s1,s2 = \\_,_,_ => "";
|
|
||||||
|
BaseClass = {s1,s2 = \\_,_,_ => ""; needsRefForm = False ;
|
||||||
g = NNeut; a = Inanimate; isComp = False} ;
|
g = NNeut; a = Inanimate; isComp = False} ;
|
||||||
|
|
||||||
ConsClass xs x = consrTable3 Number Species ACase comma xs x ** {g = x.g; a = x.a; isComp = x.isComp} ;
|
ConsClass xs x = consrTable3 Number Species ACase comma xs x ** {g = x.g; a = x.a; needsRefForm = False; isComp = x.isComp} ;
|
||||||
|
|
||||||
|
|
||||||
BaseEl c = {s1,s2 = \\_ => "";
|
BaseEl c = {s1,s2 = \\_ => "";
|
||||||
@@ -48,7 +50,7 @@ el c1 c2 i e = e ;
|
|||||||
|
|
||||||
var c1 c2 i e = let np = UsePN e in
|
var c1 c2 i e = let np = UsePN e in
|
||||||
{s = np.s;
|
{s = np.s;
|
||||||
a = agrP3 (agrGender c1.g Sg) Sg; indForm = np.indForm ;
|
a = agrP3 (agrGender c1.g Sg) Sg; indForm = np.indForm ; isPol = False;
|
||||||
nForm = np.nForm; ss = np.ss; isComp = np.isComp ; isPronoun = False;
|
nForm = np.nForm; ss = np.ss; isComp = np.isComp ; isPronoun = False;
|
||||||
lock_NP = <>};
|
lock_NP = <>};
|
||||||
|
|
||||||
@@ -84,14 +86,14 @@ both c1 c2 = {s = \\c,sp,n => c1.s ! c ! sp ! n ++ "şi" ++ c2.s ! c ! sp ! n;
|
|||||||
g = c2.g; a = case c1.a of
|
g = c2.g; a = case c1.a of
|
||||||
{Inanimate => Inanimate;
|
{Inanimate => Inanimate;
|
||||||
_ => c2.a };
|
_ => c2.a };
|
||||||
isComp = orB c1.isComp c2.isComp; lock_CN = <>};
|
isComp = orB c1.isComp c2.isComp; needsRefForm = False; lock_CN = <>};
|
||||||
|
|
||||||
|
|
||||||
either c1 c2 = {s = \\c,sp,n => c1.s ! c ! sp ! n ++ "sau" ++ c2.s ! c ! sp ! n;
|
either c1 c2 = {s = \\c,sp,n => c1.s ! c ! sp ! n ++ "sau" ++ c2.s ! c ! sp ! n;
|
||||||
g = c2.g; a = case c1.a of
|
g = c2.g; a = case c1.a of
|
||||||
{Inanimate => Inanimate;
|
{Inanimate => Inanimate;
|
||||||
_ => c2.a };
|
_ => c2.a };
|
||||||
isComp = orB c1.isComp c2.isComp; lock_CN = <>};
|
isComp = orB c1.isComp c2.isComp; needsRefForm = False; lock_CN = <>};
|
||||||
|
|
||||||
subClassStm c1 c2 sc = ss (c1. s ! Sg ! Def ! ANomAcc ++ "este" ++ "o" ++ "subclasã" ++ "a" ++ c2.s ! Sg ! Def ! AGenDat) ;
|
subClassStm c1 c2 sc = ss (c1. s ! Sg ! Def ! ANomAcc ++ "este" ++ "o" ++ "subclasã" ++ "a" ++ c2.s ! Sg ! Def ! AGenDat) ;
|
||||||
instStm c i = ss ((i.s ! No).comp ++ "este" ++ "o" ++ "instanþiere" ++ "a" ++ c.s ! Sg ! Def ! AGenDat) ;
|
instStm c i = ss ((i.s ! No).comp ++ "este" ++ "o" ++ "instanþiere" ++ "a" ++ c.s ! Sg ! Def ! AGenDat) ;
|
||||||
@@ -111,6 +113,6 @@ lindef El = \x -> mkNP x ("lui" ++ x) x Sg Masc;
|
|||||||
lindef Class = \x -> {s = \\n,sp,c => case c of
|
lindef Class = \x -> {s = \\n,sp,c => case c of
|
||||||
{AGenDat => "lui" ++ x ;
|
{AGenDat => "lui" ++ x ;
|
||||||
_ => x};
|
_ => x};
|
||||||
g = NMasc; a = Animate; isComp=False; lock_CN =<>};
|
g = NMasc; a = Animate; isComp=False; needsRefForm = False; lock_CN =<>};
|
||||||
|
|
||||||
};
|
};
|
||||||
@@ -36,16 +36,17 @@ sentToNoun ps = heavyNP {s = \\_ => "\"" ++ ps.s ! Indep ! Pos ++ "\"";
|
|||||||
};
|
};
|
||||||
|
|
||||||
ConjCN conj ss = conjunctDistrTable3 Number Species ACase conj ss ** {
|
ConjCN conj ss = conjunctDistrTable3 Number Species ACase conj ss ** {
|
||||||
g = ss.g; a = ss.a; isComp = ss.isComp
|
g = ss.g; a = ss.a; isComp = ss.isComp; needsRefForm = False
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
BaseCN x y ={
|
BaseCN x y ={
|
||||||
s1 = \\n,sp,c => x.s ! n ! sp ! c ;
|
s1 = \\n,sp,c => x.s ! n ! sp ! c ;
|
||||||
s2 = \\n,sp,c => y.s ! n ! sp ! c ;
|
s2 = \\n,sp,c => y.s ! n ! sp ! c ;
|
||||||
g = x.g; a = x.a ; isComp = x.isComp};
|
g = x.g; a = x.a ; isComp = x.isComp;
|
||||||
|
needsRefForm = False};
|
||||||
|
|
||||||
ConsCN xs x = consrTable3 Number Species ACase comma xs x ** {g = x.g; a = x.a; isComp = x.isComp} ;
|
ConsCN xs x = consrTable3 Number Species ACase comma xs x ** {g = x.g; a = x.a; isComp = x.isComp; needsRefForm = False} ;
|
||||||
|
|
||||||
at_Prep = mkPrep "la" Ac True;
|
at_Prep = mkPrep "la" Ac True;
|
||||||
per_Prep = mkPrep "per" Ac True;
|
per_Prep = mkPrep "per" Ac True;
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
--# -path=.:alltenses:
|
||||||
abstract SUMO =
|
abstract SUMO =
|
||||||
Basic,
|
Basic,
|
||||||
Merge,
|
Merge,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
--# -path=.:RGLExt:alltenses
|
--# -path=.:RGLExt:alltenses
|
||||||
-- --# -path=.:RGLExt:../../lib/src/abstract:../../lib/src/romance:../../lib/src/french:../../lib/src/common
|
|
||||||
concrete SUMOFre of SUMO =
|
concrete SUMOFre of SUMO =
|
||||||
MergeFre,
|
MergeFre,
|
||||||
Mid_level_ontologyFre
|
Mid_level_ontologyFre
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
--# -path=.:RGLExt:alltenses
|
--# -path=.:RGLExt:alltenses
|
||||||
-- --# -path=.:RGLExt:../../lib/src/abstract:../../lib/src/romanian:../../lib/src/common
|
|
||||||
concrete SUMORon of SUMO =
|
concrete SUMORon of SUMO =
|
||||||
MergeRon,
|
MergeRon,
|
||||||
Mid_level_ontologyRon
|
Mid_level_ontologyRon
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
--# -path=.:abstract:prelude:german:api:common
|
||||||
concrete GreetingsGer of Greetings = open Prelude in {
|
concrete GreetingsGer of Greetings = open Prelude in {
|
||||||
|
|
||||||
lincat
|
lincat
|
||||||
|
|||||||
@@ -56,4 +56,3 @@ PCitizenship x = mkPhrase (mkUtt (mkAP x.prop)) ;
|
|||||||
PropCit p = p.prop ;
|
PropCit p = p.prop ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ lin
|
|||||||
Belgian = mkA "belge" ;
|
Belgian = mkA "belge" ;
|
||||||
Belgium = mkNP (mkPN "Belgique") ;
|
Belgium = mkNP (mkPN "Belgique") ;
|
||||||
Bulgarian = mkNat "bulgare" "Bulgarie" ;
|
Bulgarian = mkNat "bulgare" "Bulgarie" ;
|
||||||
Catalan = mkNat "cataln" "Catalogne" ;
|
Catalan = mkNat "catalan" "Catalogne" ;
|
||||||
Danish = mkNat "danois" "Danemark" ;
|
Danish = mkNat "danois" "Danemark" ;
|
||||||
Dutch = mkNat "hollandais" "Holland" ;
|
Dutch = mkNat "hollandais" "Holland" ;
|
||||||
English = mkNat "anglais" "Angleterre" ;
|
English = mkNat "anglais" "Angleterre" ;
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
-- (c) 2009 Ramona Enache under LGPL
|
--# -path=.:../../dist/build/rgl/alltenses
|
||||||
|
|
||||||
|
|
||||||
|
-- (c) 2010 Ramona Enache under LGPL
|
||||||
|
|
||||||
concrete WordsRon of Words = SentencesRon ** open
|
concrete WordsRon of Words = SentencesRon ** open
|
||||||
SyntaxRon, ResRon, Prelude,
|
SyntaxRon, ResRon, Prelude,
|
||||||
|
|||||||
Reference in New Issue
Block a user