visuddhinanda b57a473e18 修正php 的相对路径 ./## js库 用npm 4 anos atrás
..
css 8627291cc3 channel share 5 anos atrás
js b57a473e18 修正php 的相对路径 ./## js库 用npm 4 anos atrás
language 09042f013e 取消隐藏的auto 5 anos atrás
README.md bac67a0def 多语言优化 5 anos atrás
comp_csv.php a31dbb50ff pr merge 5 anos atrás
dict.js b57a473e18 修正php 的相对路径 ./## js库 用npm 4 anos atrás
dict_lookup.php 703b7f5e27 查分词 5 anos atrás
dict_lookup_pre.php 9ed0c20d8c 词典优化拆分显示。默认显示拆分 5 anos atrás
dict_redis.bat 727be4776d 多语言维护 5 anos atrás
function.php d53a832601 :bug: 判断是否有[ 5 anos atrás
get_first_mean.php 9ed0c20d8c 词典优化拆分显示。默认显示拆分 5 anos atrás
get_split_data.php 6e4dc86c1a 用json_encode输出未查到的词 5 anos atrás
icon.svg 0c10ed9cdd 字典手机模式 5 anos atrás
index.php e3f1297961 词典样式修改 5 anos atrás
mobile.css 0c10ed9cdd 字典手机模式 5 anos atrás
multi-core.bat 301f1468a6 turbo split 逻辑优化 5 anos atrás
p_ending.php 100896f4ff 提交 5 anos atrás
redis_comp_part.php adbed049d5 清理没有使用预处理的 增加登录判断 redis查询权限 5 anos atrás
redis_import_dict.php ef5040d1f0 输出无法处理的行号 5 anos atrás
redis_import_term.php af4c8dcdee 字典支持redis 术语字典 5 anos atrás
redis_import_user.php af4c8dcdee 字典支持redis 术语字典 5 anos atrás
redis_pali_word_list.php 727be4776d 多语言维护 5 anos atrás
redis_pm_part.php 479d6e3b4c 干完活输出结果个数 5 anos atrás
redis_ref_with_mean.php 479d6e3b4c 干完活输出结果个数 5 anos atrás
redis_refresh_first_mean.php 16cf8a47e9 样式微调 5 anos atrás
redis_split_part.php 011efc75e5 我的空间界面完成 自动切分优化 5 anos atrás
redis_sys_rgl_part.php a20d9243be 允许web运行 5 anos atrás
sandhi.php 9ed0c20d8c 词典优化拆分显示。默认显示拆分 5 anos atrás
split.php d21cd71705 :bug: 缺少变量定义 5 anos atrás
turbo_split.php a07d869769 二次拆分找到中文意思同时判断长度不能太长 5 anos atrás
word_statistics.php 8b00fb6d6e :bug: 添加错误处理 5 anos atrás

README.md

Turbo Split 拆词算法

confidence value fomular
信心值公式

  • let CV=confidence.value
  • let N=dictionary_num
  • let L=word_spell.lenght

$CV=\frac{1}{1+640\times{(\frac{1}{1.1+N^{1.18}})}^L}$

Unreliable $0<CV<1$ Reliable

final confidence value
最终信心值

let word=word_1+word_2+word_3+……+word_N+word_remain

No. confidence value
1 CV_1=word_1.Cof_val
2 CV_2=word_2.Cof_val
3 CV_3=word_3.Cof_val
…… ……
N CV_N==word_N.Cof_val

$Len{remain}=Len(word{remain})$

$CV_{final}=CV_1\times CV_2\times CV_3\times \cdots×CVN+\frac{150}{(Len{remain})^{3}+150}-1$

graph TD
1Begin([start开始])
1A[/word_org<br>原单词/]
1B{diphthong ?<br>双元音 ?}
1C(non-diphthong word<br>非双元音词)
1D(diphthong word<br>双元音词)
1Begin-->1A
1A--input<br>输入-->1B

subgraph step 1:diphthong split<br>第一步:双元音切分
1B--No-->1C
1B--Yes-->1D
1D--according to根据<br>diphthong table<br>to split切分-->1C



end

2A([split loop<br>拆分循环])
2B{与阈值比较<br>compare with<br>threshold<br>value=0.8}
2C[(array<br>数组)]
2D(slice the last letter<br>by sandhi rule<br>根据连音规则<br>切除最后一个字母)
2E[/pre-word<br>前半段/]
2F[/post-word<br>后半段/]
2G(pre-word前半段<br>post-word后半段<br>confidence value信心值)
2J{length 4?<br>长度判定}
2K[(规则库<br>array $sandhi)]
2L{sandhi rules remained?<br>是否有规则剩余?}

subgraph function of word split<br>单词切分函数<br>recursion depth=18
1C--input输入-->2A
2A-->2D
2D-->2L
2K-->2D
2L--YES-->2E
2L--NO-->2M(slice the last letter<br>切除最后一个字母)
2M-->2D
2E-->2J
2J--length>4<br>input输入-->2D
2J--length<4-->2N([stop停止])
2H(confidence value<br>信心值)-->2B
2B--less than 0.8<br>小于0.8-->2D

end

subgraph confidence value calculator<br>信心值计算器
2E--accuracy estimate<br>准确性评估-->3A(found in how many dictionaries<br>在多少本字典中出现)
3A-->3B(fomular计算公式<br>)
3C[(vocabulary & frequency<br>in dictionaries)]-->3A
3B-->2H
end
2C-->A1

subgraph final confidence value<br>计算总信心值
2B--greater than 0.8<br>大于0.8-->2G
2G-->2C
2G-->2F
2F--input输入<br>recursion depth=18<br>递归深度=18-->2D
A1[/word1<br>/]
A11[/word1_1.spell<br>word1_1.Cof_val<br>word1_1.length/]
A12[/word1_2<br>/]
A121[/word1_21.spell<br>word1_21.Cof_val<br>word1_21.length/]
A122[/word1_22<br>/]
A1221[/word1_221.spell<br>word1_221.Cof_val<br>word1_221.length/]
A1222[/word1_222.spell<br>unsplitable/]
A1--split && C_val>0_8-->A11
A1--remained-->A12
A12--split && C_val>0_8-->A121
A12--remained-->A122
A122--split && C_val>0_8-->A1221
A122--remained-->A1222
A11-->B(total Cof.val calculator)
A121-->B
A1221-->B
A1222-->B
end

subgraph result process<br>结果处理
B-->C(word1_1.spell<br>word1_21.spell<br>word1_221.spell<br>word1_222.spell<br>final Cof.val)
C--push-->Array(Result Array<br>结果数组)
Array--依最终信心值倒序排列<br>orderby CV_final DESC-->result([Final Result])
end



Redis