public static String[] tokenize(String text) {
        //NOTE: replace this with a NLP tokenizer tool
        //clean + split
        return text.trim().replaceAll("(\\s\\s+)", " ").split("\\s");
    }
Creates OpenNLP name finder

@param nameType     the entity type recognised by the given NER model
@param nerModelPath path to ner model
tika-parsers/tika-parsers-ml/tika-parser-nlp-module/src/main/java/org/apache/tika/parser/ner/opennlp/OpenNLPNameFinder.java