hzwjava / ik-analyzer

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

DisableWords只能删除自定义的词元,无法删除预制的词源 #50

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
For Example:

IKSegmenter iks = new IKSegmenter(new StringReader("uml Just test"), true);
List<String> words = new ArrayList<String>();
words.add("uml");
Dictionary.disableWords(words);
Lexeme exeme = null;
do {
exeme = iks.next();
if (exeme != null) {
System.out.println(exeme.getLexemeText());
}
} while (exeme != null);
是使用方法不对吗?

Original issue reported on code.google.com by sjw_...@126.com on 30 Mar 2012 at 6:27

GoogleCodeExporter commented 9 years ago
你这个用例根本测试不出中文词典,因为UML这样的英文单词��
�论词典有木有,都会直接切分出来。

请用个中文词语测试,谢谢

Original comment by linliang...@gmail.com on 30 Mar 2012 at 4:42