yyljlyy / jcseg

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

lucene应用中向词库中添加同义词后如何加载? (已解决) #19

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. 我毕业设计急需用到这个分词器,感谢!
2. 
lucene搜索加入了这个分词器,需要添加一些同义词到词库中��
�但是按照说明文档上的方法加载后,同义词没有添加进去
3. 请问有没有这方面更详细些的实例或者说明呢?

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

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by rujingt...@gmail.com on 13 Mar 2014 at 2:06

GoogleCodeExporter commented 8 years ago
你下载的附件中的“开发帮助文档”有详细的说明。在词条��
�同义词位置试用英文的,隔开多个同义词放置待同义词位置就
可以了。

你可以参考下‘研究’这个词条的结构

Best
--chenxin

Original comment by chenxin6...@gmail.com on 14 Mar 2014 at 2:09

GoogleCodeExporter commented 8 years ago
谢谢,我再研究研究

Original comment by rujingt...@gmail.com on 14 Mar 2014 at 5:30

GoogleCodeExporter commented 8 years ago
还有一个问题,就是我如果通过API添加同义词,怎么更新词��
�呢?比如通过addSyn("幸福")把“幸福”添加为“快乐”的同义
词后,词库中并没有添加进去。

Original comment by rujingt...@gmail.com on 14 Mar 2014 at 11:03

GoogleCodeExporter commented 8 years ago
更新词库:直接更改词库文件就可以了,然后开启词库更新��
�动加载功能,Jcseg会自动查找更新的数据文件并且重新加载��
�

IWord.addSyn()用来给给定的词条添加同义词,前提是你要现找到
对应词条在内存中的引用。

‘开发说明文档’中有相关说明。

Best
--chenxin

Original comment by chenxin6...@gmail.com on 14 Mar 2014 at 11:31

GoogleCodeExporter commented 8 years ago
好的,谢谢!

Original comment by rujingt...@gmail.com on 21 Mar 2014 at 2:42