1
0
forked from GitHub/gf-rgl

(Kor) Use all fields of VP in EmbedVP + tweak linref for VP

This commit is contained in:
Inari Listenmaa
2020-05-21 14:17:52 +02:00
parent 5153005d51
commit ef364c295f
4 changed files with 5 additions and 4 deletions

View File

@@ -119,5 +119,6 @@ concrete CatKor of Cat = CommonX ** open ResKor, Prelude in {
PN = ResKor.NounPhrase ;
linref
V, V2, V3, VP = linVerb ;
V, V2, V3 = linVerb ;
VP = linVP linVF ;
}

View File

@@ -16,7 +16,7 @@ concrete PhraseKor of Phrase = CatKor ** open Prelude, ResKor in {
UttIP ip = {s = ip.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} ;
UttCard n = {s = n.s ! NK ! Indep} ;
UttAP ap = { s = ap.compar ++ ap.s ! VF Plain Pos} ;

View File

@@ -372,6 +372,6 @@ oper
-- linrefs
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 ;
}

View File

@@ -43,7 +43,7 @@ lin
-- EmbedQS qs = { } ;
-- : VP -> SC ;
EmbedVP vp = {s = vp.s ! VAttr Pos ++ "것이"} ;
EmbedVP vp = {s = linVP (VAttr Pos) vp ++ "것이"} ;
--2 Sentences