Skip to content

Commit 7608923

Browse files
committed
chart mapping & YY mode
1 parent 460c2cc commit 7608923

32 files changed

+4220
-530
lines changed

cmn/hans/ace/config.common.tdl

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,23 @@ mrs-icons-list := ICONS LIST.
4848
icons-left := CLAUSE.
4949
icons-right := TARGET.
5050

51+
52+
;;;Token Mapping
53+
;; token settings
54+
token-mapping := enabled.
55+
lexicon-tokens-path := TOKENS +LIST.
56+
lexicon-last-token-path := TOKENS +LAST.
57+
token-type := token.
58+
token-form-path := +FORM. ; [required] string for lexical lookup
59+
token-id-path := +ID. ; [optional] list of external ids
60+
token-from-path := +FROM. ; [optional] surface start position
61+
token-to-path := +TO. ; [optional] surface end position
62+
token-postags-path := +POS +TAGS. ; [optional] list of POS tags
63+
token-posprobs-path := +POS +PRBS. ; [optional] list of POS probabilities
64+
65+
;; lattice mapping settings
66+
lattice-mapping-input-path := +INPUT.
67+
lattice-mapping-output-path := +OUTPUT.
68+
lattice-mapping-context-path := +CONTEXT.
69+
lattice-mapping-position-path := +POSITION.
70+

cmn/hans/gle.tdl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../gle.tdl

cmn/hans/hans-pet-robust.tdl

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@
33
;;; $Id: pet.tdl,v 1.2 2008-05-23 01:44:21 sfd Exp $
44
;;;
55

6-
:begin :type.
6+
;; SSH 2014-11-25
7+
;; lexical filtering: reduce the chart after lexical instantiation and the
8+
;; application of lexical rules, right before we turn loose syntactic rules.
9+
:begin :instance :status lexical-filtering-rule.
10+
:include "lfr".
11+
:end :instance.
712

8-
;;
9-
;; type hierarchy
10-
;;
1113

14+
:begin :type.
1215
:include "head-types".
1316
:include "matrix".
1417
:include "trung".
@@ -17,15 +20,14 @@
1720
:include "zhong".
1821
:include "hans".
1922
:include "mtr".
20-
23+
:include "tmt".
2124
:end :type.
2225

23-
;;
24-
;; lexicon entries (instances of status lex-entry or generic-lex-entry)
25-
;;
26-
27-
:begin :instance :status lex-entry.
28-
:include "lexicon".
26+
:begin :instance :status token-mapping-rule.
27+
:include "../../tmr/prelude".
28+
:include "../../tmr/pos".
29+
:include "../../tmr/pos-ipa".
30+
:include "../../tmr/finis".
2931
:end :instance.
3032

3133
;;
@@ -42,6 +44,19 @@
4244
:include "irules".
4345
:end :instance.
4446

47+
48+
;;
49+
;; lexicon entries (instances of status lex-entry or generic-lex-entry)
50+
;;
51+
52+
:begin :instance :status lex-entry.
53+
:include "lexicon".
54+
:end :instance.
55+
56+
:begin :instance :status generic-lex-entry.
57+
:include "gle".
58+
:end :instance.
59+
4560
;;
4661
;; parse-tree labels (instances)
4762
;;

cmn/hans/hans-pet-strict.tdl

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@
33
;;; $Id: pet.tdl,v 1.2 2008-05-23 01:44:21 sfd Exp $
44
;;;
55

6-
:begin :type.
6+
;; SSH 2014-11-25
7+
;; lexical filtering: reduce the chart after lexical instantiation and the
8+
;; application of lexical rules, right before we turn loose syntactic rules.
9+
:begin :instance :status lexical-filtering-rule.
10+
:include "lfr".
11+
:end :instance.
712

8-
;;
9-
;; type hierarchy
10-
;;
1113

14+
:begin :type.
1215
:include "head-types".
1316
:include "matrix".
1417
:include "trung".
@@ -17,15 +20,15 @@
1720
:include "zhong".
1821
:include "hans".
1922
:include "mtr".
20-
23+
:include "tmt".
2124
:end :type.
2225

23-
;;
24-
;; lexicon entries (instances of status lex-entry or generic-lex-entry)
25-
;;
2626

27-
:begin :instance :status lex-entry.
28-
:include "lexicon".
27+
:begin :instance :status token-mapping-rule.
28+
:include "../../tmr/prelude".
29+
:include "../../tmr/pos".
30+
:include "../../tmr/pos-ipa".
31+
:include "../../tmr/finis".
2932
:end :instance.
3033

3134
;;
@@ -41,6 +44,21 @@
4144
:include "irules".
4245
:end :instance.
4346

47+
48+
;;
49+
;; lexicon entries (instances of status lex-entry or generic-lex-entry)
50+
;;
51+
52+
:begin :instance :status lex-entry.
53+
:include "lexicon".
54+
:end :instance.
55+
56+
57+
:begin :instance :status generic-lex-entry.
58+
:include "gle".
59+
:end :instance.
60+
61+
4462
;;
4563
;; parse-tree labels (instances)
4664
;;

cmn/hans/hans-pet.tdl

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@
33
;;; $Id: pet.tdl,v 1.2 2008-05-23 01:44:21 sfd Exp $
44
;;;
55

6-
:begin :type.
6+
;; SSH 2014-11-25
7+
;; lexical filtering: reduce the chart after lexical instantiation and the
8+
;; application of lexical rules, right before we turn loose syntactic rules.
9+
:begin :instance :status lexical-filtering-rule.
10+
:include "lfr".
11+
:end :instance.
712

8-
;;
9-
;; type hierarchy
10-
;;
1113

14+
:begin :type.
1215
:include "head-types".
1316
:include "matrix".
1417
:include "trung".
@@ -17,17 +20,17 @@
1720
:include "zhong".
1821
:include "hans".
1922
:include "mtr".
20-
23+
:include "tmt".
2124
:end :type.
2225

23-
;;
24-
;; lexicon entries (instances of status lex-entry or generic-lex-entry)
25-
;;
26-
27-
:begin :instance :status lex-entry.
28-
:include "lexicon".
26+
:begin :instance :status token-mapping-rule.
27+
:include "../../tmr/prelude".
28+
:include "../../tmr/pos".
29+
:include "../../tmr/pos-ipa".
30+
:include "../../tmr/finis".
2931
:end :instance.
3032

33+
3134
;;
3235
;; grammar rules and lexical rules (instances of status rule)
3336
;;
@@ -36,11 +39,25 @@
3639
:include "rules".
3740
:end :instance.
3841

42+
3943
:begin :instance :status lex-rule.
4044
:include "lrules".
4145
:include "irules".
4246
:end :instance.
4347

48+
49+
;;
50+
;; lexicon entries (instances of status lex-entry or generic-lex-entry)
51+
;;
52+
53+
:begin :instance :status lex-entry.
54+
:include "lexicon".
55+
:end :instance.
56+
57+
:begin :instance :status generic-lex-entry.
58+
:include "gle".
59+
:end :instance.
60+
4461
;;
4562
;; parse-tree labels (instances)
4663
;;

0 commit comments

Comments
 (0)