geraldsec / jcseg

Automatically exported from code.google.com/p/jcseg
0 stars 0 forks source link

对jcesg的疑问 (已解决) #4

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

What steps will reproduce the problem?
在看例子中“罗志高兴奋极了”分词的时候,分成了“罗兴��
�极了因志高”,感觉分的不对,看了源代码发现在findCHName( 
char[] chars, int index, IChunk chunk 
)方法中,只是调用了isb.clear().而IWord[] ws = getNextMatch(chars, 
index_);这行会对isb修改,我个人认为还是用StringBuilder isb = new 
StringBuilder();代替isb.clear();比较好

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
1.8.0.on Windows

Please provide any additional information below.

Original issue reported on code.google.com by zhuzhiyu...@gmail.com on 9 May 2013 at 7:09

GoogleCodeExporter commented 8 years ago
感谢你的反馈, 加入IStringBuffer以后, 忘记测试这个问题了, 
以修复发布了1.8.1版.

Original comment by chenxin6...@gmail.com on 10 May 2013 at 2:22

GoogleCodeExporter commented 8 years ago

Original comment by chenxin6...@gmail.com on 10 May 2013 at 5:10