Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Mar 14, 2016 · 6 comments

Comments

@GoogleCodeExporter
Copy link

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


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

@GoogleCodeExporter
Copy link
Author

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

@GoogleCodeExporter
Copy link
Author

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

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

@GoogleCodeExporter
Copy link
Author

对,在dic更改并删除.compiled目录后

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

@GoogleCodeExporter
Copy link
Author

重新加载词库时,出现下列异常!

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
Copy link
Author

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

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

@GoogleCodeExporter
Copy link
Author

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant