OpenNlpTokenizer withMode(Mode mode) {
        return new OpenNlpTokenizer(mode, normalizer, transformer, snowballStemmingForEnglish, chineseSegmenter, createCjkGrams, specialTokenRegistry);
    }
Creates a copy of this with the given mode set.
opennlp-linguistics/src/main/java/com/yahoo/language/opennlp/OpenNlpTokenizer.java