pom.xml文件中增加:
com.hankcs hanlp system ${project.basedir}/src/main/resources/lib/hanlp-1.5.2.jar字典和模型文件在项目中的位置,其中包括自定义词典:
data文件夹在项目中的位置:
hanlp.properties文件的位置:
这样就可以在web项目中应用。
文章来源于网络
pom.xml文件中增加:
com.hankcs hanlp system ${project.basedir}/src/main/resources/lib/hanlp-1.5.2.jar字典和模型文件在项目中的位置,其中包括自定义词典:
data文件夹在项目中的位置:
hanlp.properties文件的位置:
这样就可以在web项目中应用。
文章来源于网络