public class LanguageIDWrapper extends Object implements StringStatsCalculator<List<Language>>
loadBuiltInModels()
before
instantiating theConstructor and Description |
---|
LanguageIDWrapper() |
Modifier and Type | Method and Description |
---|---|
List<Language> |
calculate(String txt) |
List<Language> |
getProbabilities(String s) |
String[] |
getSupportedLanguages() |
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 String[] getSupportedLanguages()
public static void setMaxTextLength(int maxTextLength)
Copyright © 2007–1969 The Apache Software Foundation. All rights reserved.