-
Notifications
You must be signed in to change notification settings - Fork 3
/
educ.tdl
153 lines (119 loc) · 2.81 KB
/
educ.tdl
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
;;; -*- Mode: tdl; Coding: utf-8; -*-
;;;
;;; Copyright (c) 1994-2018
;;; Dan Flickinger, Rob Malouf, Emily M. Bender
;;; see LICENSE for conditions
;;;
;;; english.tdl
;;;
;;; Top-level load file for PET for the English grammar
;;;
;;; File created: 3-Nov-94 by Rob Malouf
;;;
;;; $Id: english.tdl 6583 2009-06-03 12:18:27Z oe $
:begin :type.
;;
;; Basic definitions and macros
;;
:include "fundamentals".
;;
;; Lexical types (i.e., primitive word classes)
;;
:include "lextypes".
;;
;; token mapping: manipulate the token lattice prior to lexical look-up
;;
:include "tmt".
:begin :instance :status token-mapping-rule.
;;:include "tmr/ner".
:include "tmr/gml".
:include "tmr/ptb".
;; Comment out so we can catch these as robust errors
;;:include "tmr/spelling".
:include "tmr/ne1".
:include "educ/tmr-ne-educ".
:include "tmr/split".
:include "tmr/ne2".
:include "tmr/class".
:include "tmr/ne3".
:include "educ/tmr-educ".
:include "tmr/punctuation".
:include "tmr/pos".
;:include "tmr/bridge".
:include "tmr/finis".
:end :instance.
:begin :instance :status post-generation-mapping-rule.
:include "tmr/post-generation".
:end :instance.
;;
;; lexical filtering: reduce the chart after lexical instantiation and the
;; application of lexical rules, right before we turn loose syntactic rules.
;;
:begin :instance :status lexical-filtering-rule.
:include "lfr.tdl".
:include "educ/lfr-educ.tdl".
:end :instance.
;;
;; Syntactic rules
;;
:include "syntax".
:include "educ/syntax-mask".
:include "ctype".
:include "educ/ctype-educ".
;;
;; Lexical rules
;;
:include "lexrules".
;; Dependency annotation support for rule types
;;:include "dts".
;; Delimiters (strong and weak brackets)
:include "delims".
:include "auxverbs".
:include "letypes".
:include "educ/lextypes-educ".
:include "educ/sempos".
:include "educ/letypes-mask".
:include "educ/letypes-mal".
:end :type.
;;
;; Lexicon entries (instances of status lex-entry or generic-lex-entry)
;;
:begin :instance :status lex-entry.
:include "lexicon".
:include "lexicon-rbst".
:include "educ/lexicon-mal".
:include "educ/lexicon-mask".
:include "ple".
:include "educ/ple-educ".
:end :instance.
:begin :instance :status generic-lex-entry.
:include "gle".
:include "educ/gle-educ".
:end :instance.
;;
;; grammar rules and lexical rules (instances of status rule)
;;
:begin :instance :status rule.
:include "constructions".
:include "educ/constr-mask".
:include "educ/constr-mal".
:end :instance.
:begin :instance :status lex-rule.
:include "inflr".
:include "educ/lexrinst-mask".
:include "educ/lexrinst-mal".
:include "educ/lexrinst-tok".
:end :instance.
;;
;; parse-tree labels (instances)
;;
:begin :instance.
:include "parse-nodes".
:end :instance.
;;
;; start symbols of the grammar (instances)
;;
:begin :instance.
:include "roots".
:include "educ/roots-educ".
:end :instance.