Package org.apache.tika.eval.textstats
Class CommonTokensKLDivergence
- java.lang.Object
-
- org.apache.tika.eval.textstats.CommonTokensKLDivergence
-
- All Implemented Interfaces:
LanguageAwareTokenCountStats<Double>
,TextStatsCalculator
public class CommonTokensKLDivergence extends Object implements LanguageAwareTokenCountStats<Double>
-
-
Constructor Summary
Constructors Constructor Description CommonTokensKLDivergence(CommonTokenCountManager mgr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Double
calculate(List<Language> languages, TokenCounts tokenCounts)
-
-
-
Constructor Detail
-
CommonTokensKLDivergence
public CommonTokensKLDivergence(CommonTokenCountManager mgr)
-
-
Method Detail
-
calculate
public Double calculate(List<Language> languages, TokenCounts tokenCounts)
- Specified by:
calculate
in interfaceLanguageAwareTokenCountStats<Double>
-
-