title: How to choose Coreference resolution system in Stanford CoreNLP
body: <p>I am trying to test the coreference resolution system from core-nlp. From <a href="http://nlp.stanford.edu/software/dcoref.shtml" rel="nofollow noreferrer">Running coreference resolution on raw text</a>,  I understand setting the general properties for the 'dcoref system'.  </p>
  
  <p>I would like to choose between the co-reference systems [Deterministic, Statistical, Neural] based on the latency of the module. The command line usage is clear for me, how do I use this option as an API?. </p>
  
  <p>currently, I'm running the default code: </p>
  
  <pre><code>public static void main(String[] args) throws Exception {
      Annotation document = new Annotation("Barack Obama was born in Hawaii.  He is the president. Obama was elected in 2008.");
      Properties props = new Properties();
      props.setProperty("annotators", "tokenize,ssplit,pos,lemma,ner,parse,mention,coref");
      StanfordCoreNLP pipeline = new StanfordCoreNLP(props);
      pipeline.annotate(document);
      System.out.println("---");
      System.out.println("coref chains");
      for (CorefChain cc : document.get(CorefCoreAnnotations.CorefChainAnnotation.class).values()) {
        System.out.println("\t" + cc);
      }
      for (CoreMap sentence : document.get(CoreAnnotations.SentencesAnnotation.class)) {
        System.out.println("---");
        System.out.println("mentions");
        for (Mention m : sentence.get(CorefCoreAnnotations.CorefMentionsAnnotation.class)) {
          System.out.println("\t" + m);
         }
      }
  </code></pre>