diff options
| author | aarne <aarne@cs.chalmers.se> | 2006-10-10 16:43:41 +0000 |
|---|---|---|
| committer | aarne <aarne@cs.chalmers.se> | 2006-10-10 16:43:41 +0000 |
| commit | 65fd6edb6c57d4aed46f91d727ccf3b86b9bc982 (patch) | |
| tree | c9d546084306dcbfd201b55737284ed415fccf82 /examples/disamb/ConversationEng.gf | |
| parent | 604ec0a8c9c0c2da963f3abb9c00ceadd399d3aa (diff) | |
started disambiguation example
Diffstat (limited to 'examples/disamb/ConversationEng.gf')
| -rw-r--r-- | examples/disamb/ConversationEng.gf | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/examples/disamb/ConversationEng.gf b/examples/disamb/ConversationEng.gf new file mode 100644 index 000000000..127ec54bd --- /dev/null +++ b/examples/disamb/ConversationEng.gf @@ -0,0 +1,23 @@ +--# -path=.:prelude + +concrete ConversationEng of Conversation = open Prelude in { + + lincat + Q, NP, A = {s : Str} ; + Gender, Number, Politeness = {s : Str} ; + + lin + PredA np a = ss ("are" ++ np.s ++ a.s) ; + + GMasc = ss (optStr "man") ; + GFem = ss (optStr "woman") ; + NSg = ss (optStr "one") ; + NPl = ss (optStr "many") ; + PFamiliar = ss (optStr "friend") ; + PPolite = ss (optStr "respected") ; + + You n p g = ss ("you" ++ n.s ++ p.s ++ g.s) ; + + Ready = ss "ready" ; + +} |
