-
Notifications
You must be signed in to change notification settings - Fork 838
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(香港特别)行政区 转换结果: hang zheng qu 有误 #48
Comments
由于汉语分词程序不够精细,这个模块并不能提供 100% 正确的转换结果。 正常来说,分词程序应该将 这样下去拼音库会越来越大,越来越慢。 我期待能有一个精细的分词程序能解决这个问题 :) luckykaiyi/nodejieba#29 你也可以考虑:
|
在这个issue贴上了,比较出名的nlpir分词工具,其能精确地把 |
预处理的意思是说,你先把期望的专有名词(如 香港特别行政区)替换成目标拼音(如 xiang gang te bie xing zheng qu),再交给 pinyin 处理 |
不明白上一条说什么意思。专有名词转换成拼音,存入 2015-07-24 14:38 GMT+08:00 闲耘™ notifications@github.com:
Honghe |
var han = '香港特别行政区行政长官董建华';
han = han.replace(/香港特别行政区/g, 'xiang gang te bie xing zheng qu');
console.log( pinyin(han) ); |
类似
香港特别行政区
的这些专有名词词库,作者是建库不完整,还是什么?The text was updated successfully, but these errors were encountered: