user3266259
user3266259

Reputation: 399

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

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

enter image description here

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

Upvotes: 0

Views: 711

Answers (1)

StanfordNLPHelp
StanfordNLPHelp

Reputation: 8739

in Java:

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

on command line:

-sentiment.model path/to/model

Upvotes: 1

Related Questions