ferdinand4366
Results
comments of
ferdinand4366
说一下我遇到这个问题后的解决方案:首先hanlp.properties、hanlp-1.7.8.jar和hanlp-1.7.8-sources.jar这三个文件是要放在你的项目下,可以在工程下新建个类似src的文件夹放进去,然后配置classpath,其实就是这条命令`startJVM(getDefaultJVMPath(), "-Djava.class.path=E:/pythonstudy/src/hanlp-1.7.8.jar;E:/pythonstudy/src", "-Xms1g", "-Xmx1g")` 这里的pythonstudy是我的工程文件,src是我新建用来放资源文件的 至于data文件放在哪是随意的,只要注意路劲下不要有中文,然后将路劲修改到hanlp.properties中就行