private Tokenizer forQuerying(Tokenizer tokenizer) {
        if ( ! (tokenizer.getClass() == OpenNlpTokenizer.class)) // this has been subclassed and partially overridden
            return tokenizer;
        return ((OpenNlpTokenizer)tokenizer).withMode(query);
    }
A linguistics implementation based on OpenNlp.

@author bratseth
@author jonmv
opennlp-linguistics/src/main/java/com/yahoo/language/opennlp/OpenNlpLinguistics.java