code: public CoreLabel makeToken(String tokenText, String originalText, int begin, int length) {
      CoreLabel cl = addIndices ? new CoreLabel(5) : new CoreLabel();
      cl.setValue(tokenText);
      cl.setWord(tokenText);
      cl.setOriginalText(originalText);
      if(addIndices) {
        cl.set(CharacterOffsetBeginAnnotation.class, begin);
        cl.set(CharacterOffsetEndAnnotation.class, begin+length);
      }
      return cl;
    }
docs: Constructs a CoreLabel as a String with a corresponding BEGIN and END position,
  when the original OriginalTextAnnotation is different from TextAnnotation
  (Does not take substring).