title: Is it possible to get a set of a specific named entity tokens that comprise a phrase
body: <p>I'm using the Stanford CoreNLP parsers to run through some text and there are date phrases, such as 'the second Monday in October' and 'the past year'.  The library will appropriately tag each token as a DATE named entity, but is there a way to programmatically get this whole date phrase?  And it's not just dates, ORGANIZATION named entities will do the same ("The International Olympic Committee", for example, could be one identified in a given text example).</p>
  
  <pre><code>String content = "Thanksgiving, or Thanksgiving Day (Canadian French: Jour de"
          + " l'Action de grâce), occurring on the second Monday in October, is"
          + " an annual Canadian holiday which celebrates the harvest and other"
          + " blessings of the past year.";
  
  Properties p = new Properties();
  p.setProperty("annotators", "tokenize, ssplit, pos, lemma, ner, parse");
  StanfordCoreNLP pipeline = new StanfordCoreNLP(p);
  
  Annotation document = new Annotation(content);
  pipeline.annotate(document);
  
  for (CoreMap sentence : document.get(CoreAnnotations.SentencesAnnotation.class)) {
      for (CoreLabel token : sentence.get(CoreAnnotations.TokensAnnotation.class)) {
  
          String word = token.get(CoreAnnotations.TextAnnotation.class);
          String ne = token.get(CoreAnnotations.NamedEntityTagAnnotation.class);
  
          if (ne.equals("DATE")) {
              System.out.println("DATE: " + word);
          }
  
      }
  }
  </code></pre>
  
  <p>Which, after the Stanford annotator and classifier loading, will yield the output:</p>
  
  <pre><code>DATE: Thanksgiving
  DATE: Thanksgiving
  DATE: the
  DATE: second
  DATE: Monday
  DATE: in
  DATE: October
  DATE: the
  DATE: past
  DATE: year
  </code></pre>
  
  <p>I feel like the library has to be recognizing the phrases and using them for the named entity tagging, so the question would be is that data kept and available somehow through the api?</p>
  
  <p>Thanks,
  Kevin</p>