-
Notifications
You must be signed in to change notification settings - Fork 0
/
feature.def
115 lines (95 loc) · 3.83 KB
/
feature.def
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
#
# ここから bigram 定義
#
# %F[0..N] Unigram文脈
# %F?: 未定義の場合は,このテンプレートを適用しない
# POS Unigram
UNIGRAM U1:%F[0]
UNIGRAM U2:%F[0],%F?[1]
UNIGRAM U3:%F[0],%F[1],%F?[2]
UNIGRAM U4:%F[0],%F[1],%F[2],%F?[3]
# Word-POS
UNIGRAM W0:%F[6]
UNIGRAM W1:%F[0]/%F[6]
UNIGRAM W2:%F[0],%F?[1]/%F[6]
UNIGRAM W3:%F[0],%F[1],%F?[2]/%F[6]
UNIGRAM W4:%F[0],%F[1],%F[2],%F?[3]/%F[6]
# Word-Read-POS
UNIGRAM R0:%F[7]
UNIGRAM R1:%F[6],%F[7]
UNIGRAM R2:%F[0],%F[6],%F[7]
UNIGRAM R3:%F[0],%F?[1],%F[6],%F[7]
UNIGRAM R4:%F[0],%F[1],%F?[2],%F[6],%F[7]
UNIGRAM R5:%F[0],%F[1],%F[2],%F?[3],%F[6],%F[7]
# char type
UNIGRAM T0:%t
UNIGRAM T1:%F[0]/%t
UNIGRAM T2:%F[0],%F?[1]/%t
UNIGRAM T3:%F[0],%F[1],%F?[2]/%t
UNIGRAM T4:%F[0],%F[1],%F[2],%F?[3]/%t
#
# ここから bigram 定義
#
# %L[0..N] 左文脈
# %R[0..N] 右文脈
#
# %R?: 未定義の場合は,このテンプレートを適用しない
# 品詞
BIGRAM B00:%L[0]/%R[0]
BIGRAM B01:%L[0],%L?[1]/%R[0]
BIGRAM B02:%L[0]/%R[0],%R?[1]
BIGRAM B03:%L[0]/%R[0],%R[1],%R?[2]
BIGRAM B04:%L[0],%L?[1]/%R[0],%R[1],%R?[2]
BIGRAM B05:%L[0]/%R[0],%R[1],%R[2],%R?[3]
BIGRAM B06:%L[0],%L?[1]/%R[0],%R[1],%R[2],%R?[3]
BIGRAM B07:%L[0],%L[1],%L?[2]/%R[0]
BIGRAM B08:%L[0],%L[1],%L?[2]/%R[0],%R?[1]
BIGRAM B09:%L[0],%L[1],%L[2],%L?[3]/%R[0]
BIGRAM B10:%L[0],%L[1],%L[2],%L?[3]/%R[0],%R?[1]
BIGRAM B11:%L[0],%L[1],%L?[2]/%R[0],%R[1],%R?[2]
BIGRAM B12:%L[0],%L[1],%L?[2]/%R[0],%R[1],%R[2],%R?[3]
BIGRAM B13:%L[0],%L[1],%L[2],%L?[3]/%R[0],%R[1],%R?[2]
BIGRAM B14:%L[0],%L[1],%L[2],%L?[3]/%R[0],%R[1],%R[2],%R?[3]
# 活用
BIGRAM B20:%L[0],%L?[4]/%R[0]
BIGRAM B21:%L[0],%L?[5]/%R[0]
BIGRAM B22:%L[0],%L?[4],%L?[5]/%R[0]
BIGRAM B23:%L[0]/%R[0],%R?[4]
BIGRAM B24:%L[0]/%R[0],%R?[5]
BIGRAM B25:%L[0]/%R[0],%R?[4],%R?[5]
BIGRAM B26:%L[0],%L?[4]/%R[0],%R?[4]
BIGRAM B27:%L[0],%L?[4]/%R[0],%R?[5]
BIGRAM B28:%L[0],%L?[5]/%R[0],%R?[4]
BIGRAM B29:%L[0],%L?[5]/%R[0],%R?[5]
BIGRAM B30:%L[0],%L?[4],%L?[5]/%R[0],%R?[4]
BIGRAM B31:%L[0],%L?[4],%L?[5]/%R[0],%R?[5]
BIGRAM B32:%L[0],%L?[4]/%R[0],%R?[4],%R?[5]
BIGRAM B33:%L[0],%L?[5]/%R[0],%R?[4],%R?[5]
BIGRAM B34:%L[0],%L?[4],%L?[5]/%R[0],%R?[4],%R?[5]
# POS leaf category
BIGRAM B40:%L[0],%L[1],%L[2],%L?[4]/%R[0],%R[1],%R[2]
BIGRAM B41:%L[0],%L[1],%L[2],%L?[5]/%R[0],%R[1],%R[2]
BIGRAM B42:%L[0],%L[1],%L[2],%L?[4],%L?[5]/%R[0],%R[1],%R[2]
BIGRAM B43:%L[0],%L[1],%L[2]/%R[0],%R[1],%R[2],%R?[4]
BIGRAM B44:%L[0],%L[1],%L[2]/%R[0],%R[1],%R[2],%R?[5]
BIGRAM B45:%L[0],%L[1],%L[2]/%R[0],%R[1],%R[2],%R?[4],%R?[5]
BIGRAM B46:%L[0],%L[1],%L[2],%L?[4]/%R[0],%R[1],%R[2],%R?[4]
BIGRAM B47:%L[0],%L[1],%L[2],%L?[4]/%R[0],%R[1],%R[2],%R?[5]
BIGRAM B48:%L[0],%L[1],%L[2],%L?[5]/%R[0],%R[1],%R[2],%R?[4]
BIGRAM B49:%L[0],%L[1],%L[2],%L?[5]/%R[0],%R[1],%R[2],%R?[5]
BIGRAM B50:%L[0],%L[1],%L[2],%L?[4],%L?[5]/%R[0],%R[1],%R[2],%R?[4]
BIGRAM B51:%L[0],%L[1],%L[2],%L?[4],%L?[5]/%R[0],%R[1],%R[2],%R?[5]
BIGRAM B52:%L[0],%L[1],%L[2],%L?[4]/%R[0],%R[1],%R[2],%R?[4],%R?[5]
BIGRAM B53:%L[0],%L[1],%L[2],%L?[5]/%R[0],%R[1],%R[2],%R?[4],%R?[5]
BIGRAM B54:%L[0],%L[1],%L[2],%L?[4],%L?[5]/%R[0],%R[1],%R[2],%R?[4],%R?[5]
# 語彙化
BIGRAM B61:%L[0],%L[1],%L[2],%L[3],%L[4],%L[5],%L?[6]/%R[0],%R[1],%R[2],%R[3]
BIGRAM B61:%L[0],%L[1],%L[2],%L[3],%L[4],%L[5],%L?[6]/%R[0],%R[1],%R[2],%R[3],%R[4]
BIGRAM B62:%L[0],%L[1],%L[2],%L[3],%L[4],%L[5],%L?[6]/%R[0],%R[1],%R[2],%R[3],%R[5]
BIGRAM B63:%L[0],%L[1],%L[2],%L[3],%L[4],%L[5],%L?[6]/%R[0],%R[1],%R[2],%R[3],%R[4],%R[5]
BIGRAM B64:%L[0],%L[1],%L[2],%L[3]/%R[0],%R[1],%R[2],%R[3],%R[4],%R[5],%R?[6]
BIGRAM B65:%L[0],%L[1],%L[2],%L[3],%L[4]/%R[0],%R[1],%R[2],%R[3],%R[4],%R[5],%R?[6]
BIGRAM B66:%L[0],%L[1],%L[2],%L[3],%L[5]/%R[0],%R[1],%R[2],%R[3],%R[4],%R[5],%R?[6]
BIGRAM B67:%L[0],%L[1],%L[2],%L[3],%L[4],%L[5]/%R[0],%R[1],%R[2],%R[3],%R[4],%R[5],%R?[6]
BIGRAM B68:%L[0],%L[1],%L[2],%L[3],%L[4],%L[5],%L?[6]/%R[0],%R[1],%R[2],%R[3],%R[4],%R[5],%R?[6]
BIGRAM B70:%L?[6]/%R?[6]