2、IKAnalyzer結(jié)合Lucene實(shí)現(xiàn)簡(jiǎn)單的中文分詞我們通過一個(gè)基本的Demo來實(shí)踐說明,步驟如下:step1:準(zhǔn)備相關(guān)的Jar依賴,lucene-core-5.1.0.jar、ik.jar,然后新建項(xiàng)目,引入相關(guān)依賴項(xiàng)目結(jié)構(gòu)如下:IkDemo-src -con.funnyboy.ik -IKAnalyzer.cfg.xml -stopword.dic -ext.dic -Reference Libraries -lucene-core-5.1.0.jar...
www.dbjr.com.cn/article/1256...htm 2025-6-5