title: How to create a Stanford coreNLP model by training?
body: <p>I'm very new to Stanford's coreNLP and I'm trying to train it by creating a model. I have a folder that has dev.txt, train.txt, and test.txt as well as a jar file named stanford-corenlp-3.5.1-models.jar. According to <a href="https://stackoverflow.com/questions/22586658/how-to-train-the-stanford-nlp-sentiment-analysis-tool/22635259#22635259">this</a> question, I can create a model by executing the following command in the terminal:</p>
  
  <pre><code>java -mx8g edu.stanford.nlp.sentiment.SentimentTraining -numHid 25 -trainPath train.txt -devPath     dev.txt -train -model model.ser.gz
  </code></pre>
  
  <p>However, when I run that in the terminal, I get the following error:</p>
  
  <pre><code>Error: could not find or load main class edu.stanford.nlp.sentiment.SentimentTraining
  </code></pre>
  
  <p>Can anyone provide step-by-step instructions of how to go about training CoreNLP? I went on the Stanford <a href="http://nlp.stanford.edu/software/crf-faq.shtml#a" rel="nofollow noreferrer">website</a> to see how training is done, but I'm still confused. I thought all I needed to create a model (e.g model.ser.gz) were those three text files and one jar file. </p>
  
  <p>Any help is very appreciated, thank you!</p>