ryanqq / paoding

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

我想问下字典的问题 #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
我下载的paoding-analysis-2.0.4-alpha2里面有好多的字典.以前的没
用过.现在我
想加一个新的词,在t-base.dic中加,或者,自已新建文加这个�
��,在搜索的时候没
有在结果中找到.
细想下.可能我对字典还是不了解.
想问下切词是根据字典里的词来切嘛?还有停词可以自已加��
�?

Original issue reported on code.google.com by jinhanm...@msn.com on 4 Nov 2008 at 7:56

GoogleCodeExporter commented 9 years ago
忘了我配置是这样的.
<bean id="writerAnalyzer" class="net.paoding.analysis.analyzer.PaodingAnalyzer">
 <property name="knife">
  <ref local="paoding" />
 </property>
 <property name="mode" value="1" />
</bean>

<bean id="queryAnalyzer" class="net.paoding.analysis.analyzer.PaodingAnalyzer">
 <property name="knife">
  <ref local="paoding" />
 </property>
 <property name="mode" value="2" />
</bean>

<bean id="paoding" class="net.paoding.analysis.knife.PaodingMaker" factory-
method="make" />

Original comment by jinhanm...@msn.com on 4 Nov 2008 at 8:12

GoogleCodeExporter commented 9 years ago
呵呵.又是我.原来我是把字典目录弄在classes目录下.eclipse
编译过后,还是原来的内容,
里面增加的新内容为空.我生设了下字典目录.
对了.在新加了新词后在典目录中会出现个新目录.compiled下��
�又一目录,里面有好几个文件,
这时候我新加新词,不会在把这时新加的加入到索引中..��
�.只有删除.compiled再重创建索
引.

Original comment by jinhanm...@msn.com on 4 Nov 2008 at 10:07

GoogleCodeExporter commented 9 years ago
对,"只有删除.compiled再(才)重创建索引."

Original comment by qieqie.wang on 5 Nov 2008 at 1:32

GoogleCodeExporter commented 9 years ago
对了.我看那个目录下面有好多的.dic文件,我试着建了个test
.dic里面添加了新词,没有.compiled文情
况下重建索引.新的分词没有加进去.也就是加新词只能加��
�t-base.dic文件中嘛.那其它的那些字典有用
嘛?

Original comment by jinhanm...@msn.com on 6 Nov 2008 at 2:20