forked from kerneltravel/zhparser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrules.utf8.ini
291 lines (263 loc) · 4.29 KB
/
rules.utf8.ini
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
;
; auto regular(utf-8)
; $Id$
;
; special word, 特殊词汇
;
[special]
C++
C#
R&B
P&G
J++
J#
UTF-8
PS/2
;
; nostats
;
[nostats]
about
all
also
an
and
any
are
as
at
be
but
by
both
can
for
from
have
here
if
in
is
it
no
not
of
on
or
our
out
that
the
this
to
up
us
;
; 词性语法规则表
;
[attrs]
; c 是连词
n + f(1) = 300
n + m(1) = 500
n(1) + v = 100
n + v(1) = 10
r + n(1) = 1000
r(1) + n = 100
d(1) + r = 100
d(1) + v = 100
v(1) + r = 100
n + m(1) = 500
v + f(1) = 30
v(1) + m = 100
v(1) + n = 3
a + u(1) = 5
v + n(1) = 5
u(1) + a = 2
c(1) + * = 50
* + c(1) = 50
;
; 名字停用词表
;
[noname]
:line = no
给的说对在和是被最所那这有将
你会与他为不没很了啊哦呵把去
;
; 双字节符号
;
[symbol]
:type = none
:line = no
`-=[]、‘;/。,|?》《:“{}+—)(*…%¥#·!~
’”〕〈〉「」『』〖〗【】<>
;
; 姓和外文名共同部分
;
[pubname]
:type = prefix
:line = no
:exclude = noname,symbol,alpha,chnum2
:znum = 1,2
:tf = 5.0
:idf = 3.5
:attr = nr
艾安贝卜戴费福盖戈古赫华霍吉贾金柯赖劳雷黎利林卢
鲁伦罗洛马麦米莫穆齐乔冉萨沙史斯温谢尤詹诸
[pubname2]
:type = prefix
:line = no
:exclude = noname,symbol,alpha,chnum2
:tf = 5.0
:idf = 3.5
:attr = nr
伍陆
[pubname3]
:type = prefix
:line = no
:exclude = noname,symbol,alpha,chnum2
:tf = 5.0
:idf = 3.5
:attr = nr
万章
;
; 单姓
;
[surname]
:type = prefix
:line = no
:exclude = noname,symbol,alpha,chnum2
:tf = 5.0
:idf = 3.5
:attr = nr
:znum = 1,2
敖白班包宝保鲍毕边卞柏蔡曹岑柴昌常车陈成程迟池褚
楚储淳崔刀邓狄刁丁董窦杜端段樊范方房斐丰封冯凤伏
傅甘高耿龚宫勾苟辜谷顾官关管桂郭韩杭郝禾何贺衡洪
侯胡花黄稽姬纪季简翦姜江蒋焦晋靳荆居康空孔匡邝况
蓝郎朗乐冷李理厉励连廉练良梁廖凌刘柳隆龙楼娄吕路
骆麻满茅毛梅孟苗缪闵明牟倪聂牛钮农潘庞裴彭皮朴平
蒲溥浦戚祁钱强秦丘邱仇裘屈瞿权饶任荣容阮瑞芮赛单
商邵佘申沈盛石寿舒宋苏孙邰谭谈汤唐陶滕田佟仝屠涂
汪王危韦魏卫蔚闻翁巫邬武吴奚习夏鲜席冼项萧解辛邢
幸熊徐许宣薛荀颜阎言严彦晏燕杨阳姚叶蚁易殷银尹应
英游于於鱼虞俞余禹喻郁尉袁岳云臧曾查翟湛张赵甄郑
钟周朱竺祝庄卓宗邹祖左肖
;
; 复姓
;
[surname2]
:type = prefix
:line = yes
:exclude = noname,symbol,alpha,chnum2
:tf = 5.0
:idf = 3.5
:attr = nr
:znum = 1, 2
东郭
公孙
皇甫
慕容
欧阳
单于
司空
司马
司徒
澹台
诸葛
;
; 地点名称
;
[areaname]
:type = suffix
:znum = 2
:exclude = noname,symbol,alpha,chnum2
:tf = 4.5
:idf = 3.0
:attr = ns
:line = no
县市镇村乡区
;
; 双字地点名称
;
[areaname2]
:type = suffix
:znum = 2
:exclude = noname,symbol,alpha,chnum2
:tf = 4.5
:idf = 3.0
:attr = ns
:line = yes
东路
西路
支路
街道
南路
北路
[munit]
:type = none
:line = no
萬亿零年点分秒回节名个多届次集
[chnum0]
:type = prefix
:line = no
:tf = 2.5
:idf = 1.0
:attr = mt
:include = chnum2,chnum3,munit,pubname3
0
[chnum1]
:type = prefix
:include = chnum0,chnum1,munit,pubname3
:tf = 3.0
:idf = 1.0
:attr = mt
:line = no
一二三四五六七八九十百千
[chnum2]
:type = prefix
:line = no
:tf = 3.0
:idf = 1.0
:attr = mt
:include = chnum0,chnum2,chnum3,munit,pubname3
123456789
[chnum3]
:type = none
:line = no
.
[chnum4]
:type = prefix
:line = no
:tf = 3.0
:idf = 1.0
:attr = mt
:include = chnum4,munit,pubname2,pubname3
壹贰叁肆柒捌玖拾佰仟
[chnum5]
:type = prefix
:line = no
:tf = 3.5
:idf = 2.0
:attr = nz
:include = chnum1,munit,pubname3,chnum2
第每
[alpha]
:type = prefix
:line = no
:tf = 2.5
:idf = 1.0
:attr = en
:include = alpha
abcdefghijklmnopqrstuvwxyz
ABCDEFGHIJKLMNOPQRSTUVWXYZ'
[foregin]
:type = prefix
:line = no
:tf = 4.0
:idf = 3.0
:attr = nr
:include = foregin,pubname,pubname2,pubname3
阿克拉加内亚巴尔姆爱兰西伊杰纳布可夫勒特坦芬尼根登都
伯泰胥俄科索沃森奥瓦茨普蒂塞维大莱德冈墨哥弗库澳哈兹
乌奇切诺里基延达塔卡雅来波迈蓬什比摩曼乃休合娜迪凯帕
桑佩蒙博托格泽及希匹印埃努烈累法图喀土腓耶逊宾