private void NameEntityAnnotator(ArrayList<Unit> res, JCas jcas, Sentence sent) {
    Chunking chunking = chunker.chunk(sent.getText());

    for (Chunk chunk : chunking.chunkSet()) {
      int start = chunk.start();
      int end = chunk.end();
      
      String phrase = sent.getText().substring(start,end);
      Unit unit = new Unit(start, end, phrase, "LingPipe");
      res.add(unit);
    }
    
    for(Unit unit : res){
      String text = unit.getRep();      
      // set Acronym
/*      Pattern pattern = Pattern.compile("[A-Z\\-]+");
      Matcher matcher = pattern.matcher(text);
      if(matcher.matches() && text.length() >= 3 && text.length() <= 5){
        unit.setLabel("Acronym");
      }*/      
      String label = unit.getLabel();
      if (!label.equals("O")) {
        NameEntity NE = new NameEntity(jcas, unit.begin, unit.end);
        NE.setText(text);
        NE.setSent(sent);
        NE.setLabel(label);
        NE.addToIndexes();
      }
    }
  }