-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsemRulesLambda.pl
75 lines (54 loc) · 2.31 KB
/
semRulesLambda.pl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*************************************************************************
File: semRulesLambda.pl
Copyright (C) 2004,2005,2006 Patrick Blackburn & Johan Bos
This file is part of BB1, version 1.3 (November 2006).
BB1 is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
BB1 is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with BB1; if not, write to the Free Software Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*************************************************************************/
/*========================================================================
Semantic Rules
========================================================================*/
combine(t:Converted,[s:Sem]):-
betaConvert(Sem,Converted).
combine(t:Converted,[q:Sem]):-
betaConvert(Sem,Converted).
combine(s:app(A,B),[np:A,vp:B]).
combine(s:app(A,B),[s:A,s:B]).
combine(s:lam(B,imp(S,B)),[if:S]).
combine(s:lam(B,or(S,B)),[either:S]).
combine(s:S,[then:S]).
combine(s:S,[or:S]).
/*combine(wtt:app(B,app(A,C)),[vp:A,np:B,vp:C]).*/
combine(sinv:app(B,app(A,C)),[av:A,np:B,vp:C]).
combine(q:app(A,B),[whnp:A,vp:B]).
combine(q:app(A,B),[whnp:A,wtt:B]).
/*combine(q:A,[sinv:A]).*/
combine(np:app(app(B,A),C),[np:A,coord:B,np:C]).
combine(np:app(A,B),[det:A,n:B]).
combine(np:A,[pn:A]).
combine(np:A,[qnp:A]).
combine(whnp:app(A,B),[det:A,n:B]).
combine(whnp:A,[qnp:A]).
combine(n:app(app(B,A),C),[n:A,coord:B,n:C]).
combine(n:app(A,B),[adj:A,n:B]).
combine(n:A,[noun:A]).
combine(n:app(B,A),[noun:A,nmod:B]).
combine(nmod:A,[pp:A]).
combine(nmod:A,[rc:A]).
combine(nmod:lam(P,app(A,app(B,P))),[pp:A,nmod:B]).
combine(vp:app(app(B,A),C),[vp:A,coord:B,vp:C]).
combine(vp:app(A,B),[av:A,vp:B]).
combine(vp:app(A,B),[cop:A,np:B]).
combine(vp:A,[iv:A]).
combine(vp:app(A,B),[tv:A,np:B]).
combine(pp:app(A,B),[prep:A,np:B]).
combine(rc:app(A,B),[relpro:A,vp:B]).