forked from GitHub/gf-core
changed Finnish VP so that the verb is stored as such. This makes compilation and parsing several times faster. TODO: treat passivization correctly; optimize further by only storing the stems.
This commit is contained in:
@@ -30,7 +30,7 @@ lin
|
||||
insertObj
|
||||
(\\_,b,a => infVPGen pol.p v.sc b a vp v.vi)
|
||||
(predSV {s = v.s ;
|
||||
sc = case vp.sc of {
|
||||
sc = case vp.s.sc of {
|
||||
NPCase Nom => v.sc ; -- minun täytyy pestä auto
|
||||
c => c -- minulla täytyy olla auto
|
||||
} ;
|
||||
@@ -96,7 +96,7 @@ lin
|
||||
insertObj (\\_,b,a => infVPGen p.p v.sc b a vp v.vi) (predSV v) ** {c2 = v.c2} ;
|
||||
|
||||
CompS s = {s = \\_ => "että" ++ s.s} ; -- S -> Comp ---- what are these expected to do ? 29/3/2013
|
||||
CompVP ant pol vp = {s = \\a => infVPGen pol.p vp.sc Pos a vp Inf1} ; -- VP -> Comp
|
||||
CompVP ant pol vp = {s = \\a => infVPGen pol.p vp.s.sc Pos a vp Inf1} ; -- VP -> Comp
|
||||
|
||||
|
||||
that_RP = which_RP ;
|
||||
|
||||
@@ -503,7 +503,7 @@ oper
|
||||
|
||||
slashV2VNP : (SVerb1 ** {c2 : Compl ; vi : InfForm}) -> (NP ** {isNeg : Bool}) ->
|
||||
(VP ** {c2 : Compl}) -> (VP ** {c2 : Compl})
|
||||
= \v, np, vp ->
|
||||
= \v, np, vp0 -> let vp = vp2old_vp vp0 ** {c2 = vp0.c2} in
|
||||
insertObjPre False ---- ignoring np.isNeg
|
||||
(\fin,b,a -> np.s ! v.c2.c ++ vp.c2.s ++
|
||||
---- appCompl fin b v.c2 np ++ -- ignoring Acc variation and pre/postposition
|
||||
|
||||
Reference in New Issue
Block a user