hzwjava / ik-analyzer

Automatically exported from code.google.com/p/ik-analyzer
0 stars 0 forks source link

扩展词典 对英文和数字不支持 #53

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
 Dictionary.loadExtendWords(List<String> ); 
list.add("abb-2")

输入ABB-22
分词结果不会出现 abb-2  只会出现abb-22

Original issue reported on code.google.com by 582981...@qq.com on 27 Apr 2012 at 4:00

GoogleCodeExporter commented 9 years ago
词典是不支持“-”这样的符号的
abb-22是英文子分词器根据语法规则切分的,不是词典的效果

Original comment by linliang...@gmail.com on 2 May 2012 at 2:14