summaryrefslogtreecommitdiffstats
path: root/linguistics/src/main/java/com/yahoo/language/opennlp/LangDetectModel.java
blob: 144b461200502ec88b4fd8b5ce6f4b8b0866f318 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.language.opennlp;

import opennlp.tools.langdetect.LanguageDetectorModel;

/**
 * Wrapper to lazily load a langdetect model for OpenNLP.
 *
 * @author jonmv
 */
public interface LangDetectModel {

    /** Loads a {@link LanguageDetectorModel}, or throws if this fails. */
    LanguageDetectorModel load();

}