How to get Stanford CoreNLP to use a training model you created?

為{幸葍}努か 提交于 2019-12-23 05:02:02

问题


I just created a training model for stanfordCoreNLP, so I have a bunch of files that look like this:

Now, how do I tell CoreNLP to use the model I created and not the models that come with coreNLP? Is it something I pass in the command line or something in my java code like:

props.put("sentiment.model");

I noticed there's a jar file in my coreNLP library called stanford-corenlp-3.5.1-models.jar. Does this jar file have anything to do with what I want to do?

Thank you


回答1:


in Java:

props.put("sentiment.model", "path/to/model");

on command line:

-sentiment.model path/to/model


来源:https://stackoverflow.com/questions/33725007/how-to-get-stanford-corenlp-to-use-a-training-model-you-created

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!