[1] Make sure that Java and Eclipse are correctly installed and configured

[2] Download various HanLp things

Hanlp.linrunsoft.com/services.ht…

[3] Import the JAR package into Eclipse

In Eclipse, create a New Project File — New — Java Project–[name: Hanlp] and follow the experience below

Jingyan.baidu.com/article/ca4…

[4] Unzip the data.zip file to the folder you want to put it in. In my case, all related files are in the same folder on my desktop

Root =D:/JavaProjects/HanLP/

root=C:/Users/zoujla/Desktop/eclipse workplace

[6] Drag the modified Hanlp. propertites to the SRC and bin folders respectively, as shown in the figure

Zhidao.baidu.com/question/11…

[7] Test whether the configuration is successful

[8] Test results

Possible problems

Character type corresponding table loaded failure: C: / Users/zoujla/Desktop/eclipse workplace/data/dictionary/other/CharType dat. Yes

Change the name of the chartype. bin file to chartype.dat.

The article is from ZHUJIYAO’s blog