Package org.apache.tika.eval.core.langid
Class LanguageIDWrapper
- java.lang.Object
-
- org.apache.tika.eval.core.langid.LanguageIDWrapper
-
- All Implemented Interfaces:
StringStatsCalculator<List<LanguageResult>>
,TextStatsCalculator
public class LanguageIDWrapper extends Object implements StringStatsCalculator<List<LanguageResult>>
-
-
Constructor Summary
Constructors Constructor Description LanguageIDWrapper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<LanguageResult>
calculate(String txt)
String[]
getSupportedLanguages()
static void
setMaxTextLength(int maxContentLengthForLangId)
-
-
-
Method Detail
-
setMaxTextLength
public static void setMaxTextLength(int maxContentLengthForLangId)
-
calculate
public List<LanguageResult> calculate(String txt)
- Specified by:
calculate
in interfaceStringStatsCalculator<List<LanguageResult>>
-
getSupportedLanguages
public String[] getSupportedLanguages()
-
-