forked from lydavid/CSC485-A2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtwosub.pl
More file actions
51 lines (42 loc) · 1.31 KB
/
Copy pathtwosub.pl
File metadata and controls
51 lines (42 loc) · 1.31 KB
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
:- ale_flag(subtypecover,_,off).
:- discontiguous sub/2,intro/2.
bot sub [mood, tense, sem, cat, pos, verbal, nominal].
% parts of speech
pos sub [n,p,v,det,toinf].
toinf sub []. % infinitival to
n sub [].
v sub [].
p sub [].
det sub [].
% phrasal categories
cat sub [vproj,np].
vproj sub [inf_clause,s,vp] intro [mood:mood].
s intro [mood:indicative].
inf_clause intro [mood:infinitive].
vp intro [mood:indicative].
np sub [].
verbal sub [v,vproj] intro [vsem:v_sem].
nominal sub [n,np] intro [nsem:n_sem].
% mood and tense for verbs
tense sub [past, present].
past sub [].
present sub [].
mood sub [indicative,infinitive].
indicative intro [tense:tense].
infinitive sub [].
% semantics for verbs and nouns
sem sub [v_sem, n_sem].
% only add features for v_sem and its subtypes
% semantics for verbs
v_sem sub [prefer, persuade, promise, expect, sleep]
intro []. % This should not be empty! Fill in features for this and
% the following subtypes:
prefer sub [].
persuade sub [].
promise sub [].
expect sub [].
sleep sub [].
% semantics for nouns
n_sem sub [student, teacher].
student sub [].
teacher sub [].