diff options
| author | aarne <aarne@chalmers.se> | 2010-04-24 11:34:04 +0000 |
|---|---|---|
| committer | aarne <aarne@chalmers.se> | 2010-04-24 11:34:04 +0000 |
| commit | 2b21e7fae764f454200183fdcd7efbed3c647012 (patch) | |
| tree | cd0e931a768f53a69f7c1df206b71317d9b1ce6d /examples/lrec-tutorial/ZeroHeb.gf | |
| parent | 2f62ab26e61584749e7670b2ce9f619ba7802c23 (diff) | |
lrec tutorial examples
Diffstat (limited to 'examples/lrec-tutorial/ZeroHeb.gf')
| -rw-r--r-- | examples/lrec-tutorial/ZeroHeb.gf | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/examples/lrec-tutorial/ZeroHeb.gf b/examples/lrec-tutorial/ZeroHeb.gf new file mode 100644 index 000000000..4c8d4a85b --- /dev/null +++ b/examples/lrec-tutorial/ZeroHeb.gf @@ -0,0 +1,24 @@ + + concrete ZeroHeb of Zero = { + flags coding=utf8 ; + lincat + S = Str ; + NP = {s : Str ; g : Gender} ; + VP, V2 = Gender => Str ; + lin + Pred np vp = np.s ++ vp ! np.g ; + Compl v2 np = table {g => v2 ! g ++ "את" ++ np.s} ; + John = {s = "ג׳ון" ; g = Masc} ; + Mary = {s = "מרי" ; g = Fem} ; + Love = table {Masc => "אוהב" ; Fem => "אוהבת"} ; + param + Gender = Masc | Fem ; + } + +--. +-- illustrates: transliteration, inherent features, agreement +-- > gr | l -to_hebrew +-- > ut -hebrew +-- > rf -file=ZeroHeb.gf | ps -env=quotes -to_hebrew +-- > dc amac aw -format=png -view=open ?0 +-- > gr | %amac |
