public class LanguageIDWrapper extends Object
Constructor and Description |
---|
LanguageIDWrapper() |
Modifier and Type | Method and Description |
---|---|
static com.google.common.base.Optional<com.optimaize.langdetect.i18n.LdLocale> |
detect(String s) |
static List<com.optimaize.langdetect.DetectedLanguage> |
getProbabilities(String s) |
static void |
loadBuiltInModels() |
static void |
loadModels(Path path) |
static void |
setMaxTextLength(int maxTextLength) |
public static void loadBuiltInModels() throws IOException
IOException
public static void loadModels(Path path) throws IOException
IOException
public static com.google.common.base.Optional<com.optimaize.langdetect.i18n.LdLocale> detect(String s)
public static List<com.optimaize.langdetect.DetectedLanguage> getProbabilities(String s)
public static void setMaxTextLength(int maxTextLength)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.