forked from lionsoul2014/friso
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfriso.ini
68 lines (53 loc) · 1.87 KB
/
friso.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
#friso configuration file.
# do not change the name of the left key.
# @email [email protected]
# @date 2012-12-20
#
#charset, only UTF8 and GBK support.
#set it with UTF8(0) or GBK(1)
friso.charset = 0
#lexicon directory absolute path.
# the value must end with '/'
#this will tell friso how to find friso.lex.ini configuration file and all the lexicon files.
#
#if it is not start with '/' for linux, or matches no ':' for winnt in its value
# friso will search the friso.lex.ini relative to friso.ini
#absolute path search:
#linux: friso.lex_dir = /c/products/friso/dict/UTF-8/
#Winnt: friso.lex_dir = D:/products/friso/dict/UTF-8/
#relative path search (All system)
friso.lex_dir = ./vendors/dict/UTF-8/
#the maximum matching length.
friso.max_len = 5
#1 for recognition chinese name.
# and 0 for closed it.
friso.r_name = 1
#the maximum length for the cjk words in a
# chinese and english mixed word.
friso.mix_len = 2
#the maxinum length for the chinese last name adron.
friso.lna_len = 1
#append the synonyms words
friso.add_syn = 1
#clear the stopwords or not (1 to open it and 0 to close it)
#@date 2013-06-13
friso.clr_stw = 0
#keep the unrecongized words or not (1 to open it and 0 to close it)
#@date 2013-06-13
friso.keep_urec = 0
#use sphinx output style like 'admire|love|enjoy einsten'
#@date 2013-10-25
friso.spx_out = 0
#start the secondary segmentation for complex english token.
friso.en_sseg = 1
#min length of the secondary segmentation token. (better larger than 1)
friso.st_minl = 2
#default keep punctuations for english token.
friso.kpuncs = @%.#&+
#the threshold value for a char not a part of a chinese name.
friso.nthreshold = 2000000
#default mode for friso.
# 1 : simple mode - simply maxmum matching algorithm.
# 2 : complex mode - four rules of mmseg alogrithm.
# 3 : detect mode - only return the words that the do exists in the lexicon
friso.mode = 2