-
1个txt.json
(以读es.txt
文件为例):
{
"name": "Chinese to Emoji",
"segmentation": {
"type": "mmseg",
"dict": {
"type": "text",
"file": "es.txt"
}
},
"conversion_chain": [{
"dict": {
"type": "text",
"file": "es.txt"
}
}]
}
-
2个txt.json
:
{
"name": "lxcCJ",
"segmentation": {
"type": "mmseg",
"dict": {
"type": "text",
"file": "lxcCJ.txt"
}
},
"conversion_chain": [{
"dict": {
"type": "group",
"dicts": [{
"type": "text",
"file": "lxcCJ.txt"
}, {
"type": "text",
"file": "lcx_sen.txt"
}]
}
}]
}
-
3个txt.json
:
{
"name": "English2ch",
"segmentation": {
"type": "mmseg",
"dict": {
"type": "text",
"file": "English_cn.txt"
}
},
"conversion_chain": [{
"dict": {
"type": "group",
"dicts": [{
"type": "text",
"file": "english_cn.txt"
}, {
"type": "text",
"file": "english_en.txt"
}, {
"type": "text",
"file": "english_ciba_cn1.2.txt"
}]
}
}]
}
-
3+个txt.json
:
{
"name": "dic add",
"segmentation": {
"type": "mmseg",
"dict": {
"type": "ocd",
"file": "dic_ch_4.ocd"
}
},
"conversion_chain": [{
"dict": {
"type": "group",
"dicts": [{
"type": "ocd",
"file": "dic_ch_4.ocd"
}, {
"type": "ocd",
"file": "dic_ch_1.ocd"
}, {
"type": "ocd",
"file": "dic_ch_2.ocd"
}, {
"type": "ocd",
"file": "dic_ch_3.ocd"
}, {
"type": "text",
"file": "dic_ciba_0.txt"
}, {
"type": "ocd",
"file": "dic_ciba_1.ocd"
}, {
"type": "ocd",
"file": "dic_ciba_2.ocd"
}, {
"type": "ocd",
"file": "dic_ciba_3.ocd"
}, {
"type": "ocd",
"file": "dic_ciba_4.ocd"
}, {
"type": "ocd",
"file": "dic_hanzi.ocd"
}]
}
}]
}
-
但是不建议:多个txt
对应一个json
文个,知道有多个txt
可以用一个json
文件调用就行;
因为:关键字重复时,如果有,根据滤镜顺序,优先显⽰上⾯的内容,下⾯的不予显⽰。这⼀点是和多个json
⽂件滤镜的相同关键字展⽰的效果不⼀样的。除非两txt
文件中没有重复的关键字。