docs: protected String getWord(CoreLabel label) {
      String word = label.getString(TextAnnotation.class);
      if (flags.wordFunction != null) {
        word = flags.wordFunction.apply(word);
      }
      return word;
    }