pronebel / paoding

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

使用庖丁需要外接数据源进行dic更新,是否有api提供 #67

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
搜索引擎的需求是有不断新关键字加入,此时需要庖丁与库��
�直接连接获取最新关键
字分词的需求,庖丁是否支持此项需求,如何实现。谢谢。

Original issue reported on code.google.com by santaf...@gmail.com on 26 May 2010 at 7:26

GoogleCodeExporter commented 8 years ago

Original comment by qieqie.wang on 26 May 2010 at 7:30

GoogleCodeExporter commented 8 years ago
这个可以自己做吧,当dic更改之后,庖丁好像会自己重新编��
�

Original comment by yuweimin...@gmail.com on 27 May 2010 at 1:38

GoogleCodeExporter commented 8 years ago
对,在dic更改并删除.compiled目录后

Original comment by qieqie.wang on 27 May 2010 at 2:20

GoogleCodeExporter commented 8 years ago
重新加载词库时,出现下列异常!

Exception in thread "Thread-8" java.lang.OutOfMemoryError: Java heap space
    at java.util.HashMap.<init>(HashMap.java:187)
    at net.paoding.analysis.dictionary.HashBinaryDictionary.<init>(HashBinaryDictionary.java:82)
    at net.paoding.analysis.dictionary.HashBinaryDictionary.createSubDictionary(HashBinaryDictionary.java:141)
    at net.paoding.analysis.dictionary.HashBinaryDictionary.addSubDictionary(HashBinaryDictionary.java:129)
    at net.paoding.analysis.dictionary.HashBinaryDictionary.createSubDictionaries(HashBinaryDictionary.java:106)
    at net.paoding.analysis.dictionary.HashBinaryDictionary.<init>(HashBinaryDictionary.java:84)
    at net.paoding.analysis.dictionary.HashBinaryDictionary.createSubDictionary(HashBinaryDictionary.java:141)
    at net.paoding.analysis.dictionary.HashBinaryDictionary.addSubDictionary(HashBinaryDictionary.java:129)
    at net.paoding.analysis.dictionary.HashBinaryDictionary.createSubDictionaries(HashBinaryDictionary.java:106)
    at net.paoding.analysis.dictionary.HashBinaryDictionary.<init>(HashBinaryDictionary.java:84)
    at net.paoding.analysis.dictionary.HashBinaryDictionary.<init>(HashBinaryDictionary.java:72)
    at net.paoding.analysis.knife.FileDictionaries.getVocabularyDictionary(FileDictionaries.java:197)
    at net.paoding.analysis.knife.CJKKnife.setDictionaries(CJKKnife.java:48)
    at net.paoding.analysis.knife.PaodingMaker.setDictionaries(PaodingMaker.java:526)
    at net.paoding.analysis.knife.PaodingMaker.access$300(PaodingMaker.java:53)
    at net.paoding.analysis.knife.PaodingMaker$1.run(PaodingMaker.java:396)
    at net.paoding.analysis.knife.PaodingMaker$1$1.on(PaodingMaker.java:418)
    at net.paoding.analysis.dictionary.support.detection.Detector.forceDetecting(Detector.java:114)
    at net.paoding.analysis.dictionary.support.detection.Detector.run(Detector.java:105)
    at java.lang.Thread.run(Thread.java:619)

Original comment by panxiuya...@gmail.com on 8 Jun 2010 at 2:07

GoogleCodeExporter commented 8 years ago
虽然可以自己添加词库,但是好像无法进行动态添加词库,��
�次更新词库之后就必须重建索引,否则可能以前可以检索出�
��现在却检索不出来了。

Original comment by stt...@163.com on 10 Aug 2010 at 6:16

GoogleCodeExporter commented 8 years ago
这是检索的算法所致,如果您改变了分词结果,那么之前以��
�的分词建立的那一部分索引将无效
但对,没有分词没有变更的部分不影响

Original comment by qieqie.wang on 10 Aug 2010 at 6:21