msgbartop
better late than never
msgbarbottom

Sep 01 coreseek给词库添加新词

为coreseek应用的词库添加新词,步骤是先在词典文件添加新词条,然后用mmseg重新生成词库文件,替换原有词库文件,最后重建索引。

给词典文件加新词相对来说比较简单,用程序实现的话,貌似也不是很复杂。主要是对重复词条的判断,我是先读进数组再判断的,虽然现在文件还不算大,但是总觉得以后会影响效率,MS用sed会简单不止一点儿吧,神仙说的。在这里再一次感到作为一个linux小白的压力,= =。

接下来的两步用exec就可以实现了,但是,= =,权限好麻烦啊,一知半解,最后全777了,OTZ,好烦,不想看书。

有时候真的很懒,= =,懒得思考,所以有时候问得问题可能很白痴,非常感谢师傅的耐心解答。

over。= =



Reader's Comments

  1. |

    围观
    强悍

    [回复]



Leave a Comment




*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word