@Override
  public void process(JCas jcas) throws AnalysisEngineProcessException {
    try {
      JNETNameEntityRecognizer NER = new JNETNameEntityRecognizer();
      JFSIndexRepository idx = jcas.getJFSIndexRepository();
      AnnotationIndex sentenceAnnotIndex = idx.getAnnotationIndex(Sentence.typeIndexID);
      FSIterator it = sentenceAnnotIndex.iterator();
      
      
      while(it.hasNext()){        
              Sentence sent = (Sentence) it.next();
              String text = sent.getText();
              ArrayList<Unit> res = NER.toUnitList(text);
              res = tagger.predictNER(new de.julielab.jnet.tagger.Sentence(res));
              //Map<Integer, Integer> res = NER.getGeneSpans(text);
              NameEntityAnnotator(res, jcas, sent);
      }

    } catch (ResourceInitializationException e) {
      e.printStackTrace();
    } catch (JNETException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
 }