title: Adding a new annotator in Stanford CoreNLP
body: <p>I am trying to add a new annotator in Stanford CoreNLP according to the instructions in <a href="http://nlp.stanford.edu/downloads/corenlp.shtml" rel="nofollow">http://nlp.stanford.edu/downloads/corenlp.shtml</a>. </p>
  
  <p>"Adding a new annotator
  <code>StanfordCoreNLP</code> also has the capacity to add a new annotator by reflection without altering the code in <code>StanfordCoreNLP.java</code>. To create a new annotator, extend the class edu.stanford.nlp.pipeline.Annotator and define a constructor with the signature (String, Properties). Then, add the property customAnnotatorClass.<code>FOO=BAR</code> to the properties used to create the pipeline. If FOO is then added to the list of annotators, the class BAR will be created, with the name used to create it and the properties file passed in. "</p>
  
  <p>I have created a new class for my new annotator, but i cannot put the properties file that would pass in.
  I have only put the new annotator in the pipeline.</p>
  
  <pre><code>props.put("annotators", "tokenize, ssplit, pos, lemma, ner, parse, dcoref, regexner, color");
  props.setProperty("customAnnotatorClass.color", "myPackage.myPipeline");
  </code></pre>
  
  <p>Is there any example code to help me?</p>