diff options
| author | aarne <aarne@cs.chalmers.se> | 2008-10-30 20:38:51 +0000 |
|---|---|---|
| committer | aarne <aarne@cs.chalmers.se> | 2008-10-30 20:38:51 +0000 |
| commit | b49a021608d1e15a17ffd54195aa812dbed2948f (patch) | |
| tree | ada8fb5fad6f41d3df7b9e1fd8fe74089ed90407 /next-lib/src/romance/SentenceRomance.gf | |
| parent | 12338243c5198288ba42276b4d76a783c263e7c1 (diff) | |
refactored romance VP. Now it is possible to parse with Spanish and Catalan; for the rest, some Slash rules still pose a problem. Some clitic and agreement things unfinished. All this in next-lib only; resource 1.4 untouched
Diffstat (limited to 'next-lib/src/romance/SentenceRomance.gf')
| -rw-r--r-- | next-lib/src/romance/SentenceRomance.gf | 36 |
1 files changed, 9 insertions, 27 deletions
diff --git a/next-lib/src/romance/SentenceRomance.gf b/next-lib/src/romance/SentenceRomance.gf index 311c64c34..beb393df8 100644 --- a/next-lib/src/romance/SentenceRomance.gf +++ b/next-lib/src/romance/SentenceRomance.gf @@ -4,7 +4,7 @@ incomplete concrete SentenceRomance of Sentence = flags optimize=all_subs ; lin - PredVP np vp = mkClause (np.s ! Aton Nom) np.hasClit np.a vp ; + PredVP np vp = mkClause (np.s ! Nom).comp np.hasClit np.a vp ; PredSCVP sc vp = mkClause sc.s False (agrP3 Masc Sg) vp ; @@ -17,34 +17,16 @@ incomplete concrete SentenceRomance of Sentence = SlashVP np v2 = -- agreement decided afterwards: la fille qu'il a trouvée {s = \\ag => - let vp = case <v2.c2.c, v2.c2.isDir> of { - <Acc,True> => insertAgr ag v2 ; - _ => v2 - } - in (mkClause (np.s ! Aton Nom) np.hasClit np.a vp).s ; + let + vp = v2 +----e vp = case <v2.c2.c, v2.c2.isDir> of { +---- <Acc,True> => insertAgr ag v2 ; +---- _ => v2 +----e } + in (mkClause (np.s ! Nom).comp np.hasClit np.a vp).s ; c2 = v2.c2 } ; -{---b - SlashV2 np v2 = - {s = \\d,ag =>case <v2.c2.c,v2.c2.isDir> of { - <Acc,True> => - (mkClause (np.s ! Aton Nom) np.hasClit np.a - (insertAgr ag (predV v2))).s ! d ; - _ => (mkClause (np.s ! Aton Nom) np.hasClit np.a (predV v2)).s ! d - } ; - c2 = v2.c2 - } ; - - SlashVVV2 np vv v2 = - {s = \\d,_ => - (mkClause - (np.s ! Aton Nom) np.hasClit np.a - (insertComplement - (\\a => prepCase vv.c2.c ++ v2.s ! VInfin False) (predV vv))).s ! d; - c2 = v2.c2 - } ; --} AdvSlash slash adv = { s = \\ag,d,t,a,b,m => slash.s ! ag ! d ! t ! a ! b ! m ++ adv.s ; c2 = slash.c2 @@ -58,7 +40,7 @@ incomplete concrete SentenceRomance of Sentence = SlashVS np vs slash = {s = \\ag => (mkClause - (np.s ! Aton Nom) np.hasClit np.a + (np.s ! Nom).comp np.hasClit np.a (insertExtrapos (\\b => conjThat ++ slash.s ! ag ! (vs.m ! b)) (predV vs)) ).s ; |
