wyymichael / paoding

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

读取配置文件的一个Bug #42

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
最近一个项目,用到了paoding分词。
词典存放,我采用了放在src目录下的方法。但却在启动服务��
�的时候抛出
net.paoding.analysis.exception.PaodingAnalysisException: dic home should
not be a file, but a directory! 
而用junit测试却可以通过。在网上搜索到一个类似的问题(只
有baidu缓存页)
http://cache.baidu.com/c?m=9f65cb4a8c8507ed4fece7631043973b5e16c1743ca085482281c
d1f84642c101a39feee677f5746ce872f3a57f41509f7a0762f724277a09cbcce109decc17e32ce7
d74274fd05c46841aa99f1574952bc651bdab1ce1bde477ceee84dc9d070e9c08592f97f0fa4d701
2dd1e830341e4b1ee4e025e60ad9c30728f5c6059e83430b2&p=8b2a910086cc46fb06f7d6201e&u
ser=baidu
当中叙述是在PaodingMaker.getFile()方法中采用了老版本的
java.net.URL.getFile()。不能够识别中文或者空格,只有采用
URL.toURI().getPath()才能识别汉字与空格,请问作者能否考虑修��
�这个bug

Original issue reported on code.google.com by qion...@gmail.com on 3 Sep 2009 at 10:27