private ai.djl.huggingface.tokenizers.HuggingFaceTokenizer resolve(Language language) {
        // Disregard language if there is default model
        if (models.size() == 1 && models.containsKey(Language.UNKNOWN)) return models.get(Language.UNKNOWN);
        if (models.containsKey(language)) return models.get(language);
        throw new IllegalArgumentException("No model for language " + language);
    }
{@link Embedder}/{@link Segmenter} using Deep Java Library's HuggingFace Tokenizer.

@author bjorncs
linguistics-components/src/main/java/com/yahoo/language/huggingface/HuggingFaceTokenizer.java