问题
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