please set a system env PAODING_DIC_HOME or Config paoding.dic.home in paoding-dic-home.properties p
来源:互联网 发布:qq飞车幻灵奇迹数据 编辑:程序博客网 时间:2024/06/05 18:55
在使用paoding分词的时候,出现了错误,please set a system env PAODING_DIC_HOME or Config paoding.dic.home in paoding-dic-home.properties point to the dictionaries!
这是因为在老版本的PaodingMaker.getFile()方法中采用的是老版本的java.net.URL.getFile(),不能够识别中文或者空格,需要修改源代码重新打包,只有采用URL.toRUL().getPath()才能识别汉字与空格。
这部分是自己加的代码
//这部分代码是自己添加的,主要是解决路径中不能有空格的问题 File dicHomeFile2 = getFile(dicHome); String path = ""; try{ path = URLDecoder.decode(dicHomeFile2.getPath(),"UTF-8"); }catch(UnsupportedEncodingException e){ e.printStackTrace(); } File dicHomeFile = new File(path);
0 0
- please set a system env PAODING_DIC_HOME or Config paoding.dic.home in paoding-dic-home.properties p
- net.paoding.analysis.exception.PaodingAnalysisException: not found the dic home dirctory
- 庖丁解牛 dic home should not be a file, but a directory!
- net.paoding.analysis.exception.PaodingAnalysisException: not found the dic异常解决办法
- 配置文件:persistence.xml-----beans.xml----jdbc.properties----log4j.properties---oscache----paoding---struts.config---web.xml
- dic文件
- code dic
- dic+css
- matlab DIC
- ${config.home}
- use paoding chinese word segmentation in solr
- paoding-rose
- Paoding demo
- Paoding Analyzer
- python list set dic tuple总结及转换
- Python学习之路2--------dic和set
- Python学习随笔四:使用str,dic和set
- Python中list、tupe、dic、set的使用小记
- Android中SQLite应用详解
- servlet中获得路径
- 元查找树转双向链表
- Linked List Cycle II
- Learn Beautiful Soup(5) —— 使用BeautifulSoup改变网页内容
- please set a system env PAODING_DIC_HOME or Config paoding.dic.home in paoding-dic-home.properties p
- Clustering of residential areas based on residential conditions
- Java学习第一例:HelloWorld
- Uva10557XYZZY
- 康托展开及其逆运算
- 回收进程用户空间资源 exit()函数 _exit()函数 atexit()函数 on_exit()函数
- CMakeLists.txt与Makefile 的区别
- 云计算厂商应该避免的3种销售和市场手段
- 聚类之K-means均值聚类