forked from GitHub/gf-rgl
(Kor) Use all fields of VP in EmbedVP + tweak linref for VP
This commit is contained in:
@@ -119,5 +119,6 @@ concrete CatKor of Cat = CommonX ** open ResKor, Prelude in {
|
|||||||
PN = ResKor.NounPhrase ;
|
PN = ResKor.NounPhrase ;
|
||||||
|
|
||||||
linref
|
linref
|
||||||
V, V2, V3, VP = linVerb ;
|
V, V2, V3 = linVerb ;
|
||||||
|
VP = linVP linVF ;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ concrete PhraseKor of Phrase = CatKor ** open Prelude, ResKor in {
|
|||||||
UttIP ip = {s = ip.s ! Bare} ;
|
UttIP ip = {s = ip.s ! Bare} ;
|
||||||
|
|
||||||
UttNP np = {s = np.s ! Bare} ;
|
UttNP np = {s = np.s ! Bare} ;
|
||||||
UttVP vp = {s = linVP vp} ;
|
UttVP vp = {s = linVP linVF vp} ;
|
||||||
UttCN cn = {s = cn.rs ++ cn.s ! Bare} ;
|
UttCN cn = {s = cn.rs ++ cn.s ! Bare} ;
|
||||||
UttCard n = {s = n.s ! NK ! Indep} ;
|
UttCard n = {s = n.s ! NK ! Indep} ;
|
||||||
UttAP ap = { s = ap.compar ++ ap.s ! VF Plain Pos} ;
|
UttAP ap = { s = ap.compar ++ ap.s ! VF Plain Pos} ;
|
||||||
|
|||||||
@@ -372,6 +372,6 @@ oper
|
|||||||
-- linrefs
|
-- linrefs
|
||||||
|
|
||||||
linVerb : Verb -> Str = \v -> v.s ! linVF ;
|
linVerb : Verb -> Str = \v -> v.s ! linVF ;
|
||||||
linVP : VerbPhrase -> Str = \vp -> vp.nObj ++ vp.adv ++ vp.s ! linVF ;
|
linVP : VForm -> VerbPhrase -> Str = \vf,vp -> vp.nObj ++ vp.adv ++ vp.s ! vf ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ lin
|
|||||||
-- EmbedQS qs = { } ;
|
-- EmbedQS qs = { } ;
|
||||||
|
|
||||||
-- : VP -> SC ;
|
-- : VP -> SC ;
|
||||||
EmbedVP vp = {s = vp.s ! VAttr Pos ++ "것이"} ;
|
EmbedVP vp = {s = linVP (VAttr Pos) vp ++ "것이"} ;
|
||||||
|
|
||||||
--2 Sentences
|
--2 Sentences
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user