title: Stanford NLP Java Method Translation Issue
body: <p>I'm using the Stanford NLP tools in C#, via the IKVM Java interface.  Also getting ideas from <a href="https://sergey-tihon.github.io/Stanford.NLP.NET/StanfordCoreNLP.html" rel="nofollow noreferrer">https://sergey-tihon.github.io/Stanford.NLP.NET/StanfordCoreNLP.html</a></p>
  
  <pre><code>String text = "This is a test sentence.";
  var props = new Properties();
  props.setProperty("annotators", "tokenize, ssplit, pos, parse");
  var curDir = Environment.CurrentDirectory;
  Directory.SetCurrentDirectory(modelsDirectory);
  var pipeline = new StanfordCoreNLP(props);
  Directory.SetCurrentDirectory(curDir);
  var annotation = new Annotation(text);
  pipeline.annotate(annotation);
  </code></pre>
  
  <p>This code works fine to get my <code>Annotation</code>.  However, when I try to access the annotation to extract various entities in the annotation, I run into trouble. Using code from this: <a href="https://stackoverflow.com/questions/9492707/how-can-i-split-a-text-into-sentences-using-the-stanford-parser">How can I split a text into sentences using the Stanford parser?</a>      </p>
  
  <pre><code>List&lt;CoreMap&gt; sentences = annotation.get(SentencesAnnotation.class);
  </code></pre>
  
  <p>Not clear how to translate <code>SentencesAnnotation.class</code> into something that C# will accept. </p>